aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>2023-02-13 12:06:44 +0100
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>2023-02-13 12:06:44 +0100
commit1e191d19b5c182c9e919ca2a331e52b68132f7ac (patch)
treee425cb2ad9116068af6f7b562dccd5cfa591d05e /gcc
parentbc5581fe327388fea5af875c028ccb8cfb0b6a1c (diff)
downloadgcc-1e191d19b5c182c9e919ca2a331e52b68132f7ac.zip
gcc-1e191d19b5c182c9e919ca2a331e52b68132f7ac.tar.gz
gcc-1e191d19b5c182c9e919ca2a331e52b68132f7ac.tar.bz2
IBM zSystems: Fix predicate execute_operation
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. 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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/s390/predicates.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/s390/predicates.md b/gcc/config/s390/predicates.md
index 404e8d8..d5d5a7c 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