diff options
author | segher <segher@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-06-15 06:49:17 +0000 |
---|---|---|
committer | segher <segher@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-06-15 06:49:17 +0000 |
commit | beaa91c30a82a50449a6c038c3bf676ee05d2ebd (patch) | |
tree | 35a1676c76dcf1e50ef0d07ede691a4d39c3dbb8 /gcc/config/rs6000/rs6000.md | |
parent | 3c824a8b7745ce1c0c086cea966f65d9543ec203 (diff) | |
download | gcc-beaa91c30a82a50449a6c038c3bf676ee05d2ebd.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@249213 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/rs6000/rs6000.md')
-rw-r--r-- | gcc/config/rs6000/rs6000.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/rs6000/rs6000.md b/gcc/config/rs6000/rs6000.md index dedb2e3c193..8e1b460ee81 100644 --- a/gcc/config/rs6000/rs6000.md +++ b/gcc/config/rs6000/rs6000.md @@ -1631,7 +1631,7 @@ /* 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; |