summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-15 20:48:50 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-15 20:48:50 +0000
commitff8169f5cb4b5a3caa106bef61764ba4398d690d (patch)
treee86f4e582c93c9cb9a1ce413680221bcda3e2f5c /llvm/test/CodeGen
parent25cdea0579d9c0bfa7f30c1b52e6fcb2aaf8d914 (diff)
downloadbcm5719-llvm-ff8169f5cb4b5a3caa106bef61764ba4398d690d.tar.gz
bcm5719-llvm-ff8169f5cb4b5a3caa106bef61764ba4398d690d.zip
For PR1319: Upgrade to new test harness.
llvm-svn: 36086
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/ARM/long.ll1
-rw-r--r--llvm/test/CodeGen/Generic/2007-02-16-BranchFold.ll3
-rw-r--r--llvm/test/CodeGen/Generic/2007-02-23-DAGCombine-Miscompile.ll2
-rw-r--r--llvm/test/CodeGen/Generic/addc-fold2.ll5
-rw-r--r--llvm/test/CodeGen/Generic/dg.exp4
-rw-r--r--llvm/test/CodeGen/Generic/ispositive.ll9
-rw-r--r--llvm/test/CodeGen/Generic/phi-immediate-factoring.ll2
-rw-r--r--llvm/test/CodeGen/Generic/switch-crit-edge-constant.ll4
-rw-r--r--llvm/test/CodeGen/IA64/2005-10-29-shladd.ll2
-rw-r--r--llvm/test/CodeGen/IA64/dg.exp4
10 files changed, 18 insertions, 18 deletions
diff --git a/llvm/test/CodeGen/ARM/long.ll b/llvm/test/CodeGen/ARM/long.ll
index 2384aff2bf1..5acd1eae5e3 100644
--- a/llvm/test/CodeGen/ARM/long.ll
+++ b/llvm/test/CodeGen/ARM/long.ll
@@ -16,6 +16,7 @@
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | \
; RUN: grep sbc | wc -l | grep 1
; RUN: llvm-upgrade < %s | llvm-as | llc -march=thumb | grep __muldi3
+; END.
long %f1() {
entry:
diff --git a/llvm/test/CodeGen/Generic/2007-02-16-BranchFold.ll b/llvm/test/CodeGen/Generic/2007-02-16-BranchFold.ll
index c3222d2a918..69ed7db2dc8 100644
--- a/llvm/test/CodeGen/Generic/2007-02-16-BranchFold.ll
+++ b/llvm/test/CodeGen/Generic/2007-02-16-BranchFold.ll
@@ -1,6 +1,5 @@
-; RUN: llvm-as < %s | llc &&
-; RUN: llvm-as < %s | llc | grep jmp | wc -l | grep 0
; PR 1200
+; RUN: llvm-as < %s | llc | not grep jmp
; ModuleID = '<stdin>'
target datalayout = "e-p:32:32"
diff --git a/llvm/test/CodeGen/Generic/2007-02-23-DAGCombine-Miscompile.ll b/llvm/test/CodeGen/Generic/2007-02-23-DAGCombine-Miscompile.ll
index e220e92ebfe..63a1498736b 100644
--- a/llvm/test/CodeGen/Generic/2007-02-23-DAGCombine-Miscompile.ll
+++ b/llvm/test/CodeGen/Generic/2007-02-23-DAGCombine-Miscompile.ll
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=x86 | grep 'movl $1, %eax'
; PR1219
+; RUN: llvm-as < %s | llc -march=x86 | grep {movl \$1, %eax}
define i32 @test(i1 %X) {
old_entry1:
diff --git a/llvm/test/CodeGen/Generic/addc-fold2.ll b/llvm/test/CodeGen/Generic/addc-fold2.ll
index 72cc0f63b4c..8f3cdd0793d 100644
--- a/llvm/test/CodeGen/Generic/addc-fold2.ll
+++ b/llvm/test/CodeGen/Generic/addc-fold2.ll
@@ -1,6 +1,5 @@
-; RUN: llvm-as < %s | llc &&
-; RUN: llvm-as < %s | llc -march=x86 | grep 'add' &&
-; RUN: llvm-as < %s | llc -march=x86 | not grep 'adc'
+; RUN: llvm-as < %s | llc -march=x86 | grep add
+; RUN: llvm-as < %s | llc -march=x86 | not grep adc
define i64 @test(i64 %A, i32 %B) {
%tmp12 = zext i32 %B to i64 ; <i64> [#uses=1]
diff --git a/llvm/test/CodeGen/Generic/dg.exp b/llvm/test/CodeGen/Generic/dg.exp
index ff34508c3c6..879685ca879 100644
--- a/llvm/test/CodeGen/Generic/dg.exp
+++ b/llvm/test/CodeGen/Generic/dg.exp
@@ -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}]]
diff --git a/llvm/test/CodeGen/Generic/ispositive.ll b/llvm/test/CodeGen/Generic/ispositive.ll
index f1d7569efa2..c158f15cfb8 100644
--- a/llvm/test/CodeGen/Generic/ispositive.ll
+++ b/llvm/test/CodeGen/Generic/ispositive.ll
@@ -1,7 +1,8 @@
-; RUN: llvm-as < %s | llc -march=x86 | grep shrl.*31 &&
-; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | grep 'srwi r3, r3, 31' &&
-; RUN: llvm-as < %s | llc -march=arm | grep 'mov r0, r0, lsr #31' &&
-; RUN: llvm-as < %s | llc -march=thumb | grep 'lsr r0, r0, #31'
+; RUN: llvm-as < %s | llc -march=x86 | grep {shrl.*31}
+; RUN: llvm-as < %s | llc -march=ppc32 -mtriple=powerpc-apple-darwin8 | \
+; RUN: grep {srwi r3, r3, 31}
+; RUN: llvm-as < %s | llc -march=arm | grep {mov r0, r0, lsr #31}
+; RUN: llvm-as < %s | llc -march=thumb | grep {lsr r0, r0, #31}
define i32 @test1(i32 %X) {
entry:
diff --git a/llvm/test/CodeGen/Generic/phi-immediate-factoring.ll b/llvm/test/CodeGen/Generic/phi-immediate-factoring.ll
index 3d40c8e1060..cec1b433f68 100644
--- a/llvm/test/CodeGen/Generic/phi-immediate-factoring.ll
+++ b/llvm/test/CodeGen/Generic/phi-immediate-factoring.ll
@@ -1,5 +1,5 @@
-; RUN: llvm-as < %s | llc -march=x86 | grep 'movl $1' | wc -l | grep 1
; PR1296
+; RUN: llvm-as < %s | llc -march=x86 | grep {movl \$1} | wc -l | grep 1
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64"
target triple = "i686-apple-darwin8"
diff --git a/llvm/test/CodeGen/Generic/switch-crit-edge-constant.ll b/llvm/test/CodeGen/Generic/switch-crit-edge-constant.ll
index 12c15159af1..ef986e0ed5b 100644
--- a/llvm/test/CodeGen/Generic/switch-crit-edge-constant.ll
+++ b/llvm/test/CodeGen/Generic/switch-crit-edge-constant.ll
@@ -1,6 +1,6 @@
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 &&
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | grep 'mov.*str1' | wc -l | grep 1
; PR925
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86 | \
+; RUN: grep mov.*str1 | wc -l | grep 1
target endian = little
target pointersize = 32
diff --git a/llvm/test/CodeGen/IA64/2005-10-29-shladd.ll b/llvm/test/CodeGen/IA64/2005-10-29-shladd.ll
index 355b487ef56..186e5e84286 100644
--- a/llvm/test/CodeGen/IA64/2005-10-29-shladd.ll
+++ b/llvm/test/CodeGen/IA64/2005-10-29-shladd.ll
@@ -1,5 +1,5 @@
; this should turn into shladd
-; RUN: llvm-upgrade < %s | llvm-as | llc -march=ia64 | grep 'shladd'
+; RUN: llvm-upgrade < %s | llvm-as | llc -march=ia64 | grep shladd
implementation ; Functions:
diff --git a/llvm/test/CodeGen/IA64/dg.exp b/llvm/test/CodeGen/IA64/dg.exp
index ff34508c3c6..879685ca879 100644
--- a/llvm/test/CodeGen/IA64/dg.exp
+++ b/llvm/test/CodeGen/IA64/dg.exp
@@ -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}]]
OpenPOWER on IntegriCloud