2006-10-09 17:50:29 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=arm &&
|
2006-10-17 20:20:07 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fcvtsd &&
|
2006-10-09 17:50:29 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fcvtds &&
|
2006-10-17 20:20:07 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep ftosis &&
|
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep ftouis &&
|
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep ftosid &&
|
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep ftouid &&
|
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fsitos &&
|
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fsitod &&
|
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fuitos &&
|
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fuitod
|
2006-10-09 17:50:29 +00:00
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2006-10-17 20:20:07 +00:00
|
|
|
uint %f4(float %x) {
|
2006-10-10 18:55:14 +00:00
|
|
|
entry:
|
2006-10-17 20:20:07 +00:00
|
|
|
%tmp = cast float %x to uint
|
|
|
|
ret uint %tmp
|
2006-10-10 18:55:14 +00:00
|
|
|
}
|
2006-10-10 20:38:57 +00:00
|
|
|
|
2006-10-17 20:20:07 +00:00
|
|
|
int %f5(double %x) {
|
2006-10-10 20:38:57 +00:00
|
|
|
entry:
|
2006-10-17 20:20:07 +00:00
|
|
|
%tmp = cast double %x to int
|
|
|
|
ret int %tmp
|
2006-10-10 20:38:57 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
uint %f6(double %x) {
|
|
|
|
entry:
|
|
|
|
%tmp = cast double %x to uint
|
|
|
|
ret uint %tmp
|
|
|
|
}
|
2006-10-17 20:20:07 +00:00
|
|
|
|
|
|
|
float %f7(int %a) {
|
|
|
|
entry:
|
|
|
|
%tmp = cast int %a to float
|
|
|
|
ret float %tmp
|
|
|
|
}
|
|
|
|
|
|
|
|
double %f8(int %a) {
|
|
|
|
entry:
|
|
|
|
%tmp = cast int %a to double
|
|
|
|
ret double %tmp
|
|
|
|
}
|
|
|
|
|
|
|
|
float %f9(uint %a) {
|
|
|
|
entry:
|
|
|
|
%tmp = cast uint %a to float
|
|
|
|
ret float %tmp
|
|
|
|
}
|
|
|
|
|
|
|
|
double %f10(uint %a) {
|
|
|
|
entry:
|
|
|
|
%tmp = cast uint %a to double
|
|
|
|
ret double %tmp
|
|
|
|
}
|