Enable support for returning two long-double values in ST(0)/ST(1).
authorChris Lattner <sabre@nondot.org>
Fri, 21 Mar 2008 05:57:20 +0000 (05:57 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 21 Mar 2008 05:57:20 +0000 (05:57 +0000)
commit0353526ed11fc308cf34465e4d14a6cadf8cfb62
treedf1885649fd0d9969d76a4f24276cf0500334041
parent41dc0fcb68e7ea5d7c043af2a6303adfdad19c72
Enable support for returning two long-double values in ST(0)/ST(1).
This allows us to compile fp-stack-2results.ll into:

_test:
fldz
fld1
ret

which returns 1 in ST(0) and 0 in ST(1).  This is needed for x86-64
_Complex long double.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48632 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86CallingConv.td
lib/Target/X86/X86FloatingPoint.cpp
test/CodeGen/X86/fp-stack-2results.ll [new file with mode: 0644]