[X86] Implement the support for shrink-wrapping.
[oota-llvm.git] / test / CodeGen / X86 / 2008-12-19-EarlyClobberBug.ll
index 6442ac7c76568d35e510cfbfd0af7dc6299d2f25..6bb29fde84547869768c82c0d7bc32802f04fcf3 100644 (file)
@@ -1,5 +1,11 @@
-; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | %prcontext End 1 | grep {movl.*%ecx}
+; RUN: llc < %s -mcpu=generic -mtriple=i386-apple-darwin -asm-verbose=0 | FileCheck %s
 ; PR3149
+; Make sure the copy after inline asm is not coalesced away.
+
+; CHECK:         ## InlineAsm End
+; CHECK-NEXT: BB0_2:
+; CHECK-NEXT:    {{movl        %esi, %eax|addl %edi, %esi}}
+
 
 @"\01LC" = internal constant [7 x i8] c"n0=%d\0A\00"           ; <[7 x i8]*> [#uses=1]
 @llvm.used = appending global [1 x i8*] [ i8* bitcast (i32 (i64, i64)* @umoddi3 to i8*) ], section "llvm.metadata"             ; <[1 x i8*]*> [#uses=0]
@@ -10,7 +16,7 @@ entry:
        %1 = trunc i64 %u to i32                ; <i32> [#uses=4]
        %2 = lshr i64 %u, 32            ; <i64> [#uses=1]
        %3 = trunc i64 %2 to i32                ; <i32> [#uses=2]
-       %4 = tail call i32 (i8*, ...)* @printf(i8* getelementptr ([7 x i8]* @"\01LC", i32 0, i32 0), i32 %1) nounwind           ; <i32> [#uses=0]
+       %4 = tail call i32 (i8*, ...) @printf(i8* getelementptr ([7 x i8], [7 x i8]* @"\01LC", i32 0, i32 0), i32 %1) nounwind          ; <i32> [#uses=0]
        %5 = icmp ult i32 %1, %0                ; <i1> [#uses=1]
        br i1 %5, label %bb2, label %bb