Don't hand ISD::CALL nodes off to SelectExprFP. This fixes siod.
authorNate Begeman <natebegeman@mac.com>
Sun, 10 Apr 2005 01:14:13 +0000 (01:14 +0000)
committerNate Begeman <natebegeman@mac.com>
Sun, 10 Apr 2005 01:14:13 +0000 (01:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21197 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelPattern.cpp

index 02ad4e4ad4b724e0b6cbf17eda82c98fe91344e9..5496ac4ddbce6f31e28b81bf635c6b52d4fe6338 100644 (file)
@@ -1388,7 +1388,8 @@ unsigned ISel::SelectExpr(SDOperand N) {
     DestType = N.getValue(0).getValueType();
     
   if (DestType == MVT::f64 || DestType == MVT::f32)
-    if (ISD::LOAD != opcode && ISD::EXTLOAD != opcode && ISD::UNDEF != opcode)
+    if (ISD::LOAD != opcode && ISD::EXTLOAD != opcode && 
+        ISD::UNDEF != opcode && ISD::CALL != opcode)
       return SelectExprFP(N, Result);
 
   switch (opcode) {