https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125180
--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-16 branch has been updated by Jakub Jelinek <[email protected]>: https://gcc.gnu.org/g:007bef7aabcdc00e59358c92f7e2be3b0a227977 commit r16-8866-g007bef7aabcdc00e59358c92f7e2be3b0a227977 Author: Jakub Jelinek <[email protected]> Date: Tue May 5 10:44:25 2026 +0200 i386: Avoid splitting 16/32-bit volatile mem test into 8-bit test [PR125180] With -ffuse-ops-with-volatile-access which is now even on by default thie splitter can split a 16 or 32-bit volatile memory test into an 8-bit volatile memory test, which is undesirable and e.g. when it refers to some memory mapped hw registers it could misbehave. 2026-05-05 Jakub Jelinek <[email protected]> PR target/125180 * config/i386/i386.md (HI/SI test -> QI test splitter): Punt if operands[2] is a volatile MEM. * gcc.target/i386/pr125180.c: New test. Reviewed-by: Uros Bizjak <[email protected]> (cherry picked from commit 9d60af6d3e3bcaf37f44312569e15163af2ec598)
