[Committed] PR middle-end/102031: Fix typo/mistake in simplify_truncation patch.
authorRoger Sayle <roger@nextmovesoftware.com>
Tue, 24 Aug 2021 21:07:41 +0000 (22:07 +0100)
committerRoger Sayle <roger@nextmovesoftware.com>
Tue, 24 Aug 2021 21:07:41 +0000 (22:07 +0100)
commit81e1894456bc6214c0c42148ff2b1bed142a3545
treebdea0686960d9771e9106b1c98d306367b18ab8d
parentf95946afd160e2a1f4beac4ee5e6d5633307f39a
[Committed] PR middle-end/102031: Fix typo/mistake in simplify_truncation patch.

My apologies again.  My patch to simplify truncations of SUBREGs in
simplify-rtx.c contained an error where I'd accidentally compared
against a mode instead of the precision of that mode.  Grr!  It even
survived regression testing on two platforms.  Fixed below, and
committed as obvious, after a full "make bootstrap" and "make -k check"
on x86_64-pc-linux-gnu with no new regressions.

2021-08-24  Roger Sayle  <roger@nextmovesoftware.com>

gcc/ChangeLog
PR middle-end/102031
* simplify-rtx.c (simplify_truncation): When comparing precisions
use "subreg_prec" variable, not "subreg_mode".
gcc/simplify-rtx.c