[llvm-commits] CVS: llvm/test/Regression/Transforms/IndVarsSimplify/2005-06-15-InstMoveCrash.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Jun 15 14:29:06 PDT 2005
Changes in directory llvm/test/Regression/Transforms/IndVarsSimplify:
2005-06-15-InstMoveCrash.ll added (r1.1)
---
Log message:
new testcase for PR582: http://llvm.cs.uiuc.edu/PR582
---
Diffs of the changes: (+36 -0)
2005-06-15-InstMoveCrash.ll | 36 ++++++++++++++++++++++++++++++++++++
1 files changed, 36 insertions(+)
Index: llvm/test/Regression/Transforms/IndVarsSimplify/2005-06-15-InstMoveCrash.ll
diff -c /dev/null llvm/test/Regression/Transforms/IndVarsSimplify/2005-06-15-InstMoveCrash.ll:1.1
*** /dev/null Wed Jun 15 16:29:05 2005
--- llvm/test/Regression/Transforms/IndVarsSimplify/2005-06-15-InstMoveCrash.ll Wed Jun 15 16:28:55 2005
***************
*** 0 ****
--- 1,36 ----
+ ; RUN: llvm-as < %s | opt -indvars -disable-output
+
+ void %main() {
+ entry:
+ br label %no_exit.1.outer
+
+ no_exit.1.outer: ; preds = %endif.0, %entry
+ %l_14237116.1.0.ph = phi sbyte [ -46, %entry ], [ 0, %endif.0 ] ; <sbyte> [#uses=1]
+ %i.0.0.0.ph = phi int [ 0, %entry ], [ %inc.1, %endif.0 ] ; <int> [#uses=1]
+ br label %no_exit.1
+
+ no_exit.1: ; preds = %_Z13func_47880058cc.exit, %no_exit.1.outer
+ br bool false, label %_Z13func_47880058cc.exit, label %then.i
+
+ then.i: ; preds = %no_exit.1
+ br label %_Z13func_47880058cc.exit
+
+ _Z13func_47880058cc.exit: ; preds = %then.i, %no_exit.1
+ br bool false, label %then.0, label %no_exit.1
+
+ then.0: ; preds = %_Z13func_47880058cc.exit
+ %tmp.6 = cast sbyte %l_14237116.1.0.ph to ubyte ; <ubyte> [#uses=1]
+ br bool false, label %endif.0, label %then.1
+
+ then.1: ; preds = %then.0
+ br label %endif.0
+
+ endif.0: ; preds = %then.1, %then.0
+ %inc.1 = add int %i.0.0.0.ph, 1 ; <int> [#uses=2]
+ %tmp.2 = setgt int %inc.1, 99 ; <bool> [#uses=1]
+ br bool %tmp.2, label %loopexit.0, label %no_exit.1.outer
+
+ loopexit.0: ; preds = %endif.0
+ %tmp.28 = cast ubyte %tmp.6 to uint ; <uint> [#uses=0]
+ ret void
+ }
More information about the llvm-commits
mailing list