summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/X86/bitcast-int-to-vector.ll
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-10-29 20:44:42 +0000
committerDan Gohman <gohman@apple.com>2007-10-29 20:44:42 +0000
commitae95d72a5296961cc4ec04cc87c3753653f6f3b1 (patch)
tree76ffd76ab64979cc27adf0eb8950f994fdb038ff /llvm/test/CodeGen/X86/bitcast-int-to-vector.ll
parent6d845f04142e6195374c79a334a05859d91c252f (diff)
downloadbcm5719-llvm-ae95d72a5296961cc4ec04cc87c3753653f6f3b1.tar.gz
bcm5719-llvm-ae95d72a5296961cc4ec04cc87c3753653f6f3b1.zip
Fix a DAGCombiner abort on a bitcast from a scalar to a vector.
llvm-svn: 43470
Diffstat (limited to 'llvm/test/CodeGen/X86/bitcast-int-to-vector.ll')
-rw-r--r--llvm/test/CodeGen/X86/bitcast-int-to-vector.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/bitcast-int-to-vector.ll b/llvm/test/CodeGen/X86/bitcast-int-to-vector.ll
new file mode 100644
index 00000000000..370bec09848
--- /dev/null
+++ b/llvm/test/CodeGen/X86/bitcast-int-to-vector.ll
@@ -0,0 +1,10 @@
+; RUN: llvm-as < %s | llc -march=x86
+
+define i1 @foo(i64 %a)
+{
+ %t = bitcast i64 %a to <2 x float>
+ %r = extractelement <2 x float> %t, i32 0
+ %s = extractelement <2 x float> %t, i32 1
+ %b = fcmp uno float %r, %s
+ ret i1 %b
+}
OpenPOWER on IntegriCloud