In single float mode, double precision FP arguments are passed in integer
authorAkira Hatanaka <ahatanak@gmail.com>
Mon, 26 Sep 2011 21:37:50 +0000 (21:37 +0000)
committerAkira Hatanaka <ahatanak@gmail.com>
Mon, 26 Sep 2011 21:37:50 +0000 (21:37 +0000)
registers, so there is no need to check here.

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

lib/Target/Mips/MipsISelLowering.cpp

index 77650c7ef072e30270e4c9ea26e413ca4b25d34b..130e359c63228de3849192b63fb661a92289e9e9 100644 (file)
@@ -2267,10 +2267,9 @@ MipsTargetLowering::LowerFormalArguments(SDValue Chain,
         RC = Mips::CPU64RegsRegisterClass;
       else if (RegVT == MVT::f32)
         RC = Mips::FGR32RegisterClass;
-      else if (RegVT == MVT::f64) {
-        if (!Subtarget->isSingleFloat())
-          RC = Mips::AFGR64RegisterClass;
-      } else
+      else if (RegVT == MVT::f64)
+        RC = Mips::AFGR64RegisterClass;
+      else
         llvm_unreachable("RegVT not supported by FormalArguments Lowering");
 
       // Transform the arguments stored on