https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126121
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Andreas Schwab <[email protected]>: https://gcc.gnu.org/g:b407be9e4bdc117a59d232a4db9672544c14a40a commit r17-2286-gb407be9e4bdc117a59d232a4db9672544c14a40a Author: Andreas Schwab <[email protected]> Date: Thu Jul 9 20:24:35 2026 +0200 m68k: Properly model bset/bclr on memory When operating on memory the bset and bclr insns use only the low 3 bits of the bit number. PR target/126121 gcc/ * config/m68k/m68k.md (bsetmemqi, *bsetmemqi_ext, bclrmemqi) (*bclrmemqi_ext): Add AND with 7 around bit number. gcc/testsuite/ * gcc.dg/torture/pr126121.c: New test.
