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
+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
/* 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;