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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Kyrylo Tkachov <ktkac...@gcc.gnu.org>:

https://gcc.gnu.org/g:95542a6ec4b350c653b793b7c36a8210b0e9a89d

commit r14-1156-g95542a6ec4b350c653b793b7c36a8210b0e9a89d
Author: Kyrylo Tkachov <kyrylo.tkac...@arm.com>
Date:   Wed May 24 09:33:04 2023 +0100

    arm: PR target/109939 Correct signedness of return type of __ssat
intrinsics

    As the PR says we shouldn't be using qualifier_unsigned for the return type
of the __ssat intrinsics.
    UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS already exists for that.
    This was just a thinko.
    This patch fixes this and the warning with -Wconversion goes away.

    Bootstrapped and tested on arm-none-linux-gnueabihf.

    gcc/ChangeLog:

            PR target/109939
            * config/arm/arm-builtins.cc (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS):
Use
            qualifier_none for the return operand.

    gcc/testsuite/ChangeLog:

            PR target/109939
            * gcc.target/arm/pr109939.c: New test.

Reply via email to