summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll')
-rw-r--r--llvm/test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll b/llvm/test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll
new file mode 100644
index 00000000000..73fd6582a29
--- /dev/null
+++ b/llvm/test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll
@@ -0,0 +1,16 @@
+; RUN: llvm-upgrade < %s | llvm-as | llc
+; This crashed the PPC backend.
+
+void %test() {
+ %tmp125 = call bool %llvm.isunordered.f64( double 0.000000e+00, double 0.000000e+00 ) ; <bool> [#uses=1]
+ br bool %tmp125, label %bb154, label %cond_false133
+
+cond_false133: ; preds = %entry
+ ret void
+
+bb154: ; preds = %entry
+ %tmp164 = seteq uint 0, 0 ; <bool> [#uses=0]
+ ret void
+}
+
+declare bool %llvm.isunordered.f64(double, double)
OpenPOWER on IntegriCloud