mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
12 lines
262 B
LLVM
12 lines
262 B
LLVM
|
; 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
|
||
|
}
|