diff options
author | Chris Lattner <sabre@nondot.org> | 2008-03-21 06:38:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-03-21 06:38:26 +0000 |
commit | 24e0a546b40d67dd3662273eb4aef30c230a15ef (patch) | |
tree | a13ccd51a3a64ca1fc6a6703e714c91cfa9778f1 /lib/Target/X86/X86InstrFPStack.td | |
parent | ae60ddc22ad243ea9ae2f4353e143190063f2322 (diff) | |
download | llvm-24e0a546b40d67dd3662273eb4aef30c230a15ef.tar.gz llvm-24e0a546b40d67dd3662273eb4aef30c230a15ef.tar.bz2 llvm-24e0a546b40d67dd3662273eb4aef30c230a15ef.tar.xz |
Add support for calls that return two FP values in
ST(0)/ST(1).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48634 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86InstrFPStack.td')
-rw-r--r-- | lib/Target/X86/X86InstrFPStack.td | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/Target/X86/X86InstrFPStack.td b/lib/Target/X86/X86InstrFPStack.td index d37ecf8089..be9129471c 100644 --- a/lib/Target/X86/X86InstrFPStack.td +++ b/lib/Target/X86/X86InstrFPStack.td @@ -136,6 +136,15 @@ def FpGET_ST0_32 : FpI_<(outs RFP32:$dst), (ins), SpecialFP, []>; // FPR = ST(0) def FpGET_ST0_64 : FpI_<(outs RFP64:$dst), (ins), SpecialFP, []>; // FPR = ST(0) def FpGET_ST0_80 : FpI_<(outs RFP80:$dst), (ins), SpecialFP, []>; // FPR = ST(0) +// FpGET_ST1* should only be issued *after* an FpGET_ST0* has been issued when +// there are two values live out on the stack from a call or inlineasm. This +// magic is handled by the stackifier. It is not valid to emit FpGET_ST1* and +// then FpGET_ST0*. In addition, it is invalid for any FP-using operations to +// occur between them. +def FpGET_ST1_32 : FpI_<(outs RFP32:$dst), (ins), SpecialFP, []>; // FPR = ST(1) +def FpGET_ST1_64 : FpI_<(outs RFP64:$dst), (ins), SpecialFP, []>; // FPR = ST(1) +def FpGET_ST1_80 : FpI_<(outs RFP80:$dst), (ins), SpecialFP, []>; // FPR = ST(1) + def FpGET_ST0_ST1 : FpI_<(outs RFP80:$dst1, RFP80:$dst2), (ins), SpecialFP, []>; // FPR = ST(0), FPR = ST(1) |