For PR1319: Upgrade to new test harness.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 15 Apr 2007 22:20:47 +0000 (22:20 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 15 Apr 2007 22:20:47 +0000 (22:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36091 91177308-0d34-0410-b5e6-96231b3b80d8

55 files changed:
test/Archive/dg.exp
test/CodeGen/X86/2003-11-03-GlobalBool.llx
test/CodeGen/X86/2004-02-13-FrameReturnAddress.llx
test/CodeGen/X86/2004-03-30-Select-Max.llx
test/CodeGen/X86/2004-04-09-SameValueCoalescing.llx
test/CodeGen/X86/2006-01-19-ISelFoldingBug.ll
test/CodeGen/X86/2006-04-27-ISelFoldingBug.ll
test/CodeGen/X86/2006-05-08-CoalesceSubRegClass.ll
test/CodeGen/X86/2006-05-11-InstrSched.ll
test/CodeGen/X86/2006-05-22-FPSetEQ.ll
test/CodeGen/X86/2006-07-31-SingleRegClass.ll
test/CodeGen/X86/2006-08-21-ExtraMovInst.ll
test/CodeGen/X86/2006-11-12-CSRetCC.ll
test/CodeGen/X86/2006-11-17-IllegalMove.ll
test/CodeGen/X86/2006-11-28-Memcpy.ll
test/CodeGen/X86/2007-01-08-InstrSched.ll
test/CodeGen/X86/2007-02-04-OrAddrMode.ll
test/CodeGen/X86/2007-03-15-GEP-Idx-Sink.ll
test/CodeGen/X86/2007-03-24-InlineAsmPModifier.ll
test/CodeGen/X86/2007-03-24-InlineAsmVectorOp.ll
test/CodeGen/X86/2007-03-24-InlineAsmXConstraint.ll
test/CodeGen/X86/asm-global-imm.ll
test/CodeGen/X86/commute-two-addr.ll
test/CodeGen/X86/dg.exp
test/CodeGen/X86/fabs.ll
test/CodeGen/X86/fast-cc-callee-pops.ll
test/CodeGen/X86/fast-cc-merge-stack-adj.ll
test/CodeGen/X86/fast-cc-pass-in-regs.ll
test/CodeGen/X86/fastcall-correct-mangling.ll
test/CodeGen/X86/fp-immediate-shorten.ll
test/CodeGen/X86/fp-stack-compare.ll
test/CodeGen/X86/fp_constant_op.llx
test/CodeGen/X86/fp_load_fold.llx
test/CodeGen/X86/i128-ret.ll
test/CodeGen/X86/isel-sink.ll
test/CodeGen/X86/isnan.llx
test/CodeGen/X86/lea-2.ll
test/CodeGen/X86/lea-3.ll
test/CodeGen/X86/loop-hoist.ll
test/CodeGen/X86/loop-strength-reduce.ll
test/CodeGen/X86/overlap-shift.ll
test/CodeGen/X86/regpressure.ll
test/CodeGen/X86/rem.ll
test/CodeGen/X86/rotate.ll
test/CodeGen/X86/shift-coalesce.ll
test/CodeGen/X86/shift-codegen.ll
test/CodeGen/X86/shift-double.llx
test/CodeGen/X86/shift-folding.ll
test/CodeGen/X86/sse-fcopysign.ll
test/CodeGen/X86/store_op_load_fold.ll
test/CodeGen/X86/store_op_load_fold2.ll
test/CodeGen/X86/test-pic-1.ll
test/CodeGen/X86/test-pic-4.ll
test/CodeGen/X86/vec_call.ll
test/CodeGen/X86/x86-64-arg.ll

index ff34508c3c64c167429097e1c896dd65daaff278..879685ca879df60056ae48bf4411e0df73b77dc5 100644 (file)
@@ -1,3 +1,3 @@
-load_lib llvm-dg.exp
+load_lib llvm.exp
 
-llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
index 64236853e4c07f0695bffc9f8791e04667d71b09..150d6a9bb3f9a7a648e7b98e23bfc47b3c8451fe 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep '.byte[[:space:]]*true'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
+; RUN:   not grep {.byte\[\[:space:\]\]*true}
 
 %X = global bool true
 
index 3eec89a032fb6634ba9783d8f641e514152696ca..366865ac71737a1f768d68c3249d1aa32db1aaa6 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep '(%esp'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep {(%esp}
 
 declare sbyte* %llvm.returnaddress(uint)
 declare sbyte* %llvm.frameaddress(uint)
index 5ae8be2b318f7c4078d2c6a3152922b879caa502..bd7ab47d1e617916b9879d06da6153e499fe02ac 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep 'j[lgbe]'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep {j\[lgbe\]}
 
 int %max(int %A, int %B) {
   %gt = setgt int %A, %B
index 83434f99fc7470b564eefaca4972833766f4f298..52c5da4ede04778b32b1780a2cc0a53a2e1250d4 100644 (file)
@@ -2,7 +2,8 @@
 ; overlapping live intervals. When two overlapping intervals have the same
 ; value, they can be joined though.
 ;
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -regalloc=linearscan | not grep 'mov %[A-Z]\{2,3\}, %[A-Z]\{2,3\}'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -regalloc=linearscan | \
+; RUN:   not grep {mov %\[A-Z\]\\\{2,3\\\}, %\[A-Z\]\\\{2,3\\\}}
 
 long %test(long %x) {
 entry:
index 7d68747234623baf9a507dec3140e155320cac49..02180cbf24b442bb8e1d8b6000f47480c7abb4b7 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep 'shld' | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
+; RUN:   grep shld | wc -l | grep 1
 ;
 ; Check that the isel does not fold the shld, which already folds a load
 ; and has two uses, into a store.
index 25a2ca84526f141fbebabc2e47645a5daa1d107c..db82d6591ebb0e9f40b2b1c457f950e88ff0da98 100644 (file)
@@ -1,5 +1,9 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mtriple=i686-apple-darwin8 -relocation-model=static | grep 'movl _last' | wc -l | grep 1 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mtriple=i686-apple-darwin8 -relocation-model=static | grep 'cmpl.*_last' | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN:   llc -march=x86 -mtriple=i686-apple-darwin8 -relocation-model=static | \
+; RUN:   grep {movl _last} | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN:   llc -march=x86 -mtriple=i686-apple-darwin8 -relocation-model=static | \
+; RUN:   grep {cmpl.*_last} | wc -l | grep 1
 
 %block = external global ubyte*                ; <ubyte**> [#uses=1]
 %last = external global int            ; <int*> [#uses=3]
index 009a4bb759ed6ac97f8f4a441416dfc450b1863f..2669159cab6029dd91ed1e5954821ff4f7c7ae66 100644 (file)
@@ -1,7 +1,8 @@
 ; Coalescing from R32 to a subset R32_. Once another register coalescer bug is
 ; fixed, the movb should go away as well.
 
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -relocation-model=static | grep 'movl' | wc -l
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -relocation-model=static | \
+; RUN:   grep movl | wc -l
 
 %B = external global uint
 %C = external global ushort*
index 689f4e96f3022f4f7ce3d23c1e55a5744be98028..eee93252ca22d1d462a007248e5761bfd17eb6d2 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats 2>&1 |\
-; RUN:     grep 'asm-printer' | grep 35
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 -stats |&\
+; RUN:     grep {asm-printer} | grep 35
 
 target datalayout = "e-p:32:32"
 define void @foo(i32* %mc, i32* %bp, i32* %ms, i32* %xmb, i32* %mpp, i32* %tpmm, i32* %ip, i32* %tpim, i32* %dpp, i32* %tpdm, i32* %bpi, i32 %M) {
index a6f7bd68e2326cd978252794a87f80e8ca0b8650..32281db6246e48b36cab6ff7ed2ce78127eac12a 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep 'setnp'
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -enable-unsafe-fp-math | not grep 'setnp'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep setnp
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -enable-unsafe-fp-math | \
+; RUN:   not grep setnp
 
 uint %test(float %f) {
        %tmp = seteq float %f, 0.000000e+00
index 99e2f70f59e8f6f217c564263016088bfced8b78..aa02bf7c96e6531cd5b1e5de1e7bcab8aa5527e5 100644 (file)
@@ -1,7 +1,8 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=att | grep 'movl 4(%eax),%ebp' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=att | grep 'movl 0(%eax), %ebx'
-
 ; PR850
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=att | \
+; RUN:   grep {movl 4(%eax),%ebp}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=att | \
+; RUN:   grep {movl 0(%eax), %ebx}
 
 int %foo(int %__s.i.i, int %tmp5.i.i, int %tmp6.i.i, int %tmp7.i.i, int %tmp8.i.i ) {
 
index c2d905a5e394e4af5f17b5e06168aa762039b87b..af30ea4ee4c1f2a612c2ab65f1a410b8a41192be 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=i386 | not grep 'movl %eax, %edx'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=i386 | \
+; RUN:    not grep {movl %eax, %edx}
 
 int %foo(int %t, int %C) {
 entry:
index 04cca162c4e36b0cbf4b5474f5117ac475323bf8..d65dc18d28b0a7a47cf1db679720110bd422e127 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep 'subl $4, %esp'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep {subl \$4, %esp}
 
 target triple = "i686-pc-linux-gnu"
 
index 98543e56798fcfab1b961a91e4096a646623fd61..141d32c47d6bb1c8bbfe6763135e1465632a503a 100644 (file)
@@ -1,6 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86-64 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86-64 | not grep 'movb %sil, %ah' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86-64 | grep 'movzbw %al, %ax'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86-64 | \
+; RUN:   not grep {movb %sil, %ah}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86-64 | \
+; RUN:   grep {movzbw %al, %ax}
 
 void %handle_vector_size_attribute() {
 entry:
index b53c6a3766754fe6d69f92ea00fef6531832c011..f5a2a8f9e81e105cc05c8ffad1dcfc4f357893cf 100644 (file)
@@ -1,7 +1,8 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep 3721182122 | wc -l | grep 2 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep -E 'movl _?bytes2' | wc -l | grep 1
-; PR1022, 1023
+; PR1022, PR1023
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
+; RUN:   grep 3721182122 | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
+; RUN:   grep -E {movl _?bytes2} | wc -l | grep 1
 
 %fmt = constant [4 x sbyte] c"%x\0A\00"
 %bytes = constant [4 x sbyte] c"\AA\BB\CC\DD"
index daf283e61d4e9b5359dd0587fa695468c5896ac8..a0edd95b6ee10bef8474cf578ecb02d5431c1b09 100644 (file)
@@ -1,6 +1,6 @@
-; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | \
-; RUN:   %prcontext 'mulss LCPI1_3' 1 | grep mulss | wc -l | grep 1
 ; PR1075
+; RUN: llvm-as < %s | llc -mtriple=x86_64-apple-darwin | \
+; RUN:   %prcontext {mulss LCPI1_3} 1 | grep mulss | wc -l | grep 1
 
 define float @foo(float %x) {
     %tmp1 = mul float %x, 3.000000e+00
index 7c6ae249c2b5c0b1222c29595e5eeb918dfa14da..05114d1bff686601b46ca847c8a5da60829cf590 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=x86 | grep 'orl $1, %eax' &&
-; RUN: llvm-as < %s | llc -march=x86 | grep 'leal 3(,%eax,8)'
+; RUN: llvm-as < %s | llc -march=x86 | grep {orl \$1, %eax}
+; RUN: llvm-as < %s | llc -march=x86 | grep {leal 3(,%eax,8)'
 
 ;; This example can't fold the or into an LEA.
 define i32 @test(float ** %tmp2, i32 %tmp12) {
index 17e4e01c6e4a2edf13a152c04b6e8c5f05bc3b17..d829544c381e2e5e7f2406b6fb447151e1295811 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc &&
-; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-darwin | grep 'addl $12, %esp'
+; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-darwin | \
+; RUN:   grep {addl \$12, %esp}
 
 define void @foo(i8** %buf, i32 %size, i32 %col, i8* %p) {
 entry:
index 3c8bc90c2db2ecf0d1ff12098f4b6fd0693d5eca..9bdb2493508da1f6de51249ae06d1696ba408a53 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 | grep 'mov %gs:72, %eax'
+; RUN: llvm-as < %s | llc -march=x86 | grep {mov %gs:72, %eax}
 target datalayout = "e-p:32:32"
 target triple = "i686-apple-darwin9"
 
index cec8d8e8e74e394e685cf9309e639d5451a23743..6e1adf8346243be98c87758dfeebe0dcb0da7e34 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | llc -mcpu=yonah -march=x86 | grep 'cmpltsd %xmm0, %xmm0'
+; RUN: llvm-as < %s | llc -mcpu=yonah -march=x86 | \
+; RUN:   grep {cmpltsd %xmm0, %xmm0}
 target datalayout = "e-p:32:32"
 target triple = "i686-apple-darwin9"
 
index 4cfe2dc4eb3b937b0f94363e6d43a9d577ec5a92..e440cdb6cfd7ca13260ddfe6774a024b9b09c285 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 | grep 'psrlw $8, %xmm0'
+; RUN: llvm-as < %s | llc -march=x86 | grep {psrlw \$8, %xmm0}
 target datalayout = "e-p:32:32"
 target triple = "i686-apple-darwin9"
 
index aebd457844866784ed2896b1577426fa4e109d77..4ca4c5836d4dc3efb4850a66dda2abd3fd34d99c 100644 (file)
@@ -1,5 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -relocation-model=static | grep 'test1 $_GV' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -relocation-model=static | grep 'test2 _GV'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -relocation-model=static | \
+; RUN:   grep {test1 \$_GV}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -relocation-model=static | \
+; RUN:   grep {test2 _GV}
 ; PR882
 
 target datalayout = "e-p:32:32"
index 29c22c34a501843761f0b9695955573977faca8c..462b31e47c761c970253c5877bc250c75f091a92 100644 (file)
@@ -2,7 +2,8 @@
 ; insertion of register-register copies.
 
 ; Make sure there are only 3 mov's for each testcase
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep 'mov ' | wc -l | grep 6
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   grep {mov } | wc -l | grep 6
 
 
 target triple = "i686-pc-linux-gnu"
index ff34508c3c64c167429097e1c896dd65daaff278..879685ca879df60056ae48bf4411e0df73b77dc5 100644 (file)
@@ -1,3 +1,3 @@
-load_lib llvm-dg.exp
+load_lib llvm.exp
 
-llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,llx,c,cpp,tr}]]
index 221f078f0fd7fc901c404f1240bad76d8448f634..dd94613e7cb6026d2d72de82dcb2a1feb6637c89 100644 (file)
@@ -1,6 +1,9 @@
 ; Make sure this testcase codegens to the fabs instruction, not a call to fabsf
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=-sse2,-sse3 | grep 'fabs$' | wc -l | grep 1 && 
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=-sse2,-sse3 -enable-unsafe-fp-math  | grep 'fabs$' | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=-sse2,-sse3 | \
+; RUN:   grep fabs\$ | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN:   llc -march=x86 -mattr=-sse2,-sse3 -enable-unsafe-fp-math  | \
+; RUN:   grep fabs\$ | wc -l | grep 2
 
 target endian = little
 target pointersize = 32
index 75e36dce338517861015a3d7ea316269e5cbcda9..ed15dd2c42cb6f93d3671b06ae8a2c419364b6de 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel -mcpu=yonah | grep 'ret 20'
+; RUN: llvm-upgrade < %s | llvm-as | \
+; RUN:   llc -march=x86 -x86-asm-syntax=intel -mcpu=yonah | grep {ret 20}
 
 ; Check that a fastcc function pops its stack variables before returning.
 
index 375d60c8d157f98bd2b9474f40b437ac9d0d2893..252981fcd7476d5fd3386a1807355bfa03884892 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep 'add ESP, 8'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   grep {add ESP, 8}
 
 target triple = "i686-pc-linux-gnu"
 
index 721b2d80118bb8da98f9429fd1b309e2c3688e8c..dc88015dd16573e3acbc4227e0c1cbfc687c2153 100644 (file)
@@ -1,4 +1,5 @@
-; RUN:  llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | grep 'mov EDX, 1'
+; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   grep {mov EDX, 1}
 ; check that fastcc is passing stuff in regs.
 
 declare x86_fastcallcc i64 @callee(i64)
index bf8833dd2c888195f048c45dfb53009ec570918c..c51366648663237a0675f6e0b75f6e0166ffc5b1 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mtriple=mingw32 | grep '@12'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mtriple=mingw32 | \
+; RUN:   grep {@12}
 
 ; Check that a fastcall function gets correct mangling
 
index 6acc2c2684eb66fededf45a870913caf00b57c05..73c184b26e6116328f3052571790f03fafb0b173 100644 (file)
@@ -1,5 +1,6 @@
 ;; Test that this FP immediate is stored in the constant pool as a float.
 
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=-sse2,-sse3 | grep '.long.1123418112'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=-sse2,-sse3 | \
+; RUN:   grep {.long.1123418112}
 
 double %D() { ret double 123.0 }
index 86286bd20eb84f50e571f8a472db770b515c2b80..2592052322b2777dcc0faa870af98bf29e67998b 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=i386 | grep fucomi.*st.[12]
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mcpu=i386 | \
+; RUN:   grep {fucomi.*st.\[12\]}
 ; PR1012
 
 float %foo(float *%col.2.0) {
index 02c76a84f35d23da799b5ad69089d05b32e9ccab..97cb1c0ed139c666518eb8c6c31d81c9a534527a 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep ST | not grep 'fadd\|fsub\|fdiv\|fmul'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   grep ST | not grep {fadd\\|fsub\\|fdiv\\|fmul}
 
 ; Test that the load of the constant is folded into the operation.
 
index c3a00094dacf0fb143a98750dae607d042c47e37..1d8d353e4d6563c44295bb5a72639df3478182e8 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep ST | not grep 'fadd\|fsub\|fdiv\|fmul'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   grep ST | not grep {fadd\\|fsub\\|fdiv\\|fmul}
 
 ; Test that the load of the memory location is folded into the operation.
 
index 50c4e0f6bbc1d65b179907f3d6cbeca323dc94f8..d9bddc9c6b3b83c3a9595d311b06443d0f0221f6 100644 (file)
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=x86-64 | grep 'movq 8(%rdi), %rdx' &&
-; RUN: llvm-as < %s | llc -march=x86-64 | grep 'movq (%rdi), %rax'
+; RUN: llvm-as < %s | llc -march=x86-64 | grep {movq 8(%rdi), %rdx}
+; RUN: llvm-as < %s | llc -march=x86-64 | grep {movq (%rdi), %rax}
 
 define i128 @test(i128 *%P) {
         %A = load i128* %P
index 9e31ad0032caf7c399c04b529837d69987e68bf5..29c49cf11edf194db8d0ade8576ba3e2dc0a9551 100644 (file)
@@ -1,5 +1,6 @@
-; RUN: llvm-as < %s | llc -march=x86 | not grep lea &&
-; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin8 | grep 'movl $4, (%ecx,%eax,4)'
+; RUN: llvm-as < %s | llc -march=x86 | not grep lea
+; RUN: llvm-as < %s | llc -march=x86 -mtriple=i686-apple-darwin8 | \
+; RUN:   grep {movl \$4, (%ecx,%eax,4)}
 
 define i32 @test(i32* %X, i32 %B) {
        ; This gep should be sunk out of this block into the load/store users.
index fb02c1f5ddccd87ca758c326d498a020d4477b42..0665e55e90c9c6a8dad34e90d17535fbdf95794e 100644 (file)
@@ -1,7 +1,7 @@
 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep call
-declare bool %llvm.isunordered(double)
+declare bool %llvm.isunordered.f64(double)
 
 bool %test_isnan(double %X) {
-       %R = call bool %llvm.isunordered(double %X, double %X)
+       %R = call bool %llvm.isunordered.f64(double %X, double %X)
        ret bool %R
 }
index 3bbd146915c8f8d23513528e80d7ed7e081ee202..823bdb50a637e49ac3ddd624a83ea474ed0cb19d 100644 (file)
@@ -1,5 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep 'lea EAX, DWORD PTR \[... + 4\*... - 5\]' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | not grep add
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   grep {lea EAX, DWORD PTR \\\[... + 4\\*... - 5\\\]}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   not grep add
 
 int %test1(int %A, int %B) {
         %tmp1 = shl int %A, ubyte 2             ; <int> [#uses=1]
index 89841ff110ef66dc2b033ca35c31b932aed225e1..89991fd1c3e3e8d38605771d8909d241838b2a6f 100644 (file)
@@ -1,11 +1,11 @@
 
-; RUN: llvm-as < %s | llc -march=x86-64 | grep 'leal (%rdi,%rdi,2), %eax' &&
+; RUN: llvm-as < %s | llc -march=x86-64 | grep {leal (%rdi,%rdi,2), %eax}
 define i32 @test(i32 %a) {
         %tmp2 = mul i32 %a, 3           ; <i32> [#uses=1]
         ret i32 %tmp2
 }
 
-; RUN: llvm-as < %s | llc -march=x86-64 | grep 'leaq (,%rdi,4), %rax'
+; RUN: llvm-as < %s | llc -march=x86-64 | grep {leaq (,%rdi,4), %rax}
 define i64 @test2(i64 %a) {
         %tmp2 = shl i64 %a, 2
        %tmp3 = or i64 %tmp2, %a
index f85b5f89833f8ce544dcf9850e51d63a8995dadb..2c37b4d8856b60a244fc627096a0c319d7374b1b 100644 (file)
@@ -1,9 +1,9 @@
 ; RUN: llvm-upgrade < %s | llvm-as | \
 ; RUN:   llc -relocation-model=dynamic-no-pic -mtriple=i686-apple-darwin8.7.2 |\
-; RUN:   grep L_Arr.non_lazy_ptr &&
+; RUN:   grep L_Arr.non_lazy_ptr
 ; RUN: llvm-upgrade < %s | llvm-as | \
 ; RUN:   llc -relocation-model=dynamic-no-pic -mtriple=i686-apple-darwin8.7.2 |\
-; RUN:   %prcontext L_Arr.non_lazy_ptr 1 | grep '4(%esp)'
+; RUN:   %prcontext L_Arr.non_lazy_ptr 1 | grep {4(%esp)}
 
 %Arr = external global [0 x int]                ; <[0 x int]*> [#uses=2]
 
index b0f576622bac2e74e4bdc099a35f9e0752afb49d..eb1eee8019f13ca1ca7ca02ceb71c40273d72209 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep 'A(' | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
+; RUN:   grep {A(} | wc -l | grep 1
 ;
 ; Make sure the common loop invariant _A(reg) is hoisted up to preheader.
 
index 14f3546cc16110e886d2872463c624ddc3f4a4b9..11673cf92827cf25a548364e07f45b50cd33033d 100644 (file)
@@ -6,7 +6,8 @@
 
 ; Check that the shift gets turned into an LEA.
 
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | not grep 'mov E.X, E.X'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   not grep {mov E.X, E.X}
 
 %G = external global int
 
index c3c681c30c75e6587edf6df3ca26260343d65da4..056756432008e89c9ef34fce3e3d7c1c37adec39 100644 (file)
@@ -1,7 +1,8 @@
 ;; Both functions in this testcase should codegen to the same function, and
 ;; neither of them should require spilling anything to the stack.
 
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats  2>&1 | not grep 'Number of register spills'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -stats |& \
+; RUN:   not grep {Number of register spills}
 
 ;; This can be compiled to use three registers if the loads are not
 ;; folded into the multiplies, 2 registers otherwise.
index 209f831fc80aeeac01fd6aaaa9c04542d6466f9f..1471283d1a4854690f04d5b695b69d229f5de565 100644 (file)
@@ -1,4 +1,3 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep div
 
 int %test1(int %X) {
index acd22f5aef496a296e9e797b259aeded4e5bfaf5..fb04be96d6ff563b5dd87d5ceaa589b152e8f27d 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep ro[rl] | wc -l | grep 12
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   grep {ro\[rl\]} | wc -l | grep 12
 
 uint %rotl32(uint %A, ubyte %Amt) {
        %B = shl uint %A, ubyte %Amt
index 0945fe13ce30c4a066a879a4396cef3db817f1e6..a071c1151cd7d6d8b890574399b48c279ff36f4e 100644 (file)
@@ -1,5 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep 'shld.*CL' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | not grep 'mov CL, BL'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   grep {shld.*CL}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   not grep {mov CL, BL}
 
 ; PR687
 
index 0195226bd5eb9119f625f1c057ee8ddc1ff17f3d..83235c0ff55986cd22e18559ad92aa05c31d20e7 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-as < %s | llc -relocation-model=static -march=x86 | grep 'shll $3' | wc -l | grep 2
+; RUN: llvm-as < %s | llc -relocation-model=static -march=x86 | \
+; RUN:   grep {shll \$3} | wc -l | grep 2
 
 ; This should produce two shll instructions, not any lea's.
 
index 41cf79da4c0a319336f5adea0c23376794becc54..760e490dd9c5a140411dff6dbe7a42cbfbc70ad1 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep sh[lr]d | wc -l | grep 5
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   grep {sh\[lr\]d} | wc -l | grep 5
 
 long %test1(long %X, ubyte %C) {
        %Y = shl long %X, ubyte %C
index a1ea084201da1185053c3206ade058bf9f6869e7..671476a2087493f60d6c85217f23f8c724adcefa 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep 's[ah][rl]l' | wc -l | grep 1
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
+; RUN:   grep {s\[ah\]\[rl\]l} | wc -l | grep 1
 
 int* %test1(int *%P, uint %X) {
        %Y = shr uint %X, ubyte 2
index 37d864349beb108f572c5e9d87a70212d253d135..25d8aa39a7430e3ef1871fad107a80ab33d4a568 100644 (file)
@@ -1,5 +1,4 @@
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 &&
-; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not getp test
+; RUN: llvm-as < %s | llc -march=x86 -mattr=+sse2 | not grep test
 
 define float @test1(float %a, float %b) {
        %tmp = tail call float @copysignf( float %b, float %a )
index d3ad90984c07bb8d88606793027d83877dc63fc2..9c1c7b81fcd11e24eb2e636e2ccabf782d4eb372 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep 'mov'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | not grep mov
 ;
 ; Test the add and load are folded into the store instruction.
 
index c7f720ad901f60a13548000536d8d5afaee1f2ab..46996d7c9fd6f1cc57913921ff1b033a351f335f 100644 (file)
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | grep 'and DWORD PTR' | wc -l | grep 2
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -x86-asm-syntax=intel | \
+; RUN:   grep {and DWORD PTR} | wc -l | grep 2
 
 target endian = little
 target pointersize = 32
index 81e283f8117f2119143aadbfc0d599f4fdadbdf4..1cad6c5c09602887130f694e051885e2f268a026 100644 (file)
@@ -1,8 +1,9 @@
-; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic &&
-; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep _GLOBAL_OFFSET_TABLE_ &&
-; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep piclabel | wc -l | grep 3 &&
-; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOT | wc -l | grep 3 &&
-; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep GOTOFF | wc -l | grep 0
+; RUN: llvm-as < %s | \
+; RUN:   llc -mtriple=i686-pc-linux-gnu -relocation-model=pic -o %t -f 
+; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
+; RUN: grep piclabel %t | wc -l | grep 3
+; RUN: grep GOT %t | wc -l | grep 3
+; RUN: not grep GOTOFF %t | wc -l 
 
 @ptr = external global i32* 
 @dst = external global i32 
index 8a12bcfc9e52e46d7282294c58511b8bfd79cca9..3ed1f71553d73e148aa2ba5f9f575214612268d1 100644 (file)
@@ -1,9 +1,10 @@
-; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic &&
-; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep _GLOBAL_OFFSET_TABLE_ &&
-; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep piclabel | wc -l | grep 3 &&
-; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep PLT | wc -l | grep 1 &&
-; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep "GOT" | wc -l | grep 1 &&
-; RUN: llvm-as < %s | llc -mtriple=i686-pc-linux-gnu -relocation-model=pic | grep "GOTOFF" | wc -l | grep 0
+; RUN: llvm-as < %s | \
+; RUN:   llc -mtriple=i686-pc-linux-gnu -relocation-model=pic -o %t -f 
+; RUN: grep _GLOBAL_OFFSET_TABLE_ %t
+; RUN: grep piclabel %t | wc -l | grep 3
+; RUN: grep PLT %t | wc -l | grep 1
+; RUN: grep "GOT" %t | wc -l | grep 1
+; RUN: not grep "GOTOFF" %t
 
 @pfoo = external global void(...)* 
 
index 9fcc11dbb6829db8c4d78d0664122c981316a547..6875894bfec25f1c7c2148c8de412772524f227d 100644 (file)
@@ -1,5 +1,7 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep 'subl.*60'
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | grep 'movdqa.*32'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | \
+; RUN:   grep {subl.*60}
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 -mattr=+sse2 | \
+; RUN:   grep {movdqa.*32}
 
 void %test() {
        tail call void %xx( int 1, int 2, int 3, int 4, int 5, int 6, int 7, <2 x long> cast (<4 x int> < int 4, int 3, int 2, int 1 > to <2 x long>), <2 x long> cast (<4 x int> < int 8, int 7, int 6, int 5 > to <2 x long>), <2 x long> cast (<4 x int> < int 6, int 4, int 2, int 0 > to <2 x long>), <2 x long> cast (<4 x int> < int 8, int 4, int 2, int 1 > to <2 x long>), <2 x long> cast (<4 x int> < int 0, int 1, int 3, int 9 > to <2 x long>) )
index 78ea6d71487959df6e19a7236d53e72587856a73..f4fe2f4a4820887017d5ac6a18eccc6564daecaf 100644 (file)
@@ -1,4 +1,4 @@
-; RUN: llvm-as < %s | llc | grep 'movl %edi, %eax'
+; RUN: llvm-as < %s | llc | grep {movl %edi, %eax}
 ; The input value is already sign extended, don't re-extend it.
 ; This testcase corresponds to:
 ;   int test(short X) { return (int)X; }