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

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

https://gcc.gnu.org/g:24c01cb9dc41f514a3024f9b6ce1d079213c14ae

commit r17-403-g24c01cb9dc41f514a3024f9b6ce1d079213c14ae
Author: Vijay Shankar <[email protected]>
Date:   Fri May 8 02:36:21 2026 -0500

    rs6000: Emit insn with proper rounding mode for nearbyint

    This patch emits instruction with proper rounding mode for
    vec_nearbyint.Previously, xvrdpi was emitted which uses nearest away
    rounding mode but nearbyint requires rounding mode to be current
    rounding mode.

    Bootstrapped and regtested on powerpc64le-linux-gnu with no regressions.

    2026-05-08  Vijay Shankar  <[email protected]>

    gcc/ChangeLog:
            PR target/113353
            * config/rs6000/rs6000.cc (rs6000_builtin_vectorized_function):
            Emit xvrdpic/xvrspic.
            * config/rs6000/rs6000-overload.def (__builtin_vec_nearbyint):
            Modified bif-id and overload-id.

    gcc/testsuite/ChangeLog:
            PR target/113353
            * gcc.target/powerpc/vsx-vector-1.c: Fix testcase.
            * gcc.target/powerpc/vsx-vector-2.c: Fix testcase.
            * gcc.target/powerpc/vsx-vector-6-func-1op.c: Fix testcase.

Reply via email to