[llvm] r337373 - Revert "[Sparc] Use the IntPair reg class for r constraints with value type f64"

Daniel Cederman via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 18 03:05:30 PDT 2018


Author: dcederman
Date: Wed Jul 18 03:05:30 2018
New Revision: 337373

URL: http://llvm.org/viewvc/llvm-project?rev=337373&view=rev
Log:
Revert "[Sparc] Use the IntPair reg class for r constraints with value type f64"

This reverts commit 55222c9183c6e07f53a54c4061677734f54feac1.

I missed that this patch has a dependency on https://reviews.llvm.org/D49219
that has not been approved yet.

Modified:
    llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp
    llvm/trunk/test/CodeGen/SPARC/inlineasm.ll

Modified: llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp?rev=337373&r1=337372&r2=337373&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp Wed Jul 18 03:05:30 2018
@@ -3489,7 +3489,7 @@ SparcTargetLowering::getRegForInlineAsmC
   if (Constraint.size() == 1) {
     switch (Constraint[0]) {
     case 'r':
-      if (VT == MVT::v2i32 || VT == MVT::f64)
+      if (VT == MVT::v2i32)
         return std::make_pair(0U, &SP::IntPairRegClass);
       else
         return std::make_pair(0U, &SP::IntRegsRegClass);

Modified: llvm/trunk/test/CodeGen/SPARC/inlineasm.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CodeGen/SPARC/inlineasm.ll?rev=337373&r1=337372&r2=337373&view=diff
==============================================================================
--- llvm/trunk/test/CodeGen/SPARC/inlineasm.ll (original)
+++ llvm/trunk/test/CodeGen/SPARC/inlineasm.ll Wed Jul 18 03:05:30 2018
@@ -130,12 +130,3 @@ entry:
   tail call void asm sideeffect "faddd $0,$1,$2", "{f20},{f20},{f20}"(double 9.0, double 10.0, double 11.0)
   ret void
 }
-
-; CHECK-LABEL: test_constraint_r_f64:
-; CHECK: std %o0, [%sp+96]
-; CHECK: ldd [%sp+96], %f0
-define double @test_constraint_r_f64() {
-entry:
-  %0 = call double asm sideeffect "", "=r"()
-  ret double %0
-}




More information about the llvm-commits mailing list