* [PATCH] IBM zSystems: Fix predicate execute_operation
@ 2023-02-11 16:10 Stefan Schulze Frielinghaus
2023-02-13 10:42 ` Andreas Krebbel
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Schulze Frielinghaus @ 2023-02-11 16:10 UTC (permalink / raw)
To: krebbel, gcc-patches; +Cc: Stefan Schulze Frielinghaus
Use constrain_operands in order to check whether there exists a valid
alternative instead of extract_constrain_insn which ICEs in case no
alternative is found.
Bootstrapped and regtested on IBM zSystems. Ok for mainline?
gcc/ChangeLog:
* config/s390/predicates.md (execute_operation): Use
constrain_operands instead of extract_constrain_insn in order to
determine wheter there exists a valid alternative.
---
gcc/config/s390/predicates.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/config/s390/predicates.md b/gcc/config/s390/predicates.md
index 404e8d87b63..d5d5a7cc0d3 100644
--- a/gcc/config/s390/predicates.md
+++ b/gcc/config/s390/predicates.md
@@ -479,9 +479,9 @@
if (icode < 0)
return false;
- extract_constrain_insn (insn);
+ extract_insn (insn);
- return which_alternative >= 0;
+ return constrain_operands (reload_completed, get_enabled_alternatives (insn)) == 1;
})
;; Return true if OP is a store multiple operation. It is known to be a
--
2.39.1
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] IBM zSystems: Fix predicate execute_operation
2023-02-11 16:10 [PATCH] IBM zSystems: Fix predicate execute_operation Stefan Schulze Frielinghaus
@ 2023-02-13 10:42 ` Andreas Krebbel
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Krebbel @ 2023-02-13 10:42 UTC (permalink / raw)
To: Stefan Schulze Frielinghaus, gcc-patches
On 2/11/23 17:10, Stefan Schulze Frielinghaus wrote:
> Use constrain_operands in order to check whether there exists a valid
> alternative instead of extract_constrain_insn which ICEs in case no
> alternative is found.
>
> Bootstrapped and regtested on IBM zSystems. Ok for mainline?
>
> gcc/ChangeLog:
>
> * config/s390/predicates.md (execute_operation): Use
> constrain_operands instead of extract_constrain_insn in order to
> determine wheter there exists a valid alternative.
Ok. Thanks!
Andreas
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-02-13 10:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-11 16:10 [PATCH] IBM zSystems: Fix predicate execute_operation Stefan Schulze Frielinghaus
2023-02-13 10:42 ` Andreas Krebbel
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).