[llvm-commits] CVS: llvm/test/Regression/Transforms/IndVarsSimplify/2005-02-26-ExitValueCompute.ll 2006-03-31-NegativeStride.ll variable-stride-ivs.ll

Reid Spencer reid at x10sys.com
Sat Dec 30 22:03:25 PST 2006



Changes in directory llvm/test/Regression/Transforms/IndVarsSimplify:

2005-02-26-ExitValueCompute.ll updated: 1.2 -> 1.3
2006-03-31-NegativeStride.ll updated: 1.2 -> 1.3
variable-stride-ivs.ll updated: 1.2 -> 1.3
---
Log message:

For PR950: http://llvm.org/PR950 :
Update the test suite to accommodate the change from signed integer types
to signless integer types. The changes were of only a few kinds:

1. Make sure llvm-upgrade is run on the source which does the bulk of the
   changes automatically.

2. Change things like "grep 'int'" to "grep 'i32'"

3. In several tests bitcasting caused the same name to be reused in the
   same type plane. These had to be manually fixed. The fix was (generally)
   to leave the bitcast and provide the instruction with a new name. This
   should not affect the semantics of the test. In a few cases, the 
   bitcasts were known to be superfluous and irrelevant to the test case
   so they were removed.

4. One test case uses a bytecode file which needed to be updated to the
   latest bytecode format.



---
Diffs of the changes:  (+6 -6)

 2005-02-26-ExitValueCompute.ll |    2 +-
 2006-03-31-NegativeStride.ll   |    2 +-
 variable-stride-ivs.ll         |    8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)


Index: llvm/test/Regression/Transforms/IndVarsSimplify/2005-02-26-ExitValueCompute.ll
diff -u llvm/test/Regression/Transforms/IndVarsSimplify/2005-02-26-ExitValueCompute.ll:1.2 llvm/test/Regression/Transforms/IndVarsSimplify/2005-02-26-ExitValueCompute.ll:1.3
--- llvm/test/Regression/Transforms/IndVarsSimplify/2005-02-26-ExitValueCompute.ll:1.2	Fri Dec  1 22:23:09 2006
+++ llvm/test/Regression/Transforms/IndVarsSimplify/2005-02-26-ExitValueCompute.ll	Sun Dec 31 00:01:59 2006
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep 'ret int 152'
+; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep 'ret i32 152'
 
 int %main() {
 entry:


Index: llvm/test/Regression/Transforms/IndVarsSimplify/2006-03-31-NegativeStride.ll
diff -u llvm/test/Regression/Transforms/IndVarsSimplify/2006-03-31-NegativeStride.ll:1.2 llvm/test/Regression/Transforms/IndVarsSimplify/2006-03-31-NegativeStride.ll:1.3
--- llvm/test/Regression/Transforms/IndVarsSimplify/2006-03-31-NegativeStride.ll:1.2	Fri Dec  1 22:23:09 2006
+++ llvm/test/Regression/Transforms/IndVarsSimplify/2006-03-31-NegativeStride.ll	Sun Dec 31 00:01:59 2006
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep 'ret int 27'
+; RUN: llvm-upgrade < %s | llvm-as | opt -indvars | llvm-dis | grep 'ret i32 27'
 
 ; Make sure to compute the right exit value based on negative strides.
 ; PR726


Index: llvm/test/Regression/Transforms/IndVarsSimplify/variable-stride-ivs.ll
diff -u llvm/test/Regression/Transforms/IndVarsSimplify/variable-stride-ivs.ll:1.2 llvm/test/Regression/Transforms/IndVarsSimplify/variable-stride-ivs.ll:1.3
--- llvm/test/Regression/Transforms/IndVarsSimplify/variable-stride-ivs.ll:1.2	Fri Dec  1 22:23:09 2006
+++ llvm/test/Regression/Transforms/IndVarsSimplify/variable-stride-ivs.ll	Sun Dec 31 00:01:59 2006
@@ -1,4 +1,4 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -instcombine | llvm-dis | grep 'store int 0'
+; RUN: llvm-upgrade < %s | llvm-as | opt -indvars -instcombine | llvm-dis | grep 'store i32 0'
 ; Test that -indvars can reduce variable stride IVs.  If it can reduce variable
 ; stride iv's, it will make %iv. and %m.0.0 isomorphic to each other without 
 ; cycles, allowing the tmp.21 subtraction to be eliminated.
@@ -19,7 +19,7 @@
         br label %no_exit
 
 no_exit:                ; preds = %no_exit, %no_exit.preheader
-        %iv. = phi uint [ 0, %no_exit.preheader ], [ %iv..inc, %no_exit ]               ; <uint> [#uses=1]
+        %iv.ui = phi uint [ 0, %no_exit.preheader ], [ %iv..inc.ui, %no_exit ]               ; <uint> [#uses=1]
         %iv. = phi int [ %tmp.5, %no_exit.preheader ], [ %iv..inc, %no_exit ]           ; <int> [#uses=2]
         %m.0.0 = phi int [ %tmp.5, %no_exit.preheader ], [ %tmp.24, %no_exit ]          ; <int> [#uses=2]
         store int 2, int* %tmp.16
@@ -27,8 +27,8 @@
         store int %tmp.21, int* %data
         %tmp.24 = add int %m.0.0, %tmp.9                ; <int> [#uses=1]
         %iv..inc = add int %tmp.9, %iv.         ; <int> [#uses=1]
-        %iv..inc = add uint %iv., 1             ; <uint> [#uses=2]
-        %iv..inc1 = cast uint %iv..inc to int           ; <int> [#uses=1]
+        %iv..inc.ui = add uint %iv.ui, 1             ; <uint> [#uses=2]
+        %iv..inc1 = cast uint %iv..inc.ui to int           ; <int> [#uses=1]
         %tmp.12 = setlt int %iv..inc1, %tmp.2           ; <bool> [#uses=1]
         br bool %tmp.12, label %no_exit, label %return.loopexit
 






More information about the llvm-commits mailing list