On Tue, Sep 08, 2026 at 12:25:33PM +0530, jeevitha wrote:
> 
> Hi All,
> 
> The following patch has been bootstrapped and regtested on powerpc64le-linux.
> 
> 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-08  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.

This looks good for the master branch, and doing backports to older GCC
branches after a week of burn-in that are open provided the branch did
show the same error.

-- 
Michael Meissner, IBM
PO Box 98, Ayer, Massachusetts, USA, 01432
email: [email protected]

Reply via email to