https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96692
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Xi Ruoyao <[email protected]>: https://gcc.gnu.org/g:04677b1657d0ca24b52604d219e3a33532e25add commit r17-513-g04677b1657d0ca24b52604d219e3a33532e25add Author: Xi Ruoyao <[email protected]> Date: Sat May 2 03:58:04 2026 +0800 LoongArch: Improve xor+xor+ior sequence when possible [PR 96692] Copy the a ^ b ^ (a | c) => (c & ~a) ^ b optimization from RISC-V zbb (r17-241) as we have the andn instruction in LA64 and LA32S. PR rtl-optimization/96692 gcc/ * config/loongarch/loongarch.md (define_split): New splitters turning a ^ b ^ (a | c) => (c &~ a) ^ b. gcc/testsuite/ * gcc.target/loongarch/pr96692.c: New test.
