public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug testsuite/105349] [12 regression] gcc.target/powerpc/bswap-brw.c fails after r12-8221
Date: Mon, 25 Apr 2022 17:23:27 +0000	[thread overview]
Message-ID: <bug-105349-4-yHv2ZAVYwo@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-105349-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105349

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Somehow that doesn't really work, in the log I see that has_arch_pwr10 is
tested but yields it is not on:
/usr/src/gcc/objp16/gcc/xgcc -B/usr/src/gcc/objp16/gcc/ arch_pwr101791933.c 
-m32   -fdiagnostics-plain-output  -S -o arch_pwr101791933.s    (timeout = 300)
spawn -ignore SIGHUP /usr/src/gcc/objp16/gcc/xgcc -B/usr/src/gcc/objp16/gcc/
arch_pwr101791933.c -m32 -fdiagnostics-plain-output -S -o arch_pwr101791933.s
arch_pwr101791933.c:3:18: error: #error does not have power10 support.
compiler exited with status 1
- the -mdejagnu-cpu=power10 option from the command line isn't clearly passed
to the effective target test compilation.
If I do:
--- gcc/testsuite/gcc.target/powerpc/bswap-brw.c.jj     2022-04-22
13:36:56.136961022 +0200
+++ gcc/testsuite/gcc.target/powerpc/bswap-brw.c        2022-04-25
19:16:46.528029452 +0200
@@ -17,6 +17,6 @@ bswap_int_dbl (unsigned int a)
   /* Force the value to be loaded into a vector register.  */
   __asm__ (" # %x0" : "+wa" (b));

-  /* { dg-final { scan-assembler {\mxxbrw\M} {xfail {has_arch_pwr10 && {!
has_arch_ppc64}}} } } */
+  /* { dg-final { scan-assembler {\mxxbrw\M} {xfail { ! { has_arch_ppc64 } } }
} } */
   return (double) __builtin_bswap32 (b);
 }

then the test passes both
make check-gcc RUNTESTFLAGS='--target_board=unix\{-m32,-m64\}
powerpc.exp=bswap-brw.c'
(in x86_64-linux -> powerpc64-linux cross).
What is the point of has_arch_pwr10 test in there?  When -mdejagnu-cpu=power10
is used, then it is power10 when it is being compiled always, no?

  parent reply	other threads:[~2022-04-25 17:23 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-22 17:53 [Bug testsuite/105349] New: " seurer at gcc dot gnu.org
2022-04-23 18:14 ` [Bug testsuite/105349] " segher at gcc dot gnu.org
2022-04-24 14:35 ` segher at gcc dot gnu.org
2022-04-25  6:46 ` rguenth at gcc dot gnu.org
2022-04-25 16:06 ` jakub at gcc dot gnu.org
2022-04-25 16:36 ` jakub at gcc dot gnu.org
2022-04-25 16:49 ` segher at gcc dot gnu.org
2022-04-25 17:23 ` jakub at gcc dot gnu.org [this message]
2022-04-25 17:32 ` segher at gcc dot gnu.org
2022-04-25 17:34 ` jakub at gcc dot gnu.org
2022-04-25 17:41 ` segher at gcc dot gnu.org
2022-04-25 17:45 ` segher at gcc dot gnu.org
2022-04-25 17:46 ` seurer at gcc dot gnu.org
2022-04-25 17:48 ` jakub at gcc dot gnu.org
2022-04-25 17:53 ` segher at gcc dot gnu.org
2022-04-25 17:55 ` segher at gcc dot gnu.org
2022-04-25 18:22 ` segher at gcc dot gnu.org
2022-04-25 22:15 ` segher at gcc dot gnu.org
2022-04-26 11:35 ` cvs-commit at gcc dot gnu.org
2022-04-26 16:42 ` jakub at gcc dot gnu.org

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=bug-105349-4-yHv2ZAVYwo@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@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).