public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7106] combine: Check for paradoxical subreg.
@ 2022-02-08 14:31 Robin Dapp
  0 siblings, 0 replies; only message in thread
From: Robin Dapp @ 2022-02-08 14:31 UTC (permalink / raw)
  To: gcc-cvs

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;
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-08 14:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-08 14:31 [gcc r12-7106] combine: Check for paradoxical subreg Robin Dapp

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).