mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-24 08:33:39 +00:00
493a7fc5c3
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30862 91177308-0d34-0410-b5e6-96231b3b80d8
40 lines
670 B
LLVM
40 lines
670 B
LLVM
; RUN: llvm-as < %s | llc -march=arm &&
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fcvtds &&
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd
|
|
|
|
float %f1(double %x) {
|
|
entry:
|
|
%tmp1 = cast double %x to float
|
|
ret float %tmp1
|
|
}
|
|
|
|
double %f2(float %x) {
|
|
entry:
|
|
%tmp1 = cast float %x to double
|
|
ret double %tmp1
|
|
}
|
|
|
|
int %f3(float %x) {
|
|
entry:
|
|
%tmp = cast float %x to int
|
|
ret int %tmp
|
|
}
|
|
|
|
int %f4(double %x) {
|
|
entry:
|
|
%tmp = cast double %x to int
|
|
ret int %tmp
|
|
}
|
|
|
|
uint %f5(float %x) {
|
|
entry:
|
|
%tmp = cast float %x to uint
|
|
ret uint %tmp
|
|
}
|
|
|
|
uint %f6(double %x) {
|
|
entry:
|
|
%tmp = cast double %x to uint
|
|
ret uint %tmp
|
|
}
|