2006-09-29 21:20:16 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=arm &&
|
2006-10-02 19:30:56 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fmsr | wc -l | grep 2 &&
|
2006-09-29 21:20:16 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fsitos &&
|
2006-10-02 19:30:56 +00:00
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fmrs &&
|
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fsitod &&
|
|
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fmrrd
|
2006-09-29 21:20:16 +00:00
|
|
|
|
|
|
|
float %f(int %a) {
|
|
|
|
entry:
|
|
|
|
%tmp = cast int %a to float ; <float> [#uses=1]
|
|
|
|
ret float %tmp
|
|
|
|
}
|
2006-10-02 19:30:56 +00:00
|
|
|
|
|
|
|
double %g(int %a) {
|
|
|
|
entry:
|
|
|
|
%tmp = cast int %a to double ; <double> [#uses=1]
|
|
|
|
ret double %tmp
|
|
|
|
}
|