mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-25 21:00:00 +00:00
add fdivs e fdivd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30988 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0505be03ad
commit
a605be69c3
@ -276,7 +276,8 @@ def FNEGD : InstARM<(ops DFPRegs:$dst, DFPRegs:$src),
|
||||
|
||||
def FMULS : FPBinOp<"fmuls", fmul>;
|
||||
def FMULD : DFPBinOp<"fmuld", fmul>;
|
||||
|
||||
def FDIVS : FPBinOp<"fdivs", fdiv>;
|
||||
def FDIVD : DFPBinOp<"fdivd", fdiv>;
|
||||
|
||||
// Floating Point Load
|
||||
def FLDS : InstARM<(ops FPRegs:$dst, IntRegs:$addr),
|
||||
|
@ -4,7 +4,9 @@
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep fmuls &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep fmuld &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep fnegs &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep fnegd
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep fnegd &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep fdivs &&
|
||||
; RUN: llvm-as < %s | llc -march=arm | grep fdivd
|
||||
|
||||
float %f1(float %a, float %b) {
|
||||
entry:
|
||||
@ -53,3 +55,15 @@ entry:
|
||||
%tmp1 = sub double -0.000000e+00, %a
|
||||
ret double %tmp1
|
||||
}
|
||||
|
||||
float %f9(float %a, float %b) {
|
||||
entry:
|
||||
%tmp1 = div float %a, %b
|
||||
ret float %tmp1
|
||||
}
|
||||
|
||||
double %f10(double %a, double %b) {
|
||||
entry:
|
||||
%tmp1 = div double %a, %b
|
||||
ret double %tmp1
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user