Expand FREM.

llvm-svn: 153671
This commit is contained in:
Akira Hatanaka 2012-03-29 18:43:11 +00:00
parent abf320d40e
commit 0603ad8c65
2 changed files with 15 additions and 0 deletions

View File

@ -208,6 +208,8 @@ MipsTargetLowering(MipsTargetMachine &TM)
setOperationAction(ISD::FEXP, MVT::f32, Expand);
setOperationAction(ISD::FMA, MVT::f32, Expand);
setOperationAction(ISD::FMA, MVT::f64, Expand);
setOperationAction(ISD::FREM, MVT::f32, Expand);
setOperationAction(ISD::FREM, MVT::f64, Expand);
setOperationAction(ISD::EXCEPTIONADDR, MVT::i32, Expand);
setOperationAction(ISD::EXCEPTIONADDR, MVT::i64, Expand);

View File

@ -0,0 +1,13 @@
; RUN: llc < %s -march=mipsel
define float @fmods(float %x, float %y) {
entry:
%r = frem float %x, %y
ret float %r
}
define double @fmodd(double %x, double %y) {
entry:
%r = frem double %x, %y
ret double %r
}