public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Robin Dapp <rdapp@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-7106] combine: Check for paradoxical subreg. Date: Tue, 8 Feb 2022 14:31:51 +0000 (GMT) [thread overview] Message-ID: <20220208143151.28DC7385840D@sourceware.org> (raw) https://gcc.gnu.org/g:38a177fa4c2fd1ce75581145b3b8f12592b4aacd commit r12-7106-g38a177fa4c2fd1ce75581145b3b8f12592b4aacd Author: Robin Dapp <rdapp@linux.ibm.com> Date: Tue Feb 8 14:39:16 2022 +0100 combine: Check for paradoxical subreg. This adds a check for a paradoxical subreg in reg_subword_p () in order to prevent an ICE on s390 in try_combine () triggered by the movqicc expander. gcc/ChangeLog: * combine.cc (reg_subword_p): Check for paradoxical subreg. Diff: --- gcc/combine.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/gcc/combine.cc b/gcc/combine.cc index 7683f8250fe..c264ededf20 100644 --- a/gcc/combine.cc +++ b/gcc/combine.cc @@ -2411,6 +2411,7 @@ reg_subword_p (rtx x, rtx reg) x = XEXP (x, 0); return GET_CODE (x) == SUBREG + && !paradoxical_subreg_p (x) && SUBREG_REG (x) == reg && GET_MODE_CLASS (GET_MODE (x)) == MODE_INT; }
reply other threads:[~2022-02-08 14:31 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220208143151.28DC7385840D@sourceware.org \ --to=rdapp@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).