public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: William Schmidt <wschmidt@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/wschmidt/heads/builtins4)] rs6000: Adjust temporary defines for __builtin_vec_splat_s*
Date: Sun,  7 Feb 2021 18:14:52 +0000 (GMT)	[thread overview]
Message-ID: <20210207181452.CC2963951847@sourceware.org> (raw)

https://gcc.gnu.org/g:6572661882de985a23ee6a72bea83d1eff828639

commit 6572661882de985a23ee6a72bea83d1eff828639
Author: Bill Schmidt <wschmidt@linux.ibm.com>
Date:   Mon Nov 16 13:52:06 2020 -0500

    rs6000: Adjust temporary defines for __builtin_vec_splat_s*
    
    2020-11-16  Bill Schmidt  <wschmidt@linux.ibm.com>
    
            * config/rs6000/rs6000-gen-builtins.c (write_defines_file):
            Try again on defines for __builtin_vec_splat_s{8,16,32}.

Diff:
---
 gcc/config/rs6000/rs6000-gen-builtins.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/gcc/config/rs6000/rs6000-gen-builtins.c b/gcc/config/rs6000/rs6000-gen-builtins.c
index f45fb63045f..a25a34a166d 100644
--- a/gcc/config/rs6000/rs6000-gen-builtins.c
+++ b/gcc/config/rs6000/rs6000-gen-builtins.c
@@ -2704,12 +2704,13 @@ write_defines_file ()
       }
 
   /* Write some temporary defines to use until we make the switch.  */
+  fprintf (defines_file, "\n/* #### TEMPORARY ####  */\n");
   fprintf (defines_file,
-	   "#define __builtin_vec_splat_s8 __builtin_altivec_splat_s8\n");
+	   "#define __builtin_vec_splat_s8 __builtin_altivec_vspltisb\n");
   fprintf (defines_file,
-	   "#define __builtin_vec_splat_s16 __builtin_altivec_splat_s16\n");
+	   "#define __builtin_vec_splat_s16 __builtin_altivec_vspltish\n");
   fprintf (defines_file,
-	   "#define __builtin_vec_splat_s32 __builtin_altivec_splat_s32\n");
+	   "#define __builtin_vec_splat_s32 __builtin_altivec_vspltisw\n");
 
   fprintf (defines_file, "\n#endif\n");
   return 1;


             reply	other threads:[~2021-02-07 18:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-07 18:14 William Schmidt [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-12-16 18:08 William Schmidt
2020-11-24 16:45 William Schmidt
2020-11-16 18:52 William Schmidt

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=20210207181452.CC2963951847@sourceware.org \
    --to=wschmidt@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).