]> gcc.gnu.org Git - gcc.git/commit
arm: PR target/109939 Correct signedness of return type of __ssat intrinsics
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 24 May 2023 08:33:04 +0000 (09:33 +0100)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Thu, 8 Jun 2023 08:54:14 +0000 (09:54 +0100)
commita620451032abb28343c31438a4e779ea5d2e1bbf
tree2303f2b8b56f0957e0f2337c84d17691b6409b71
parent7e464d07d6acb1a209e28f88a686593fce19c658
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.

(cherry picked from commit 95542a6ec4b350c653b793b7c36a8210b0e9a89d)
gcc/config/arm/arm-builtins.cc
gcc/testsuite/gcc.target/arm/pr109939.c [new file with mode: 0644]
This page took 0.067346 seconds and 6 git commands to generate.