summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2009-06-21 12:02:51 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2009-06-21 12:02:51 +0000
commit1c3329f7072356c8da84534ed0a7033b10f73062 (patch)
treea87620155d085b90fd5ccc4ed02339d23b7c3c35 /test
parent4577bbaa12be6d935163ff309978de221e483375 (diff)
downloadllvm-1c3329f7072356c8da84534ed0a7033b10f73062.tar.gz
llvm-1c3329f7072356c8da84534ed0a7033b10f73062.tar.bz2
llvm-1c3329f7072356c8da84534ed0a7033b10f73062.tar.xz
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')
-rw-r--r--test/CodeGen/X86/inline-asm-fpstack2.ll10
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
+}