summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/cvtv2f32.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/cvtv2f32.ll')
-rw-r--r--test/CodeGen/X86/cvtv2f32.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/cvtv2f32.ll b/test/CodeGen/X86/cvtv2f32.ll
new file mode 100644
index 0000000000..5a27a48910
--- /dev/null
+++ b/test/CodeGen/X86/cvtv2f32.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -mtriple=i686-linux-pc -mcpu=corei7 | FileCheck %s
+
+define <2 x float> @bar(<2 x i32> %in) {
+ %r = uitofp <2 x i32> %in to <2 x float>
+ ret <2 x float> %r
+; CHECK: bar
+; CHECK: or
+; CHECK: subpd
+; CHECK: cvtpd2ps
+; CHECK: ret
+}