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:
Rafael Espindola 2006-10-16 21:50:04 +00:00
parent 0505be03ad
commit a605be69c3
2 changed files with 17 additions and 2 deletions

View File

@ -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),

View File

@ -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
}