PR target/97349 AArch64: Incorrect types for some Neon vdupq_n_<...> intrinsics
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Fri, 9 Oct 2020 09:34:15 +0000 (10:34 +0100)
committerKyrylo Tkachov <kyrylo.tkachov@arm.com>
Mon, 12 Oct 2020 10:55:17 +0000 (11:55 +0100)
commit8a3da2e6060ff0f61dae6aaada716e2c67f3d54f
tree13cc03719a90225864301b2a72c642b667e6ac5b
parenta1a10a0b8c4e161070f88de3af9d20f9f866a23f
PR target/97349 AArch64: Incorrect types for some Neon vdupq_n_<...> intrinsics

This patch fixes the PR by adjusting the input types of the intrinsic
prototypes to the ones mandated by ACLE
Turns out the tests in the testsuite were already using the correct
ones, but implicit conversions hid the bug...

Bootstrapped and tested on aarch64-none-linux-gnu.

gcc/
PR target/97349
* config/aarch64/arm_neon.h (vdupq_n_p8, vdupq_n_p16,
vdupq_n_p64, vdupq_n_s8, vdupq_n_s16, vdupq_n_u8, vdupq_n_u16):
Fix argument type.

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