summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen
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
commit6ead59f8ed787d98c623222e8feb5cbc6a80dc1e (patch)
treea8750cd2bbe35cc8d6f6279b6c8e4960dd03c1f1 /llvm/test/CodeGen
parentd48584822928d8b90d7f9002af559c24049f5c74 (diff)
downloadbcm5719-llvm-6ead59f8ed787d98c623222e8feb5cbc6a80dc1e.tar.gz
bcm5719-llvm-6ead59f8ed787d98c623222e8feb5cbc6a80dc1e.zip
Fix PR4185.
Handle FpSET_ST0_80 being used when ST0 is still alive. llvm-svn: 73850
Diffstat (limited to 'llvm/test/CodeGen')
-rw-r--r--llvm/test/CodeGen/X86/inline-asm-fpstack2.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/CodeGen/X86/inline-asm-fpstack2.ll b/llvm/test/CodeGen/X86/inline-asm-fpstack2.ll
new file mode 100644
index 00000000000..968561826b5
--- /dev/null
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud