https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105325
--- Comment #10 from Kewen Lin <linkw at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #9) > where it no longer satisfies the predicate but does satisfy the constraint. > It is unclear if there is any matching constraint for ds_form_mem_operand, > maybe wY? But not really sure about it. As the comments above wY, it's mainly for those VSX instructions and also checks no update, seems not perfect to be used here? The current ds_form_mem_operand predicate looks also contradicted with the below split condition address_is_non_pfx_d_or_x (XEXP (operands[1], 0), SImode, NON_PREFIXED_DS)). ds_form_mem_operand requires address_to_insn_form should always return INSN_FORM_DS, while address_is_non_pfx_d_or_x calls address_to_insn_form, it will never have the chance to return false since the address_to_insn_form will only return INSN_FORM_DS as predicate guards. The below snippet makes the split work and the failure gone. ==== diff --git a/gcc/config/rs6000/predicates.md b/gcc/config/rs6000/predicates.md index b1fcc69bb60..a1b58dfa0c9 100644 --- a/gcc/config/rs6000/predicates.md +++ b/gcc/config/rs6000/predicates.md @@ -1099,7 +1099,11 @@ (define_predicate "ds_form_mem_operand" rtx addr = XEXP (op, 0); - return address_to_insn_form (addr, mode, NON_PREFIXED_DS) == INSN_FORM_DS; + enum insn_form form = address_to_insn_form (addr, mode, NON_PREFIXED_DS); + + return form == INSN_FORM_DS + || (reload_completed && form == INSN_FORM_PREFIXED_NUMERIC); + }) ;; Return 1 if the operand, used inside a MEM, is a SYMBOL_REF. ==== But as Jakub noted, I'm not sure reload can ensure to make the address satisfy this updated predicate under the unmatched constraint "m".