]> git.ipfire.org Git - thirdparty/gcc.git/commit
[PR rtl-optimization/122536] Fix guard against variable bit extracts in RTL simplifier
authorJeff Law <jlaw@ventanamicro.com>
Mon, 3 Nov 2025 19:46:23 +0000 (12:46 -0700)
committerJeff Law <jlaw@ventanamicro.com>
Mon, 3 Nov 2025 19:46:23 +0000 (12:46 -0700)
commit0f4afd8bb164054c227b2678169c0b098479a753
treeaa0265fd1461439a0f3ff80cd4b7421996b3cfdc
parent8f6c9ebc7d7726596c94f164176b914801c5665c
[PR rtl-optimization/122536] Fix guard against variable bit extracts in RTL simplifier

While I haven't been able to reproduce the failure Sam reported, based on the
RTL checking failure point and the code in question it was pretty clear the
code that was supposed to guard against a variable bit extract was just
checking the wrong argument to verify it was a constant integer -- it missed a
level of XEXP object extraction.

I passed this patch along to Sam and he verified it fixes his kernel build.
I've bootstrapped and regression tested on x86_64.  Pushing to the trunk.

Pushing to the trunk.

PR rtl-optimization/122536
gcc/
* simplify-rtx.cc (simplify_context::simplify_binary_operation_1): Fix
guard against variable bit extracts in recent change.
gcc/simplify-rtx.cc