Realize that we don't support fmod directly, fixing CodeGen/Generic/print-arith-fp.ll
authorChris Lattner <sabre@nondot.org>
Fri, 13 May 2005 16:20:22 +0000 (16:20 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 13 May 2005 16:20:22 +0000 (16:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21939 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPC64ISelPattern.cpp
lib/Target/PowerPC/PPCISelPattern.cpp

index a91223d46945c4f88d1f632479fba49f3d9fe0cd..cfc8a5496d333c55b821f8846c78fda1892eb20f 100644 (file)
@@ -55,13 +55,15 @@ namespace {
       setOperationAction(ISD::MEMSET, MVT::Other, Expand);
       setOperationAction(ISD::MEMCPY, MVT::Other, Expand);
 
-      // We don't support sin/cos/sqrt
+      // We don't support sin/cos/sqrt/fmod
       setOperationAction(ISD::FSIN , MVT::f64, Expand);
       setOperationAction(ISD::FCOS , MVT::f64, Expand);
       setOperationAction(ISD::FSQRT, MVT::f64, Expand);
+      setOperationAction(ISD::SREM , MVT::f64, Expand);
       setOperationAction(ISD::FSIN , MVT::f32, Expand);
       setOperationAction(ISD::FCOS , MVT::f32, Expand);
       setOperationAction(ISD::FSQRT, MVT::f32, Expand);
+      setOperationAction(ISD::SREM , MVT::f32, Expand);
 
       // PPC 64 has i16 and i32 but no i8 (or i1) SEXTLOAD
       setOperationAction(ISD::SEXTLOAD, MVT::i1, Expand);
index 2551771999cba7af4cc0ae4bb85b323891b4d122..8a0f27b108c16958c0478cdebc1a9ad34037b143 100644 (file)
@@ -64,13 +64,15 @@ namespace {
       setOperationAction(ISD::SREM, MVT::i32, Expand);
       setOperationAction(ISD::UREM, MVT::i32, Expand);
 
-      // We don't support sin/cos/sqrt
+      // We don't support sin/cos/sqrt/fmod
       setOperationAction(ISD::FSIN , MVT::f64, Expand);
       setOperationAction(ISD::FCOS , MVT::f64, Expand);
       setOperationAction(ISD::FSQRT, MVT::f64, Expand);
+      setOperationAction(ISD::SREM , MVT::f64, Expand);
       setOperationAction(ISD::FSIN , MVT::f32, Expand);
       setOperationAction(ISD::FCOS , MVT::f32, Expand);
       setOperationAction(ISD::FSQRT, MVT::f32, Expand);
+      setOperationAction(ISD::SREM , MVT::f32, Expand);
 
       //PowerPC does not have CTPOP or CTTZ
       setOperationAction(ISD::CTPOP, MVT::i32  , Expand);