re PR target/35802 (MIPS64: Unable to find a register to spill in class ‘V1_REG...
authorRichard Sandiford <rdsandiford@googlemail.com>
Wed, 9 Jul 2008 20:03:40 +0000 (20:03 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Wed, 9 Jul 2008 20:03:40 +0000 (20:03 +0000)
commit256f27f13cbdfdfc5143b422c2b4a11f234a56e8
tree7b1768666be5ddf7287b017b4d52a085181bcca6
parent432b5555207c59c1c9be108d62700aca8f9baa1f
re PR target/35802 (MIPS64: Unable to find a register to spill in class &#8216;V1_REG&#8217;)

gcc/
PR target/35802
* config/mips/mips.h (reg_class): Remove V1_REG.
(REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
* config/mips/mips.c (mips_regno_to_class): Map $3 to M16_NA_REGS
instead of V1_REGS.
(mips_get_tp): New function.
(mips_legitimize_tls_address): Use it.
* config/mips/constraints.md (v): Delete.
* config/mips/mips.md (TLS_GET_TP_REGNUM): New constant.
(tls_get_tp_<mode>): Allow any GPR destination and clobber $3.
After reload, split into a move and ...
(*tls_get_tp_<mode>_split): ...this new instruction.

gcc/testsuite/
PR target/35802
* gcc.target/mips/pr35802.c: New test.

From-SVN: r137670
gcc/ChangeLog
gcc/config/mips/constraints.md
gcc/config/mips/mips.c
gcc/config/mips/mips.h
gcc/config/mips/mips.md
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/pr35802.c [new file with mode: 0644]