gcc: m68k: fix PR target/107645

gcc/
	PR target/107645
	* config/m68k/predicates.md (symbolic_operand): Return false
	when UNSPEC is under the CONST node.
This commit is contained in:
Max Filippov 2022-11-09 00:39:50 -08:00
parent f58e6d42fc
commit 99c9cbcc3b

View file

@ -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);