[RS6000] Fix ICE caused by rs6000_savres_strategy thinko
authorAlan Modra <amodra@gmail.com>
Tue, 3 May 2016 12:38:32 +0000 (22:08 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Tue, 3 May 2016 12:38:32 +0000 (22:08 +0930)
commit71aca5a07a0b9646d5040577ab646c3d147fb228
tree69984171a68d8edd62593607cdf9695a1f0c37d0
parent2fd70ec11c4e3661dc4313729cb1a76b1733e79e
[RS6000] Fix ICE caused by rs6000_savres_strategy thinko

rev 235672 (git cffc0b35) changed the condition for SAVE_MULTIPLE/
STORE_MULTIPLE, wrongly allowing a single reg.

gcc/
* config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
for SAVE_MULTIPLE/STORE_MULTIPLE.
gcc/testsuite/
* gcc.target/powerpc/savres.c: Add func using a single gpr.

From-SVN: r235820
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/savres.c