]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
IBM zSystems: Fix predicate execute_operation
authorStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Mon, 13 Feb 2023 11:06:44 +0000 (12:06 +0100)
committerStefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Mon, 13 Feb 2023 11:06:44 +0000 (12:06 +0100)
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.

gcc/config/s390/predicates.md

index 404e8d87b63a75ee585ea3bb68a486716dfb8470..d5d5a7cc0d35992cf711fe024991dbcd62dd333d 100644 (file)
   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