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

17 files changed:
test/CodeGen/Alpha/add.ll
test/CodeGen/Alpha/bic.ll
test/CodeGen/Alpha/bsr.ll
test/CodeGen/Alpha/ctlz.ll
test/CodeGen/Alpha/ctlz_e.ll
test/CodeGen/Alpha/ctpop.ll
test/CodeGen/Alpha/dg.exp
test/CodeGen/Alpha/eqv.ll
test/CodeGen/Alpha/i32_sub_1.ll
test/CodeGen/Alpha/jmp_table.ll
test/CodeGen/Alpha/mul5.ll
test/CodeGen/Alpha/neg1.ll
test/CodeGen/Alpha/not.ll
test/CodeGen/Alpha/ornot.ll
test/CodeGen/Alpha/srl_and.ll
test/CodeGen/Alpha/zapnot.ll
test/CodeGen/Alpha/zapnot2.ll

index 8add4b41eab91c998926841d7c26a932b59eaaf2..16ce2b0ab85931061ed7cea395f46bd25cfa221a 100644 (file)
@@ -1,21 +1,21 @@
 ;test all the shifted and signextending adds and subs with and without consts
 ;
-; RUN: llvm-as < %s | llc -march=alpha -o %t.s -f &&
-; RUN: grep '  addl' %t.s | wc -l | grep 2 &&
-; RUN: grep '  addq' %t.s | wc -l | grep 2 &&
-; RUN: grep '  subl' %t.s | wc -l | grep 2 &&
-; RUN: grep '  subq' %t.s | wc -l | grep 1 &&
+; RUN: llvm-as < %s | llc -march=alpha -o %t.s -f
+; RUN: grep {  addl} %t.s | wc -l | grep 2
+; RUN: grep {  addq} %t.s | wc -l | grep 2
+; RUN: grep {  subl} %t.s | wc -l | grep 2
+; RUN: grep {  subq} %t.s | wc -l | grep 1
 ;
-; RUN: grep 'lda $0,-100($16)' %t.s | wc -l | grep 1 &&
-; RUN: grep 's4addl' %t.s | wc -l | grep 2 &&
-; RUN: grep 's8addl' %t.s | wc -l | grep 2 &&
-; RUN: grep 's4addq' %t.s | wc -l | grep 2 &&
-; RUN: grep 's8addq' %t.s | wc -l | grep 2 &&
+; RUN: grep {lda \$0,-100(\$16)} %t.s | wc -l | grep 1
+; RUN: grep {s4addl} %t.s | wc -l | grep 2
+; RUN: grep {s8addl} %t.s | wc -l | grep 2
+; RUN: grep {s4addq} %t.s | wc -l | grep 2
+; RUN: grep {s8addq} %t.s | wc -l | grep 2
 ;
-; RUN: grep 's4subl' %t.s | wc -l | grep 2 &&
-; RUN: grep 's8subl' %t.s | wc -l | grep 2 &&
-; RUN: grep 's4subq' %t.s | wc -l | grep 2 &&
-; RUN: grep 's8subq' %t.s | wc -l | grep 2
+; RUN: grep {s4subl} %t.s | wc -l | grep 2
+; RUN: grep {s8subl} %t.s | wc -l | grep 2
+; RUN: grep {s4subq} %t.s | wc -l | grep 2
+; RUN: grep {s8subq} %t.s | wc -l | grep 2
 
 
 define i32 @al(i32 sext %x.s, i32 sext %y.s) sext {
index f4664c82e32daf2136f1530dc5233aa657a9d961..4e55d182af9a2c414529a1f234fdcd79bd3587f4 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase codegens to the bic instruction
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'bic'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep {bic}
 
 implementation   ; Functions:
 
index 1cd68067ef23005b60cb8ab883a01b4542b8e230..32ea0cb0d994382b6da4646a66d89094d8d692c6 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase codegens the bsr instruction
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'bsr'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep bsr
 
 implementation
 
index 75035f2c26092eebbb280f1be65eaca89725b11b..0ad014dbf970deb7d2c7db2951e28c5392ceb982 100644 (file)
@@ -1,16 +1,14 @@
 ; Make sure this testcase codegens to the ctlz instruction
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev67 | grep -i 'ctlz'
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=+CIX | grep -i 'ctlz'
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev6 | not grep -i 'ctlz'
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev56 | not grep -i 'ctlz'
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=-CIX | not grep -i 'ctlz'
+; RUN: llvm-as < %s | llc -march=alpha -mcpu=ev67 | grep -i ctlz
+; RUN: llvm-as < %s | llc -march=alpha -mattr=+CIX | grep -i ctlz
+; RUN: llvm-as < %s | llc -march=alpha -mcpu=ev6 | not grep -i ctlz
+; RUN: llvm-as < %s | llc -march=alpha -mcpu=ev56 | not grep -i ctlz
+; RUN: llvm-as < %s | llc -march=alpha -mattr=-CIX | not grep -i ctlz
 
-declare ubyte %llvm.ctlz(ubyte)
+declare i32 @llvm.ctlz.i8(i8)
 
-implementation   ; Functions:
-
-ubyte %bar(ubyte %x) {
+define i32 @bar(i8 %x) {
 entry:
-       %tmp.1 = call ubyte %llvm.ctlz( ubyte %x ) 
-       ret ubyte %tmp.1
+       %tmp.1 = call i32 @llvm.ctlz.i8( i8 %x ) 
+       ret i32 %tmp.1
 }
index d7dab23ea9a4aa09fa111bdc36756eb41fccf4f3..7956f5c13dfee450a320e3141b1fe5bf9e701bcb 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase does not use ctpop
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep -i 'ctpop' |wc -l |grep 0
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | not grep -i ctpop 
 
 declare ulong %llvm.ctlz(ulong)
 
index bbd35ffa9799c3022d43c6a3582bfb95ae7516be..e68d23708edd1760003a4218297407042943ae8f 100644 (file)
@@ -1,10 +1,13 @@
 ; Make sure this testcase codegens to the ctpop instruction
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev67 | grep -i 'ctpop'
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=+CIX | grep -i 'ctpop'
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev6 | not grep -i 'ctpop'
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev56 | not grep -i 'ctpop'
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=-CIX | not grep -i 'ctpop'
-
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev67 | grep -i ctpop
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=+CIX | \
+; RUN:   grep -i ctpop
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev6 | \
+; RUN:   not grep -i ctpop
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mcpu=ev56 | \
+; RUN:   not grep -i ctpop
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha -mattr=-CIX | \
+; RUN:   not grep -i 'ctpop'
 
 declare long %llvm.ctpop(long)
 
index e86a9804daffb1d94487b7425fac94adecdfb165..39954d8a498dee39dad7cf4d7d6fd713edc2d997 100644 (file)
@@ -1,3 +1,3 @@
-load_lib llvm-dg.exp
+load_lib llvm.exp
 
-llvm-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]]
+RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll}]]
index f8e699164715d8f287897ad42e1824b0d82fe1f2..76bbc92601d04c0e0d884e3d70c1e38ce3fba404 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase codegens to the eqv instruction
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'eqv'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep eqv
 
 implementation   ; Functions:
 
index c5994733c956f0e359410c869f8fabaa3064f88d..ae254f2e9e10fc65b34adc528279466aafc9a485 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase codegens to the ctpop instruction
-; RUN: llvm-as < %s | llc -march=alpha | grep -i 'subl $16,1,$0'
+; RUN: llvm-as < %s | llc -march=alpha | grep -i {subl \$16,1,\$0}
 
 
 define i32 @foo(i32 sext %x) sext {
index 9c1f27877a60f3f3c8fe23fe7c0be7c8d2c6d269..175e7bf25b2e011c8163ae6986a01266c52d1399 100644 (file)
@@ -1,8 +1,10 @@
-; try to check that we have the most important instructions, which shouldn't appear otherwise
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'jmp' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'gprel32' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'ldl' &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'rodata'
+; try to check that we have the most important instructions, which shouldn't 
+; appear otherwise
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep jmp
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep gprel32
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep ldl
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep rodata
+; END.
 
 target endian = little
 target pointersize = 64
index 5e41d0fd8565fc61c12b75b7de68f581dc546012..8159ff007f2868a10a28fb1239f2090b887205a6 100644 (file)
@@ -1,5 +1,6 @@
 ; Make sure this testcase does not use mulq
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep -i 'mul' |wc -l |grep 0
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | \
+; RUN:   not grep -i mul
 
 implementation   ; Functions:
 
index e8e50860bbeb0d533003a213e717b26c7124260e..037e3a2bfb3e9a3aacfec2f0a673a293b95f197d 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase codegens to the lda -1 instruction
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep '\-1'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep {\\-1}
 
 implementation   ; Functions:
 
index 406f6242938330f86731d564c17323e99e7cba18..3423aa7cd164126e6f0ccdb9714d357d640eeb94 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase codegens to the ornot instruction
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'eqv'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep eqv
 
 implementation   ; Functions:
 
index fc982b34aa2f96af45d4da2e93117d9bb5dd13f8..d2da888f35038ac1bca691313b691e3d25c9929b 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase codegens to the ornot instruction
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'ornot'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep ornot
 
 implementation   ; Functions:
 
index 49074cc9168906a5dd4434af4dff881e2dacb968..2ed1bf98d76bbb44d424eac7837d52b02957115e 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase codegens to the zapnot instruction
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'zapnot'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep zapnot
 
 ulong %foo(ulong %y) {
 entry:
index 835dc3172847c923f123a53db5ec48b821d3441a..05e90ece31b0c2bf3a9aa6850894b6fa7eb4eb01 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase codegens to the bic instruction
-; RUN: llvm-as < %s | llc -march=alpha | grep 'zapnot'
+; RUN: llvm-as < %s | llc -march=alpha | grep zapnot
 
 
 define i16 @foo(i64 %y) zext {
index a84400f5563a859e16895ad4b46423eec847c5b9..d026edd28975afdb0fe4ffcc82041f39519ba4e2 100644 (file)
@@ -1,5 +1,5 @@
 ; Make sure this testcase codegens to the zapnot instruction
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep 'zapnot'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=alpha | grep zapnot
 
 implementation   ; Functions: