diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-09 08:49:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-09 08:49:15 +0000 |
commit | 02b6d25a2702d8857b82d333f290550e3c6ec4dc (patch) | |
tree | d2ee25b0a7ab94c316e6d7360cf46e43db51a9d1 /test/CodeGen/X86/inline-asm-fpstack.ll | |
parent | 5c927500c823aecafb46881626a5db7822ad019a (diff) |
Add ScheduleDAG support for copytoreg where the src/dst register are
in different register classes, e.g. copy of ST(0) to RFP*. This gets
some really trivial inline asm working that plops things on the top of
stack (PR879)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48105 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/X86/inline-asm-fpstack.ll')
-rw-r--r-- | test/CodeGen/X86/inline-asm-fpstack.ll | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/CodeGen/X86/inline-asm-fpstack.ll b/test/CodeGen/X86/inline-asm-fpstack.ll new file mode 100644 index 0000000000..e4a76b4d9c --- /dev/null +++ b/test/CodeGen/X86/inline-asm-fpstack.ll @@ -0,0 +1,13 @@ +; RUN: llvm-as < %s | llc -march=x86 + +define x86_fp80 @test1() { + %tmp85 = call x86_fp80 asm sideeffect "fld0", "={st(0)}"() + ret x86_fp80 %tmp85 +} + +define double @test2() { + %tmp85 = call double asm sideeffect "fld0", "={st(0)}"() + ret double %tmp85 +} + + |