aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/uint_to_fp-2.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/uint_to_fp-2.ll')
-rw-r--r--test/CodeGen/X86/uint_to_fp-2.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/uint_to_fp-2.ll b/test/CodeGen/X86/uint_to_fp-2.ll
new file mode 100644
index 0000000..da5105d
--- /dev/null
+++ b/test/CodeGen/X86/uint_to_fp-2.ll
@@ -0,0 +1,8 @@
+; RUN: llc < %s -march=x86 -mattr=+sse2 | grep movsd | count 1
+; rdar://6504833
+
+define float @f(i32 %x) nounwind readnone {
+entry:
+ %0 = uitofp i32 %x to float
+ ret float %0
+}