When checking for sret-demotion, it needs to use legal types. When using the return...
[oota-llvm.git] / test / CodeGen / X86 / 2008-12-19-EarlyClobberBug.ll
index 6442ac7c76568d35e510cfbfd0af7dc6299d2f25..13a9080c1401fbff02f0bceb91310d0c750e787c 100644 (file)
@@ -1,5 +1,11 @@
-; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | %prcontext End 1 | grep {movl.*%ecx}
+; RUN: llc < %s -mtriple=i386-apple-darwin | FileCheck %s
 ; PR3149
+; Make sure the copy after inline asm is not coalesced away.
+
+; CHECK:         ## InlineAsm End
+; CHECK-NEXT: BB1_2:
+; CHECK-NEXT:    movl  %esi, %eax
+
 
 @"\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]