diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2009-06-21 12:02:51 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2009-06-21 12:02:51 +0000 |
commit | 1c3329f7072356c8da84534ed0a7033b10f73062 (patch) | |
tree | a87620155d085b90fd5ccc4ed02339d23b7c3c35 /test/CodeGen/X86/inline-asm-fpstack2.ll | |
parent | 4577bbaa12be6d935163ff309978de221e483375 (diff) |
Fix PR4185.
Handle FpSET_ST0_80 being used when ST0 is still alive.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73850 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/inline-asm-fpstack2.ll')
-rw-r--r-- | test/CodeGen/X86/inline-asm-fpstack2.ll | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/inline-asm-fpstack2.ll b/test/CodeGen/X86/inline-asm-fpstack2.ll new file mode 100644 index 0000000000..968561826b --- /dev/null +++ b/test/CodeGen/X86/inline-asm-fpstack2.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llc -march=x86 > %t +; RUN: grep {fld %%st(0)} %t +; PR4185 + +define void @test() { +return: + call void asm sideeffect "fistpl $0", "{st}"(double 1.000000e+06) + call void asm sideeffect "fistpl $0", "{st}"(double 1.000000e+06) + ret void +} |