mirror of
https://github.com/RPCSX/llvm.git
synced 2025-03-05 19:38:13 +00:00

initial support for returning 64bit floating point numbers git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30692 91177308-0d34-0410-b5e6-96231b3b80d8
19 lines
537 B
LLVM
19 lines
537 B
LLVM
; RUN: llvm-as < %s | llc -march=arm &&
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fmsr | wc -l | grep 2 &&
|
|
; RUN: llvm-as < %s | llc -march=arm | grep fsitos &&
|
|
; 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
|
|
|
|
float %f(int %a) {
|
|
entry:
|
|
%tmp = cast int %a to float ; <float> [#uses=1]
|
|
ret float %tmp
|
|
}
|
|
|
|
double %g(int %a) {
|
|
entry:
|
|
%tmp = cast int %a to double ; <double> [#uses=1]
|
|
ret double %tmp
|
|
}
|