[llvm-commits] CVS: llvm/test/Regression/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll
Chris Lattner
lattner at cs.uiuc.edu
Sat Mar 13 22:15:01 PST 2004
Changes in directory llvm/test/Regression/Transforms/LowerSwitch:
2004-03-13-SwitchIsDefaultCrash.ll added (r1.1)
---
Log message:
New testcase that crashes the -lowerswitch pass
---
Diffs of the changes: (+21 -0)
Index: llvm/test/Regression/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll
diff -c /dev/null llvm/test/Regression/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll:1.1
*** /dev/null Sat Mar 13 22:14:08 2004
--- llvm/test/Regression/Transforms/LowerSwitch/2004-03-13-SwitchIsDefaultCrash.ll Sat Mar 13 22:13:57 2004
***************
*** 0 ****
--- 1,21 ----
+ ; RUN: llvm-as < %s | opt -lowerswitch -disable-output
+
+ void %solve() {
+ entry:
+ %targetBlock = call ushort %solve_code( ) ; <ushort> [#uses=1]
+ br label %codeReplTail
+
+ then.1: ; preds = %codeReplTail
+ ret void
+
+ loopexit.0: ; preds = %codeReplTail
+ ret void
+
+ codeReplTail: ; preds = %entry, %codeReplTail
+ switch ushort %targetBlock, label %codeReplTail [
+ ushort 0, label %loopexit.0
+ ushort 1, label %then.1
+ ]
+ }
+
+ declare ushort %solve_code()
More information about the llvm-commits
mailing list