Fix CodeGen/Generic/print-arith-fp.ll on sparc (PR1551)
authorChris Lattner <sabre@nondot.org>
Fri, 13 Jul 2007 16:24:10 +0000 (16:24 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 Jul 2007 16:24:10 +0000 (16:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@39813 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Sparc/SparcISelDAGToDAG.cpp

index 6fb97df1cec83e5c68a0d9e80b85d65ee75087f4..8c8b3f8d3ac533c7400be0af4112039f3fcc794e 100644 (file)
@@ -191,8 +191,10 @@ SparcTargetLowering::SparcTargetLowering(TargetMachine &TM)
   
   setOperationAction(ISD::FSIN , MVT::f64, Expand);
   setOperationAction(ISD::FCOS , MVT::f64, Expand);
+  setOperationAction(ISD::FREM , MVT::f64, Expand);
   setOperationAction(ISD::FSIN , MVT::f32, Expand);
   setOperationAction(ISD::FCOS , MVT::f32, Expand);
+  setOperationAction(ISD::FREM , MVT::f32, Expand);
   setOperationAction(ISD::CTPOP, MVT::i32, Expand);
   setOperationAction(ISD::CTTZ , MVT::i32, Expand);
   setOperationAction(ISD::CTLZ , MVT::i32, Expand);