rs6000: Don't use REGNO in the add<mode>3 expander
authorSegher Boessenkool <segher@kernel.crashing.org>
Thu, 15 Jun 2017 06:49:17 +0000 (08:49 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Thu, 15 Jun 2017 06:49:17 +0000 (08:49 +0200)
commitdfc107627c31c493e4ed089aea79bc398738a27b
tree35a1676c76dcf1e50ef0d07ede691a4d39c3dbb8
parent0f25124435030c3e788ce4425d799648ff906743
rs6000: Don't use REGNO in the add<mode>3 expander

The argument could be a subreg of reg instead, which means we have to
use reg_or_subregno instead of REGNO.

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

From-SVN: r249213
gcc/ChangeLog
gcc/config/rs6000/rs6000.md