public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-5764] hppa: Fix integer REG+D address reloads
@ 2023-11-22 19:48 John David Anglin
0 siblings, 0 replies; only message in thread
From: John David Anglin @ 2023-11-22 19:48 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:a89224f819381b77657145fdd8b1d997b989fdc0
commit r14-5764-ga89224f819381b77657145fdd8b1d997b989fdc0
Author: John David Anglin <danglin@gcc.gnu.org>
Date: Wed Nov 22 19:47:34 2023 +0000
hppa: Fix integer REG+D address reloads
I made a mistake in the previous change to integer_store_memory_operand.
There is no support pa_emit_move sequence to handle secondary reloads of
integer REG+D instructions. Further, the Q constraint is used for some
non-simple instructions (movb and addib). Thus, we need to return true
when reload is in progress.
2023-11-22 John David Anglin <danglin@gcc.gnu.org>
gcc/ChangeLog:
PR target/112617
* config/pa/predicates.md (integer_store_memory_operand): Return
true for REG+D addresses when reload_in_progress is true.
Diff:
---
gcc/config/pa/predicates.md | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gcc/config/pa/predicates.md b/gcc/config/pa/predicates.md
index 1b50020e1de..4c07c0a3828 100644
--- a/gcc/config/pa/predicates.md
+++ b/gcc/config/pa/predicates.md
@@ -308,6 +308,13 @@
if (reg_plus_base_memory_operand (op, mode))
{
+ /* There is no support for handling secondary reloads of integer
+ REG+D instructions in pa_emit_move_sequence. Further, the Q
+ constraint is used in more than simple move instructions. So,
+ we must return true and let reload handle the reload. */
+ if (reload_in_progress)
+ return true;
+
/* Extract CONST_INT operand. */
if (GET_CODE (op) == SUBREG)
op = SUBREG_REG (op);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-22 19:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-22 19:48 [gcc r14-5764] hppa: Fix integer REG+D address reloads John David Anglin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).