public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jonathan Wright <jonwri01@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r12-4396] aarch64: Fix pointer parameter type in LD1 Neon intrinsics
Date: Thu, 14 Oct 2021 12:46:01 +0000 (GMT)	[thread overview]
Message-ID: <20211014124601.060C5385843D@sourceware.org> (raw)

https://gcc.gnu.org/g:6779e9ba2cb242e51a4257fdc51cc03b870f8570

commit r12-4396-g6779e9ba2cb242e51a4257fdc51cc03b870f8570
Author: Jonathan Wright <jonathan.wright@arm.com>
Date:   Thu Oct 14 10:39:32 2021 +0100

    aarch64: Fix pointer parameter type in LD1 Neon intrinsics
    
    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.

Diff:
---
 gcc/config/aarch64/arm_neon.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/aarch64/arm_neon.h b/gcc/config/aarch64/arm_neon.h
index 2d5bf34b698..24068f8d7da 100644
--- a/gcc/config/aarch64/arm_neon.h
+++ b/gcc/config/aarch64/arm_neon.h
@@ -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;


                 reply	other threads:[~2021-10-14 12:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211014124601.060C5385843D@sourceware.org \
    --to=jonwri01@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).