diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-06-30 12:18:16 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-06-30 12:18:16 +0000 |
commit | bd971ffcc6c601cf5f45b8952001fb0b5c83a082 (patch) | |
tree | 2e1f9009896a488f73a340d66709495671ce20fd /llvm/test | |
parent | d29e74e658a51f3b0485c9dddc6eb2c7e700b710 (diff) | |
download | bcm5719-llvm-bd971ffcc6c601cf5f45b8952001fb0b5c83a082.tar.gz bcm5719-llvm-bd971ffcc6c601cf5f45b8952001fb0b5c83a082.zip |
Fix PR4484.
This was caused by me confounding FP0 and ST(0).
llvm-svn: 74523
Diffstat (limited to 'llvm/test')
-rw-r--r-- | llvm/test/CodeGen/X86/inline-asm-fpstack4.ll | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/inline-asm-fpstack4.ll b/llvm/test/CodeGen/X86/inline-asm-fpstack4.ll new file mode 100644 index 00000000000..24a63537fcf --- /dev/null +++ b/llvm/test/CodeGen/X86/inline-asm-fpstack4.ll @@ -0,0 +1,15 @@ +; RUN: llvm-as < %s | llc -march=x86 > %t +; PR4484 + +declare x86_fp80 @ceil() + +declare void @test(x86_fp80) + +define void @test2(x86_fp80 %a) { +entry: + %0 = call x86_fp80 @ceil() + call void asm sideeffect "fistpl $0", "{st},~{st}"(x86_fp80 %a) + call void @test(x86_fp80 %0) + ret void +} + |