[llvm-commits] [llvm] r153671 - in /llvm/trunk: lib/Target/Mips/MipsISelLowering.cpp test/CodeGen/Mips/frem.ll
Akira Hatanaka
ahatanaka at mips.com
Thu Mar 29 11:43:11 PDT 2012
Author: ahatanak
Date: Thu Mar 29 13:43:11 2012
New Revision: 153671
URL: http://llvm.org/viewvc/llvm-project?rev=153671&view=rev
Log:
Expand FREM.
Added:
llvm/trunk/test/CodeGen/Mips/frem.ll
Modified:
llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
Modified: llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp?rev=153671&r1=153670&r2=153671&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsISelLowering.cpp Thu Mar 29 13:43:11 2012
@@ -208,6 +208,8 @@
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);
Added: llvm/trunk/test/CodeGen/Mips/frem.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/Mips/frem.ll?rev=153671&view=auto
==============================================================================
--- llvm/trunk/test/CodeGen/Mips/frem.ll (added)
+++ llvm/trunk/test/CodeGen/Mips/frem.ll Thu Mar 29 13:43:11 2012
@@ -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
+}
More information about the llvm-commits
mailing list