https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128705

--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by jeevitha <[email protected]>:

https://gcc.gnu.org/g:0673900d69153f1fb4dc57cf133efc7c4a28d34b

commit r17-6870-g0673900d69153f1fb4dc57cf133efc7c4a28d34b
Author: Jeevitha <[email protected]>
Date:   Mon Nov 30 23:16:35 2026 -0500

    rs6000: Fix incorrect load size in zero-extended load peephole [PR128705]

    The non-indexed branch of the zero-extended load peephole incorrectly
    used DImode when constructing the memory operand for POWER10 lxvr*x
    loads.

    This caused loads of QImode, HImode, and SImode values to access 8
    bytes instead of their original memory access size, resulting in
    incorrect results.

    Use GET_MODE (mem) instead of DImode to preserve the original memory
    access size.

    2026-12-01  Jeevitha Palanisamy  <[email protected]>

    gcc/
            PR target/128705
            * config/rs6000/rs6000.md (peephole2 for zero_extend:DI of QHSI
            memory to TI): Preserve the original memory mode when constructing
            the memory operand.

    gcc/testsuite/
            PR target/128705
            * gcc.target/powerpc/pr128705.c: New test.

Reply via email to