summaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/bitcast-int-to-vector.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/bitcast-int-to-vector.ll')
-rw-r--r--test/CodeGen/X86/bitcast-int-to-vector.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/bitcast-int-to-vector.ll b/test/CodeGen/X86/bitcast-int-to-vector.ll
new file mode 100644
index 0000000..370bec0
--- /dev/null
+++ b/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