]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
backport: rs6000.md (add<mode>3): Use reg_or_subregno instead of REGNO.
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 3 Jul 2017 12:33:00 +0000 (14:33 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 3 Jul 2017 12:33:00 +0000 (14:33 +0200)
Backport from trunk:

2017-06-15  Segher Boessenkool  <segher@kernel.crashing.org>

* config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
of REGNO.

From-SVN: r249906

gcc/ChangeLog
gcc/config/rs6000/rs6000.md

index 9ad493b0794caf0d7fb6b01c997b0c569e73f280..bc807c8bb3ac09f8ae3b69d50689770b13f61ae0 100644 (file)
@@ -1,3 +1,12 @@
+2017-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       Backport from trunk:
+
+       2017-06-15  Segher Boessenkool  <segher@kernel.crashing.org>
+
+       * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
+       of REGNO.
+
 2017-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
 
        Backport from mainline
index ede5306a1f38518e18b1822b3e22b681e339a47e..2ff61a23dd30cace5b67286d21ef5b63fd7d88c5 100644 (file)
 
       /* Adding a constant to r0 is not a valid insn, so use a different
         strategy in that case.  */
-      if (REGNO (operands[1]) == 0 || REGNO (tmp) == 0)
+      if (reg_or_subregno (operands[1]) == 0 || reg_or_subregno (tmp) == 0)
        {
          if (operands[0] == operands[1])
            FAIL;