diff options
Diffstat (limited to 'test/CodeGen/X86/storetrunc-fp.ll')
-rw-r--r-- | test/CodeGen/X86/storetrunc-fp.ll | 8 |
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 000000000000..655cbd68b37a --- /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 +} |