From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2EE6A3858C53; Mon, 25 Apr 2022 17:23:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2EE6A3858C53 From: "jakub at gcc dot 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: testsuite X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Apr 2022 17:23:27 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105349 --- Comment #6 from Jakub Jelinek --- 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= =20 -m32 -fdiagnostics-plain-output -S -o arch_pwr101791933.s (timeout = =3D 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=3Dpower10 option from the command line isn't clearly pa= ssed 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=3D'--target_board=3Dunix\{-m32,-m64\} powerpc.exp=3Dbswap-brw.c' (in x86_64-linux -> powerpc64-linux cross). What is the point of has_arch_pwr10 test in there? When -mdejagnu-cpu=3Dpo= wer10 is used, then it is power10 when it is being compiled always, no?=