2008-02-21 15:42:26 +08:00
|
|
|
; RUN: llvm-as < %s | llc -march=x86 -x86-asm-syntax=att -mattr=-sse2 | grep fildll | count 2
|
2005-05-14 15:09:25 +08:00
|
|
|
|
2008-02-21 15:42:26 +08:00
|
|
|
define fastcc double @sint64_to_fp(i64 %X) {
|
|
|
|
%R = sitofp i64 %X to double ; <double> [#uses=1]
|
|
|
|
ret double %R
|
2005-05-14 15:09:25 +08:00
|
|
|
}
|
|
|
|
|
2008-02-21 15:42:26 +08:00
|
|
|
define fastcc double @uint64_to_fp(i64 %X) {
|
|
|
|
%R = uitofp i64 %X to double ; <double> [#uses=1]
|
|
|
|
ret double %R
|
2005-05-14 15:09:25 +08:00
|
|
|
}
|
2008-02-21 15:42:26 +08:00
|
|
|
|