Ensure these casts are done with the hardware fildll instruction

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22013 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2005-05-14 07:09:25 +00:00
parent 67649dfc32
commit 955c07cab0

View File

@ -0,0 +1,11 @@
; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att | grep fildll | wc -l | grep 2
fastcc double %sint64_to_fp(long %X) {
%R = cast long %X to double
ret double %R
}
fastcc double %uint64_to_fp(ulong %X) {
%R = cast ulong %X to double
ret double %R
}