mips.c (mips16e_save_restore_pattern_p): Check that the topmost argument register...
authorRichard Sandiford <richard@codesourcery.com>
Fri, 6 Jul 2007 09:20:46 +0000 (09:20 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Fri, 6 Jul 2007 09:20:46 +0000 (09:20 +0000)
commit106b3d40e77897e85c6e041b88b74b8a3222417e
tree65deb1084ccb4af1ca38acc779b5acb34622854f
parent56d17681225aa3b26dd0ca0958fe9c4a329b07f4
mips.c (mips16e_save_restore_pattern_p): Check that the topmost argument register is not also included in the save mask.

gcc/
* config/mips/mips.c (mips16e_save_restore_pattern_p): Check that
the topmost argument register is not also included in the save mask.
(mips16e_collect_argument_save_p): Take a pointer to the argument
register, rather than a pointer to the number of arguments.
(mips16e_collect_argument_saves): Only include argument saves
that aren't in the register mask.

gcc/testsuite/
* gcc.target/mips/save-restore-5.c: New test.

From-SVN: r126404
gcc/ChangeLog
gcc/config/mips/mips.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/save-restore-5.c [new file with mode: 0644]