diff options
author | Chris Lattner <sabre@nondot.org> | 2005-07-29 00:40:01 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-07-29 00:40:01 +0000 |
commit | 745d5381195f0b1c05687378ec3d5925e59f0223 (patch) | |
tree | c95eed1cd18baddc794a83a22ab8635d7045c98f /lib/System/TimeValue.cpp | |
parent | 80a3e94653574c69ac805d9684a23a94ed3e4b5d (diff) |
Use a custom expander to compile this:
long %test4(double %X) {
%tmp.1 = cast double %X to long ; <long> [#uses=1]
ret long %tmp.1
}
to this:
_test4:
sub %ESP, 12
fld QWORD PTR [%ESP + 16]
fistp QWORD PTR [%ESP]
mov %EDX, DWORD PTR [%ESP + 4]
mov %EAX, DWORD PTR [%ESP]
add %ESP, 12
ret
instead of this:
_test4:
sub %ESP, 28
fld QWORD PTR [%ESP + 32]
fstp QWORD PTR [%ESP]
call ___fixdfdi
add %ESP, 28
ret
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22549 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/TimeValue.cpp')
0 files changed, 0 insertions, 0 deletions