This target doesn't support the FSIN/FCOS/FSQRT nodes yet
authorChris Lattner <sabre@nondot.org>
Sat, 30 Apr 2005 04:26:06 +0000 (04:26 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 30 Apr 2005 04:26:06 +0000 (04:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21633 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelPattern.cpp
lib/Target/IA64/IA64ISelPattern.cpp
lib/Target/PowerPC/PPCISelPattern.cpp

index e2e863deac0baa990b6950f156b6ab39f2f610f1..31b6fd6d0135c21c0553ed6358f959d0002caf1e 100644 (file)
@@ -84,8 +84,16 @@ namespace {
       setOperationAction(ISD::MEMSET   , MVT::Other, Expand);
       setOperationAction(ISD::MEMCPY   , MVT::Other, Expand);
 
+      // We don't support sin/cos/sqrt
+      setOperationAction(ISD::FSIN , MVT::f64, Expand);
+      setOperationAction(ISD::FCOS , MVT::f64, Expand);
+      setOperationAction(ISD::FSQRT, MVT::f64, Expand);
+      setOperationAction(ISD::FSIN , MVT::f32, Expand);
+      setOperationAction(ISD::FCOS , MVT::f32, Expand);
+      setOperationAction(ISD::FSQRT, MVT::f32, Expand);
+
       //Doesn't work yet
-      setOperationAction(ISD::SETCC    , MVT::f32,   Promote);
+      setOperationAction(ISD::SETCC, MVT::f32,   Promote);
 
       computeRegisterProperties();
 
index c3675a0da0a59987740b0930101e111bd7f70aa0..1fe9026ed0fa4ffa3b12a0c58538429e97ce066e 100644 (file)
@@ -81,6 +81,14 @@ namespace {
       setOperationAction(ISD::MEMSET           , MVT::Other, Expand);
       setOperationAction(ISD::MEMCPY           , MVT::Other, Expand);
 
+      // We don't support sin/cos/sqrt
+      setOperationAction(ISD::FSIN , MVT::f64, Expand);
+      setOperationAction(ISD::FCOS , MVT::f64, Expand);
+      setOperationAction(ISD::FSQRT, MVT::f64, Expand);
+      setOperationAction(ISD::FSIN , MVT::f32, Expand);
+      setOperationAction(ISD::FCOS , MVT::f32, Expand);
+      setOperationAction(ISD::FSQRT, MVT::f32, Expand);
+
       computeRegisterProperties();
 
       addLegalFPImmediate(+0.0);
index 40a2610f2cd888a83b19cd7b02da9bb36af65a25..a5732f05767ab639db58eb9ff6650ae1f601f7a5 100644 (file)
@@ -61,6 +61,14 @@ namespace {
       setOperationAction(ISD::SREM, MVT::i32, Expand);
       setOperationAction(ISD::UREM, MVT::i32, Expand);
 
+      // We don't support sin/cos/sqrt
+      setOperationAction(ISD::FSIN , MVT::f64, Expand);
+      setOperationAction(ISD::FCOS , MVT::f64, Expand);
+      setOperationAction(ISD::FSQRT, MVT::f64, Expand);
+      setOperationAction(ISD::FSIN , MVT::f32, Expand);
+      setOperationAction(ISD::FCOS , MVT::f32, Expand);
+      setOperationAction(ISD::FSQRT, MVT::f32, Expand);
+
       setSetCCResultContents(ZeroOrOneSetCCResult);
       addLegalFPImmediate(+0.0); // Necessary for FSEL
       addLegalFPImmediate(-0.0); //