aboutsummaryrefslogtreecommitdiffstats
path: root/test/CodeGen/X86/storetrunc-fp.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGen/X86/storetrunc-fp.ll')
-rw-r--r--test/CodeGen/X86/storetrunc-fp.ll8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/CodeGen/X86/storetrunc-fp.ll b/test/CodeGen/X86/storetrunc-fp.ll
new file mode 100644
index 0000000..655cbd6
--- /dev/null
+++ b/test/CodeGen/X86/storetrunc-fp.ll
@@ -0,0 +1,8 @@
+; RUN: llvm-as < %s | llc -march=x86 | not grep flds
+
+define void @foo(x86_fp80 %a, x86_fp80 %b, float* %fp) {
+ %c = add x86_fp80 %a, %b
+ %d = fptrunc x86_fp80 %c to float
+ store float %d, float* %fp
+ ret void
+}