aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-27 20:52:00 +0000
committerChris Lattner <sabre@nondot.org>2006-08-27 20:52:00 +0000
commit1c548b645ba91583ef567d264442cb2b71d6fb74 (patch)
treebfbc52b75cf50c58153688db69fbff54f881d79f /test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll
parent8dc728e4408fdfb02505d6a6862daae801e486ce (diff)
downloadexternal_llvm-1c548b645ba91583ef567d264442cb2b71d6fb74.zip
external_llvm-1c548b645ba91583ef567d264442cb2b71d6fb74.tar.gz
external_llvm-1c548b645ba91583ef567d264442cb2b71d6fb74.tar.bz2
Move this test from Codegen/PowerPC to CodeGen/Generic. It fails on ia64,
but that's not the ppc backend's fault. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll')
-rw-r--r--test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll b/test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll
new file mode 100644
index 0000000..5f5aed4
--- /dev/null
+++ b/test/CodeGen/Generic/2006-01-18-InvalidBranchOpcodeAssert.ll
@@ -0,0 +1,16 @@
+; RUN: llvm-as < %s | 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)