Chris Lattner cda8875433 when we know the signbit of an input to uint_to_fp is zero,
change it to sint_to_fp on targets where that is cheaper (and
visaversa of course).  This allows us to compile uint_to_fp to:

_test:
	movl	4(%esp), %eax
	shrl	$23, %eax
	cvtsi2ss	%eax, %xmm0
	movl	8(%esp), %eax
	movss	%xmm0, (%eax)
	ret

instead of:

	.align	3
LCPI1_0:					##  double
	.long	0	## double least significant word 4.5036e+15
	.long	1127219200	## double most significant word 4.5036e+15
	.text
	.align	4,0x90
	.globl	_test
_test:
	subl	$12, %esp
	movl	16(%esp), %eax
	shrl	$23, %eax
	movl	%eax, (%esp)
	movl	$1127219200, 4(%esp)
	movsd	(%esp), %xmm0
	subsd	LCPI1_0, %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movl	20(%esp), %eax
	movss	%xmm0, (%eax)
	addl	$12, %esp
	ret




git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52747 91177308-0d34-0410-b5e6-96231b3b80d8
2008-06-26 00:16:49 +00:00
..
2008-04-19 22:29:10 +00:00
2008-04-19 22:29:10 +00:00
2008-04-19 22:29:10 +00:00
2008-04-19 22:29:10 +00:00
2008-04-19 22:29:10 +00:00
2008-03-25 04:26:08 +00:00
2008-03-25 04:26:08 +00:00
2008-05-07 22:59:08 +00:00
2008-03-25 04:26:08 +00:00
2008-03-25 04:26:08 +00:00
2008-03-25 04:26:08 +00:00
2008-03-25 04:26:08 +00:00
2008-03-25 04:26:08 +00:00
2008-03-25 04:26:08 +00:00
2007-10-14 05:57:21 +00:00
2007-07-19 23:53:29 +00:00
2007-07-19 23:13:04 +00:00
2007-07-19 23:13:04 +00:00
2007-08-13 18:42:37 +00:00
2007-10-12 09:10:27 +00:00
2007-10-13 03:10:54 +00:00
2007-10-13 03:10:54 +00:00
2007-10-15 16:35:13 +00:00
2007-10-16 19:29:47 +00:00
2007-10-19 22:05:00 +00:00
2007-11-02 17:36:58 +00:00
2008-03-13 08:05:02 +00:00
2008-04-28 23:31:41 +00:00
2008-02-14 01:32:53 +00:00
2008-05-22 04:45:22 +00:00
2008-02-21 07:42:26 +00:00
2008-03-02 18:05:14 +00:00
2008-03-04 08:01:56 +00:00
2008-04-19 22:29:10 +00:00
2008-06-12 21:23:38 +00:00
2008-02-12 19:11:29 +00:00
2008-04-19 22:29:10 +00:00
2008-04-19 22:29:10 +00:00
2008-04-19 22:29:10 +00:00
2008-04-03 21:25:03 +00:00
2007-09-25 17:50:55 +00:00
2008-02-21 07:42:26 +00:00
2008-02-21 07:42:26 +00:00
2007-10-29 22:07:18 +00:00
2008-04-25 20:13:47 +00:00
2008-04-25 20:13:47 +00:00
2008-02-23 02:57:25 +00:00
2008-01-24 06:35:44 +00:00
2008-03-09 06:57:21 +00:00
2007-11-24 05:39:29 +00:00
2008-02-21 07:42:26 +00:00
2007-12-29 08:19:39 +00:00
2008-04-19 22:29:10 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-03-25 04:26:08 +00:00
2008-01-17 19:59:44 +00:00
2008-02-12 19:11:29 +00:00
2008-06-19 01:50:24 +00:00
2007-10-12 07:49:48 +00:00
2008-01-15 22:22:02 +00:00
2008-05-07 22:59:08 +00:00
2008-05-29 07:09:24 +00:00
2008-04-25 21:47:35 +00:00
2008-05-24 00:10:02 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-07 22:59:08 +00:00
2008-05-09 19:56:32 +00:00
2008-05-22 18:56:56 +00:00
2008-05-07 22:59:08 +00:00
2008-05-10 02:22:25 +00:00
2008-05-07 22:59:08 +00:00
2008-02-21 07:42:26 +00:00
2008-03-19 00:52:20 +00:00
2007-07-19 23:13:04 +00:00