mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-28 14:10:41 +00:00
Expand FREM.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153671 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c6a96ff6ae
commit
21ecc2f4ed
@ -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);
|
||||
|
13
test/CodeGen/Mips/frem.ll
Normal file
13
test/CodeGen/Mips/frem.ll
Normal 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user