diff options
| author | Nate Begeman <natebegeman@mac.com> | 2005-08-14 04:36:51 +0000 |
|---|---|---|
| committer | Nate Begeman <natebegeman@mac.com> | 2005-08-14 04:36:51 +0000 |
| commit | 4d959f66270b1836bffd700bb78193777dfa8348 (patch) | |
| tree | 4010750d255fff581d280b5fc4f6942f2431377e /llvm/docs/HistoricalNotes/2001-02-13-Reference-MemoryResponse.txt | |
| parent | 36853ee1fd87d1b1987ce0839ba75b3789f470e3 (diff) | |
| download | bcm5719-llvm-4d959f66270b1836bffd700bb78193777dfa8348.tar.gz bcm5719-llvm-4d959f66270b1836bffd700bb78193777dfa8348.zip | |
Fix FP_TO_UINT with Scalar SSE2 now that the legalizer can handle it. We
now generate the relatively good code sequences:
unsigned short foo(float a) { return a; }
_foo:
movss 4(%esp), %xmm0
cvttss2si %xmm0, %eax
movzwl %ax, %eax
ret
and
unsigned bar(float a) { return a; }
_bar:
movss .CPI_bar_0, %xmm0
movss 4(%esp), %xmm1
movapd %xmm1, %xmm2
subss %xmm0, %xmm2
cvttss2si %xmm2, %eax
xorl $-2147483648, %eax
cvttss2si %xmm1, %ecx
ucomiss %xmm0, %xmm1
cmovb %ecx, %eax
ret
llvm-svn: 22786
Diffstat (limited to 'llvm/docs/HistoricalNotes/2001-02-13-Reference-MemoryResponse.txt')
0 files changed, 0 insertions, 0 deletions

