]> git.ipfire.org Git - thirdparty/gcc.git/commit
hppa: Don't allow large modes in hard registers
authorJohn David Anglin <danglin@gcc.gnu.org>
Fri, 8 Nov 2024 21:49:34 +0000 (16:49 -0500)
committerJohn David Anglin <danglin@gcc.gnu.org>
Fri, 8 Nov 2024 21:49:34 +0000 (16:49 -0500)
commit3a1da8ffb71af1005c5a035d0eb5f956056adf32
tree00afdbdf6b12702b2a654c7dae8e7876c6e67af7
parent1ea45291af0bc8f7b6dff67a0f23be662b2f9908
hppa: Don't allow large modes in hard registers

LRA has problems handling spills for OI and TI modes.  There are
issues with SUBREG support as well.

This change fixes gcc.c-torture/compile/pr92618.c with LRA.

2024-11-08  John David Anglin  <danglin@gcc.gnu.org>

gcc/ChangeLog:

PR target/117238
* config/pa/pa32-regs.h (PA_HARD_REGNO_MODE_OK): Don't allow
mode size 32.  Limit mode size 16 in general registers to
complex modes.
gcc/config/pa/pa32-regs.h