summaryrefslogtreecommitdiff
path: root/test/CodeGen/X86/vec_uint_to_fp.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/vec_uint_to_fp.ll')
-rw-r--r--test/CodeGen/X86/vec_uint_to_fp.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/CodeGen/X86/vec_uint_to_fp.ll b/test/CodeGen/X86/vec_uint_to_fp.ll
new file mode 100644
index 0000000000..39e7d715c5
--- /dev/null
+++ b/test/CodeGen/X86/vec_uint_to_fp.ll
@@ -0,0 +1,11 @@
+; RUN: llc < %s -march=x86 -mcpu=sandybridge | FileCheck %s
+
+; Test that we are not lowering uinttofp to scalars
+define <4 x float> @test1(<4 x i32> %A) nounwind {
+; CHECK: test1:
+; CHECK-NOT: cvtsd2ss
+; CHECK: ret
+ %C = uitofp <4 x i32> %A to <4 x float>
+ ret <4 x float> %C
+}
+