aarch64: Fix pointer parameter type in LD1 Neon intrinsics
authorJonathan Wright <jonathan.wright@arm.com>
Thu, 14 Oct 2021 09:39:32 +0000 (10:39 +0100)
committerJonathan Wright <jonathan.wright@arm.com>
Thu, 14 Oct 2021 12:45:15 +0000 (13:45 +0100)
The pointer parameter to load a vector of signed values should itself
be a signed type. This patch fixes two instances of this unsigned-
signed implicit conversion in arm_neon.h.

gcc/ChangeLog:

2021-10-14  Jonathan Wright  <jonathan.wright@arm.com>

* config/aarch64/arm_neon.h (vld1_s8_x3): Use signed type for
pointer parameter.
(vld1_s32_x3): Likewise.

gcc/config/aarch64/arm_neon.h

index 2d5bf34..24068f8 100644 (file)
@@ -16198,7 +16198,7 @@ vld1_u8_x3 (const uint8_t *__a)
 
 __extension__ extern __inline int8x8x3_t
 __attribute__ ((__always_inline__, __gnu_inline__, __artificial__))
-vld1_s8_x3 (const uint8_t *__a)
+vld1_s8_x3 (const int8_t *__a)
 {
   int8x8x3_t __i;
   __builtin_aarch64_simd_ci __o;
@@ -16250,7 +16250,7 @@ vld1_u32_x3 (const uint32_t *__a)
 
 __extension__ extern __inline int32x2x3_t
 __attribute__ ((__always_inline__, __gnu_inline__, __artificial__))
-vld1_s32_x3 (const uint32_t *__a)
+vld1_s32_x3 (const int32_t *__a)
 {
   int32x2x3_t __i;
   __builtin_aarch64_simd_ci __o;