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

--- 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:706adfdb44835b543cd14d3b7adc976b2816e72a

commit r17-4736-g706adfdb44835b543cd14d3b7adc976b2816e72a
Author: Jeevitha <[email protected]>
Date:   Tue Sep 29 01:35:05 2026 -0500

    rs6000: Fix ICE in __builtin_set_fpscr_drn with variable argument
[PR126891]

    The rs6000_set_fpscr_drn expander declares its operand as DImode,
    although the builtin argument is an SImode value. This causes an ICE
    during RTL expansion when __builtin_set_fpscr_drn is called with an
    integer variable.

    Change the operand mode to SImode and explicitly convert it to DImode
    before using it.

    2026-09-29  Jeevitha Palanisamy  <[email protected]>

    gcc/
            PR target/126891
            * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Change operand
            from DImode to SImode and convert it to DImode before use.

    gcc/testsuite/
            PR target/126891
            * gcc.target/powerpc/pr126891.c: New test.
  • [Bug target/126891] [PPC] ICE i... cvs-commit at gcc dot gnu.org via Gcc-bugs

Reply via email to