PR target/97150 AArch64: 2nd parameter of unsigned Neon scalar shift intrinsics shoul...
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 30 Sep 2020 11:01:23 +0000 (12:01 +0100)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 30 Sep 2020 11:02:21 +0000 (12:02 +0100)
commit2d8fbebdb1eaca8de557ab3052535a8e4b8f8972
tree3186cd86840534cd5e1ec5fbbc4fe390b5a6197f
parent135b043196b5575c690ef1e07bcbb49bf037c3a2
PR target/97150 AArch64: 2nd parameter of unsigned Neon scalar shift intrinsics should be signed

In this PR the second argument to the intrinsics should be signed but we
use an unsigned one erroneously.
The corresponding builtins are already using the correct types so it's
just a matter of correcting the signatures in arm_neon.h

gcc/
PR target/97150
* config/aarch64/arm_neon.h (vqrshlb_u8): Make second argument
signed.
(vqrshlh_u16): Likewise.
(vqrshls_u32): Likewise.
(vqrshld_u64): Likewise.
(vqshlb_u8): Likewise.
(vqshlh_u16): Likewise.
(vqshls_u32): Likewise.
(vqshld_u64): Likewise.
(vshld_u64): Likewise.

gcc/testsuite/
PR target/97150
* gcc.target/aarch64/pr97150.c: New test.
gcc/config/aarch64/arm_neon.h
gcc/testsuite/gcc.target/aarch64/pr97150.c [new file with mode: 0644]