mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 00:37:09 +00:00
16 lines
310 B
LLVM
16 lines
310 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 %f(double %x) {
|
||
|
entry:
|
||
|
%tmp1 = cast double %x to float
|
||
|
ret float %tmp1
|
||
|
}
|
||
|
|
||
|
double %g(float %x) {
|
||
|
entry:
|
||
|
%tmp1 = cast float %x to double
|
||
|
ret double %tmp1
|
||
|
}
|