Only fails on the Sparc, only when run via the JIT.
authorMisha Brukman <brukman+llvm@gmail.com>
Tue, 21 Oct 2003 04:13:37 +0000 (04:13 +0000)
committerMisha Brukman <brukman+llvm@gmail.com>
Tue, 21 Oct 2003 04:13:37 +0000 (04:13 +0000)
And yet, it's a failure in the ``LowerSwitch'' pass.

llvm-svn: 9315

llvm/test/Regression/Transforms/LowerSwitch/2003-10-20-ConstGetOp.ll [new file with mode: 0644]

diff --git a/llvm/test/Regression/Transforms/LowerSwitch/2003-10-20-ConstGetOp.ll b/llvm/test/Regression/Transforms/LowerSwitch/2003-10-20-ConstGetOp.ll
new file mode 100644 (file)
index 0000000..63852a6
--- /dev/null
@@ -0,0 +1,16 @@
+void %main() {
+entry:         ; No predecessors!
+       switch uint 1, label %exit [
+                uint 0, label %label.0
+     uint 1, label %label.1
+       ]
+
+label.0:               ; preds = %endif.1
+       br label %exit
+
+label.1:               ; preds = %endif.1
+  br label %exit
+
+exit:
+       ret void
+}