public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Michael Meissner <meissner@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/meissner/heads/dmf007)] Update lxvrl test for 32-bit.
Date: Thu,  2 Feb 2023 02:58:32 +0000 (GMT)	[thread overview]
Message-ID: <20230202025832.72F713858D3C@sourceware.org> (raw)

https://gcc.gnu.org/g:0c6bff190a28a2eed76da56d68e99a32565599ce

commit 0c6bff190a28a2eed76da56d68e99a32565599ce
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Wed Feb 1 21:58:09 2023 -0500

    Update lxvrl test for 32-bit.
    
    2023-02-01   Michael Meissner  <meissner@linux.ibm.com>
    
    gcc/
    
            * config/rs6000/rs6000-string.c (expand_block_move): Only generate LXVL
            and STXVL moves on 64-bit, since the pattern is not enabled on 32-bit.
    
    gcc/testsuite/
    
            * gcc.target/powerpc/lxvrl.c: Restrict test to 64-bit.

Diff:
---
 gcc/config/rs6000/rs6000-string.cc       | 1 +
 gcc/testsuite/gcc.target/powerpc/lxvrl.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/gcc/config/rs6000/rs6000-string.cc b/gcc/config/rs6000/rs6000-string.cc
index 75e6f8803a5..9b2f1b83b22 100644
--- a/gcc/config/rs6000/rs6000-string.cc
+++ b/gcc/config/rs6000/rs6000-string.cc
@@ -2811,6 +2811,7 @@ expand_block_move (rtx operands[], bool might_overlap)
 	  gen_func.mov = gen_vsx_movv2di_64bit;
 	}
       else if (TARGET_BLOCK_OPS_UNALIGNED_VSX
+	       && TARGET_POWERPC64
 	       && TARGET_POWER10 && bytes < 16
 	       && orig_bytes > 16
 	       && !(bytes == 1 || bytes == 2
diff --git a/gcc/testsuite/gcc.target/powerpc/lxvrl.c b/gcc/testsuite/gcc.target/powerpc/lxvrl.c
index 83277dce6e4..71854c50c91 100644
--- a/gcc/testsuite/gcc.target/powerpc/lxvrl.c
+++ b/gcc/testsuite/gcc.target/powerpc/lxvrl.c
@@ -1,5 +1,6 @@
 /* { dg-do compile } */
 /* { dg-require-effective-target powerpc_future_ok } */
+/* { dg-require-effective-target lp64 } */
 /* { dg-options "-mdejagnu-cpu=future -O2" } */
 
 /* Test whether the lxvrl and stxvrl instructions are generated for

                 reply	other threads:[~2023-02-02  2:58 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=20230202025832.72F713858D3C@sourceware.org \
    --to=meissner@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).