Don't generate operations that aren't yet supported
authorNate Begeman <natebegeman@mac.com>
Fri, 21 Oct 2005 01:52:45 +0000 (01:52 +0000)
committerNate Begeman <natebegeman@mac.com>
Fri, 21 Oct 2005 01:52:45 +0000 (01:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23858 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/IA64/IA64ISelPattern.cpp

index faeaaf2e375efaa12bccb5f4b43b499979d69e0d..b6a0c159060b912ac67d1c35f2c3f6a8c9507211 100644 (file)
@@ -84,7 +84,7 @@ namespace {
       
       setOperationAction(ISD::SINT_TO_FP       , MVT::i1   , Promote);
       setOperationAction(ISD::UINT_TO_FP       , MVT::i1   , Promote);
-
+      
       // We don't support sin/cos/sqrt
       setOperationAction(ISD::FSIN , MVT::f64, Expand);
       setOperationAction(ISD::FCOS , MVT::f64, Expand);
@@ -96,6 +96,9 @@ namespace {
       //IA64 has these, but they are not implemented
       setOperationAction(ISD::CTTZ , MVT::i64  , Expand);
       setOperationAction(ISD::CTLZ , MVT::i64  , Expand);
+      // FIXME: implement mulhs (xma.h) and mulhu (xma.hu)
+      setOperationAction(ISD::MULHS , MVT::i64  , Expand);
+      setOperationAction(ISD::MULHU , MVT::i64  , Expand);
 
       computeRegisterProperties();