public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4086] gcc: m68k: fix PR target/107645
@ 2022-11-16 12:36 Max Filippov
0 siblings, 0 replies; only message in thread
From: Max Filippov @ 2022-11-16 12:36 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:99c9cbcc3ba3e005bad790a600853266a81d95ee
commit r13-4086-g99c9cbcc3ba3e005bad790a600853266a81d95ee
Author: Max Filippov <jcmvbkbc@gmail.com>
Date: Wed Nov 9 00:39:50 2022 -0800
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.
Diff:
---
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 f8dedd9f837..094a1895553 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-11-16 12:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 12:36 [gcc r13-4086] gcc: m68k: fix PR target/107645 Max Filippov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).