OSDN Git Service

Make sure we use the correct register class here since we'll need to
authorEric Christopher <echristo@apple.com>
Thu, 30 Jun 2011 01:05:46 +0000 (01:05 +0000)
committerEric Christopher <echristo@apple.com>
Thu, 30 Jun 2011 01:05:46 +0000 (01:05 +0000)
care about spill values.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134122 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Alpha/AlphaISelLowering.cpp

index 54433a4..daf9555 100644 (file)
@@ -835,7 +835,8 @@ getRegForInlineAsmConstraint(const std::string &Constraint, EVT VT) const
     case 'r':
       return std::make_pair(0U, Alpha::GPRCRegisterClass);
     case 'f':
-      return std::make_pair(0U, Alpha::F4RCRegisterClass);
+      return VT == MVT::f64 ? std::make_pair(0U, Alpha::F8RCRegisterClass) :
+       std::make_pair(0U, Alpha::F4RCRegisterClass);
     }
   }
   return TargetLowering::getRegForInlineAsmConstraint(Constraint, VT);