gcc/ PR target/107645 * config/m68k/predicates.md (symbolic_operand): Return false when UNSPEC is under the CONST node. --- Regtested with --enable-checking=all for target=m68k-linux-uclibc, no new regressions compared to the compiler built without checking. Ok for master?
gcc/config/m68k/predicates.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/config/m68k/predicates.md b/gcc/config/m68k/predicates.md index f8dedd9f8375..094a18955534 100644 --- a/gcc/config/m68k/predicates.md +++ b/gcc/config/m68k/predicates.md @@ -141,6 +141,8 @@ case CONST: op = XEXP (op, 0); + if (GET_CODE (op) == UNSPEC) + return false; return ((GET_CODE (XEXP (op, 0)) == SYMBOL_REF || GET_CODE (XEXP (op, 0)) == LABEL_REF) && GET_CODE (XEXP (op, 1)) == CONST_INT); -- 2.30.2