summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopStrengthReduce
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-15 08:30:33 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-15 08:30:33 +0000
commit951d8dc29fff7ab225affb2b5b00f053a98495f6 (patch)
treefd157257862153709cfb92c3c469d448623284c3 /llvm/test/Transforms/LoopStrengthReduce
parent8eba4c3d12b38a48882901eda50a57424940ecd1 (diff)
downloadbcm5719-llvm-951d8dc29fff7ab225affb2b5b00f053a98495f6.tar.gz
bcm5719-llvm-951d8dc29fff7ab225affb2b5b00f053a98495f6.zip
For PR1319:
Upgrade to use new Tcl exec based test harness. llvm-svn: 36062
Diffstat (limited to 'llvm/test/Transforms/LoopStrengthReduce')
-rw-r--r--llvm/test/Transforms/LoopStrengthReduce/dg.exp4
-rw-r--r--llvm/test/Transforms/LoopStrengthReduce/dont-hoist-simple-loop-constants.ll4
-rw-r--r--llvm/test/Transforms/LoopStrengthReduce/exit_compare_live_range.ll2
-rw-r--r--llvm/test/Transforms/LoopStrengthReduce/use_postinc_value_outside_loop.ll3
-rw-r--r--llvm/test/Transforms/LoopStrengthReduce/var_stride_used_by_compare.ll9
5 files changed, 13 insertions, 9 deletions
diff --git a/llvm/test/Transforms/LoopStrengthReduce/dg.exp b/llvm/test/Transforms/LoopStrengthReduce/dg.exp
index ff34508c3c6..879685ca879 100644
--- a/llvm/test/Transforms/LoopStrengthReduce/dg.exp
+++ b/llvm/test/Transforms/LoopStrengthReduce/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/Transforms/LoopStrengthReduce/dont-hoist-simple-loop-constants.ll b/llvm/test/Transforms/LoopStrengthReduce/dont-hoist-simple-loop-constants.ll
index b8f318b307f..3c1003b4973 100644
--- a/llvm/test/Transforms/LoopStrengthReduce/dont-hoist-simple-loop-constants.ll
+++ b/llvm/test/Transforms/LoopStrengthReduce/dont-hoist-simple-loop-constants.ll
@@ -1,4 +1,6 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | not grep 'cast uint 1 to uint'
+; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | \
+; RUN: not grep {cast uint 1 to uint}
+; END.
; The setlt wants to use a value that is incremented one more than the dominant
; IV. Don't insert the 1 outside the loop, preventing folding it into the add.
diff --git a/llvm/test/Transforms/LoopStrengthReduce/exit_compare_live_range.ll b/llvm/test/Transforms/LoopStrengthReduce/exit_compare_live_range.ll
index 79beb0bff74..4c31a985401 100644
--- a/llvm/test/Transforms/LoopStrengthReduce/exit_compare_live_range.ll
+++ b/llvm/test/Transforms/LoopStrengthReduce/exit_compare_live_range.ll
@@ -3,7 +3,7 @@
; instruction immediately before the conditional branch.
;
; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | \
-; RUN: %prcontext 'br i1' 1 | grep icmp
+; RUN: %prcontext {br i1} 1 | grep icmp
void %foo(float* %D, uint %E) {
entry:
diff --git a/llvm/test/Transforms/LoopStrengthReduce/use_postinc_value_outside_loop.ll b/llvm/test/Transforms/LoopStrengthReduce/use_postinc_value_outside_loop.ll
index 028400c47f0..195f0b282e5 100644
--- a/llvm/test/Transforms/LoopStrengthReduce/use_postinc_value_outside_loop.ll
+++ b/llvm/test/Transforms/LoopStrengthReduce/use_postinc_value_outside_loop.ll
@@ -1,4 +1,5 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | grep 'add i32 %iv.*inc, 1'
+; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | \
+; RUN: grep {add i32 %iv.*inc, 1}
;
; Make sure that the use of the IV outside of the loop (the store) uses the
; post incremented value of the IV, not the preincremented value. This
diff --git a/llvm/test/Transforms/LoopStrengthReduce/var_stride_used_by_compare.ll b/llvm/test/Transforms/LoopStrengthReduce/var_stride_used_by_compare.ll
index 3e8f63abe3b..1daa40384ee 100644
--- a/llvm/test/Transforms/LoopStrengthReduce/var_stride_used_by_compare.ll
+++ b/llvm/test/Transforms/LoopStrengthReduce/var_stride_used_by_compare.ll
@@ -1,10 +1,11 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis &&
-
; Base should not be i*3, it should be i*2.
-; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | not grep 'mul.*%i, 3' &&
+; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | \
+; RUN: not grep {mul.*%i, 3}
; Indvar should not start at zero:
-; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | not grep 'phi uint .* 0'
+; RUN: llvm-upgrade < %s | llvm-as | opt -loop-reduce | llvm-dis | \
+; RUN: not grep {phi uint .* 0}
+; END.
; mul uint %i, 3
OpenPOWER on IntegriCloud