arm: Fix sign of MVE predicate mve_pred16_t [PR 107674]
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Thu, 2 Feb 2023 10:00:57 +0000 (10:00 +0000)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Thu, 2 Feb 2023 10:00:57 +0000 (10:00 +0000)
commit75b58e77706e8b5057770f040005950940a9a0f5
tree9436354594cf54329af0d16ab1ab21d7bef23c1b
parentd2423144eb36a68fd0da9224857ce807714874a7
arm: Fix sign of MVE predicate mve_pred16_t [PR 107674]

The ACLE defines mve_pred16_t as an unsigned short.  This patch makes sure GCC
treats the predicate as an unsigned type, rather than signed.

gcc/ChangeLog:

PR target/107674
* config/arm/arm-builtins.cc (arm_simd_builtin_type): Rewrite to use
new qualifiers parameter and use unsigned short type for MVE predicate.
(arm_init_builtin): Call arm_simd_builtin_type with qualifiers
parameter.
(arm_init_crypto_builtins): Likewise.

gcc/testsuite/ChangeLog:

PR target/107674
* gcc.target/arm/mve/mve_vpt.c: New test.
gcc/config/arm/arm-builtins.cc
gcc/testsuite/gcc.target/arm/mve/mve_vpt.c [new file with mode: 0644]