mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-22 04:22:57 +02: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
|
||
|
}
|