llvm-6502/test/CodeGen
Chris Lattner b09916bdfb Make X86TargetLowering::LowerSINT_TO_FP return without creating a dead
stack slot and store if the  SINT_TO_FP is actually legal.  This allows
us to compile:

double a(double b) {return (unsigned)b;}

to:

_a:
	cvttsd2siq	%xmm0, %rax
	movl	%eax, %eax
	cvtsi2sdq	%rax, %xmm0
	ret

instead of:

_a:
	subq	$8, %rsp
	cvttsd2siq	%xmm0, %rax
	movl	%eax, %eax
	cvtsi2sdq	%rax, %xmm0
	addq	$8, %rsp
	ret

crazy.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47660 91177308-0d34-0410-b5e6-96231b3b80d8
2008-02-27 05:57:41 +00:00
..
Alpha Remove llvm-upgrade and update tests. 2008-02-19 01:41:04 +00:00
ARM Remove llvm-upgrade. 2008-02-17 20:02:20 +00:00
CBackend Remove llvm-upgrade and update tests. 2008-02-19 01:41:04 +00:00
CellSPU Merge current work back to tree to minimize diffs and drift. Major highlights 2008-02-23 18:41:37 +00:00
Generic Fix PR2096, a regression introduced with my patch last night. This 2008-02-26 17:09:59 +00:00
IA64 Remove llvm-upgrade and update tests. 2008-02-19 01:41:04 +00:00
PowerPC Upgrade testcase. 2008-02-26 23:22:40 +00:00
SPARC Remove llvm-upgrade and update tests. 2008-02-19 01:41:04 +00:00
X86 Make X86TargetLowering::LowerSINT_TO_FP return without creating a dead 2008-02-27 05:57:41 +00:00