2006-10-09 17:50:29 +00:00
|
|
|
; 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
|
|
|
|
|
2006-10-10 18:55:14 +00:00
|
|
|
float %f1(double %x) {
|
2006-10-09 17:50:29 +00:00
|
|
|
entry:
|
|
|
|
%tmp1 = cast double %x to float
|
|
|
|
ret float %tmp1
|
|
|
|
}
|
|
|
|
|
2006-10-10 18:55:14 +00:00
|
|
|
double %f2(float %x) {
|
2006-10-09 17:50:29 +00:00
|
|
|
entry:
|
|
|
|
%tmp1 = cast float %x to double
|
|
|
|
ret double %tmp1
|
|
|
|
}
|
2006-10-10 18:55:14 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|