re PR target/35802 (MIPS64: Unable to find a register to spill in class ‘V1_REG’)
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
Showing
gcc/testsuite/gcc.target/mips/pr35802.c
0 → 100644
Please
register
or
sign in
to comment