eliminate some uses of prcontext. Any help here would be appreciated :)
authorChris Lattner <sabre@nondot.org>
Sun, 30 Aug 2009 21:45:23 +0000 (21:45 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 30 Aug 2009 21:45:23 +0000 (21:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80520 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/X86/2006-10-19-SwitchUnnecessaryBranching.ll
test/CodeGen/X86/2007-01-08-InstrSched.ll
test/CodeGen/X86/2008-07-11-SpillerBug.ll
test/CodeGen/X86/2008-12-19-EarlyClobberBug.ll

index 1ff687a1b8b797fb27ab633e34a15ae7187df5c7..8ec032a9ca522eb9e95d1ae266ae4a944a6451dd 100644 (file)
@@ -1,11 +1,14 @@
-; RUN: llvm-as < %s | llc -march=x86 -asm-verbose | %prcontext je 1 | \
-; RUN:   grep BB1_1:
+; RUN: llvm-as < %s | llc -march=x86 -asm-verbose | FileCheck %s
 
 @str = internal constant [14 x i8] c"Hello world!\0A\00"               ; <[14 x i8]*> [#uses=1]
 @str.upgrd.1 = internal constant [13 x i8] c"Blah world!\0A\00"                ; <[13 x i8]*> [#uses=1]
 
-define i32 @main(i32 %argc, i8** %argv) {
+define i32 @test(i32 %argc, i8** %argv) nounwind {
 entry:
+; CHECK: cmpl  $2
+; CHECK-NEXT: je
+; CHECK-NEXT: LBB1_1
+
        switch i32 %argc, label %UnifiedReturnBlock [
                 i32 1, label %bb
                 i32 2, label %bb2
index 3b365f35cb22104c2585338478802744490e79c9..012e5931f165c624371f8fa06eea3434d116a6b9 100644 (file)
@@ -1,8 +1,7 @@
 ; PR1075
-; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | \
-; RUN:   %prcontext {mulss     LCPI1_3} 1 | grep mulss | count 1
+; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | FileCheck %s
 
-define float @foo(float %x) {
+define float @foo(float %x) nounwind {
     %tmp1 = fmul float %x, 3.000000e+00
     %tmp3 = fmul float %x, 5.000000e+00
     %tmp5 = fmul float %x, 7.000000e+00
@@ -11,4 +10,10 @@ define float @foo(float %x) {
     %tmp12 = fadd float %tmp10, %tmp5
     %tmp14 = fadd float %tmp12, %tmp7
     ret float %tmp14
+
+; CHECK:      mulss    LCPI1_2(%rip)
+; CHECK-NEXT: addss
+; CHECK-NEXT: mulss    LCPI1_3(%rip)
+; CHECK-NEXT: addss
+; CHECK-NEXT: ret
 }
index 1d946388650199def85c1d3efe67c4c7d3a6dbf9..d7a4892a504e87115583478493f8716fb465528e 100644 (file)
@@ -1,7 +1,11 @@
-; RUN: llvm-as < %s | llc -march=x86 -relocation-model=static -disable-fp-elim |\
-; RUN:   %prcontext 65534 1 | grep movl | count 1
+; RUN: llvm-as < %s | llc -march=x86 -relocation-model=static -disable-fp-elim | FileCheck %s
 ; PR2536
 
+
+; CHECK: movw %ax
+; CHECK-NEXT: andl    $65534, %
+; CHECK-NEXT: movl $17
+
 @g_5 = external global i16             ; <i16*> [#uses=2]
 @g_107 = external global i16           ; <i16*> [#uses=1]
 @g_229 = external global i32           ; <i32*> [#uses=1]
index c7fdfb269207d4a67ef82eda1fde7a03adb31f8d..ad1615b13a6e41286826bba46418897ca3233e7e 100644 (file)
@@ -1,7 +1,12 @@
-; RUN: llvm-as < %s | llc -mtriple=i386-apple-darwin | %prcontext End 2 | grep mov
+; RUN: llvm-as < %s | llc -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]