mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 20:34:38 +00:00
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:
parent
67649dfc32
commit
955c07cab0
11
test/CodeGen/X86/fildll.ll
Normal file
11
test/CodeGen/X86/fildll.ll
Normal 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
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user