aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-02-09 23:32:07 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-02-09 23:32:07 +0000
commita0eedac226e79d818ce1124fe500a6e354e3444a (patch)
tree5e96fe38e492957eda4a725507b6d51a322bbbfe /test
parent4ded02f8bd31bad439f78c6d485babe932a18fc5 (diff)
downloadexternal_llvm-a0eedac226e79d818ce1124fe500a6e354e3444a.zip
external_llvm-a0eedac226e79d818ce1124fe500a6e354e3444a.tar.gz
external_llvm-a0eedac226e79d818ce1124fe500a6e354e3444a.tar.bz2
Implement FpSET_ST1_*.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@64186 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/fp-stack-set-st1.ll7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/X86/fp-stack-set-st1.ll b/test/CodeGen/X86/fp-stack-set-st1.ll
new file mode 100644
index 0000000..00a73ae
--- /dev/null
+++ b/test/CodeGen/X86/fp-stack-set-st1.ll
@@ -0,0 +1,7 @@
+; RUN: llvm-as < %s | llc -march=x86 | grep fxch | count 2
+
+define i32 @main() nounwind {
+entry:
+ %asmtmp = tail call { double, double } asm sideeffect "fmul\09%st(1),%st\0A\09fst\09%st(1)\0A\09frndint\0A\09fxch %st(1)\0A\09fsub\09%st(1),%st\0A\09f2xm1\0A\09", "={st},={st(1)},0,1,~{dirflag},~{fpsr},~{flags}"(double 0x4030FEFBD582097D, double 4.620000e+01) nounwind ; <{ double, double }> [#uses=0]
+ unreachable
+}