re PR target/91769 (wrong code with -O2 on MIPS)
commit206c926ae2e422b358e63b555298ac21119502ed
authorDragan Mladjenovic <dmladjenovic@wavecomp.com>
Thu, 3 Oct 2019 19:17:20 +0000 (3 19:17 +0000)
committerDragan Mladjenovic <draganm@gcc.gnu.org>
Thu, 3 Oct 2019 19:17:20 +0000 (3 19:17 +0000)
tree4ec939be65d2ca796a27d4d01bd2861d7ffbbab5
parent6c7e076b746e17ab9d49255c4ba9b2d01ff997c8
re PR target/91769 (wrong code with -O2 on MIPS)

Fix PR target/91769

This fixes the issue by checking that addr's base reg is not part of dest
multiword reg instead just checking the first reg of dest.

gcc/ChangeLog:

2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>

PR target/91769
* config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
instead of REGNO equality check on addr.reg.

gcc/testsuite/ChangeLog:

2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>

PR target/91769
* gcc.target/mips/pr91769.c: New test.

From-SVN: r276525
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/pr91769.c [new file with mode: 0644]