[llvm-commits] CVS: llvm/test/Regression/Transforms/ScalarRepl/2005-12-14-UnionPromoteCrash.ll
Chris Lattner
lattner at cs.uiuc.edu
Wed Dec 14 09:23:32 PST 2005
Changes in directory llvm/test/Regression/Transforms/ScalarRepl:
2005-12-14-UnionPromoteCrash.ll added (r1.1)
---
Log message:
new (undefined) testcase, distilled from 126.gcc that scalarrepl crashes on
---
Diffs of the changes: (+34 -0)
2005-12-14-UnionPromoteCrash.ll | 34 ++++++++++++++++++++++++++++++++++
1 files changed, 34 insertions(+)
Index: llvm/test/Regression/Transforms/ScalarRepl/2005-12-14-UnionPromoteCrash.ll
diff -c /dev/null llvm/test/Regression/Transforms/ScalarRepl/2005-12-14-UnionPromoteCrash.ll:1.1
*** /dev/null Wed Dec 14 11:23:30 2005
--- llvm/test/Regression/Transforms/ScalarRepl/2005-12-14-UnionPromoteCrash.ll Wed Dec 14 11:23:20 2005
***************
*** 0 ****
--- 1,34 ----
+ ; RUN: llvm-as < %s | opt -scalarrepl -disable-output
+ target endian = big
+ target pointersize = 32
+ %struct.rtx_def = type { [2 x ubyte], int, [1 x %union.rtunion_def] }
+ %union.rtunion_def = type { uint }
+
+ implementation ; Functions:
+
+ void %find_reloads() {
+ entry:
+ %c_addr.i = alloca sbyte ; <sbyte*> [#uses=1]
+ switch uint 0, label %return [
+ uint 36, label %label.7
+ uint 34, label %label.7
+ uint 41, label %label.5
+ ]
+
+ label.5: ; preds = %entry
+ ret void
+
+ label.7: ; preds = %entry, %entry
+ br bool false, label %then.4, label %switchexit.0
+
+ then.4: ; preds = %label.7
+ %tmp.0.i = cast sbyte* %c_addr.i to int* ; <int*> [#uses=1]
+ store int 44, int* %tmp.0.i
+ ret void
+
+ switchexit.0: ; preds = %label.7
+ ret void
+
+ return: ; preds = %entry
+ ret void
+ }
More information about the llvm-commits
mailing list