diff mbox series

[RS6000] biarch test fail

Message ID 20201025112532.GF15956@bubble.grove.modra.org
State New
Headers show
Series [RS6000] biarch test fail | expand

Commit Message

Alan Modra Oct. 25, 2020, 11:25 a.m. UTC
I thought this one was worth at least commenting as to why it fails
when biarch testing.  OK?

	* gcc.target/powerpc/bswap64-4.c: Comment.

Comments

Segher Boessenkool Oct. 26, 2020, 6:43 p.m. UTC | #1
On Sun, Oct 25, 2020 at 09:55:32PM +1030, Alan Modra wrote:
> I thought this one was worth at least commenting as to why it fails
> when biarch testing.  OK?
> 
> 	* gcc.target/powerpc/bswap64-4.c: Comment.
> 
> diff --git a/gcc/testsuite/gcc.target/powerpc/bswap64-4.c b/gcc/testsuite/gcc.target/powerpc/bswap64-4.c
> index a3c05539652..11787000409 100644
> --- a/gcc/testsuite/gcc.target/powerpc/bswap64-4.c
> +++ b/gcc/testsuite/gcc.target/powerpc/bswap64-4.c
> @@ -7,6 +7,12 @@
>  /* { dg-final { scan-assembler-times "ldbrx" 1 { target has_arch_pwr7 } } } */
>  /* { dg-final { scan-assembler-times "stdbrx" 1 { target has_arch_pwr7 } } } */
>  
> +/* This test will fail when biarch testing with
> +   "RUNTESTFLAGS=--target_board=unix'{-m64,-m32}'" because the -m32 is
> +   added on the command line after the dg-options -mpowerpc64, and

That depends on your dejagnu version.  (That is also why we have
-mdejagnu-cpu=, same reason).

> +   common/config/rs6000/rs6000-common.c:rs6000_handle_option disables
> +   -mpowerpc64 for -m32.  */

Okay for trunk if you some words about dejagnu version.  Thanks!


Segher
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.target/powerpc/bswap64-4.c b/gcc/testsuite/gcc.target/powerpc/bswap64-4.c
index a3c05539652..11787000409 100644
--- a/gcc/testsuite/gcc.target/powerpc/bswap64-4.c
+++ b/gcc/testsuite/gcc.target/powerpc/bswap64-4.c
@@ -7,6 +7,12 @@ 
 /* { dg-final { scan-assembler-times "ldbrx" 1 { target has_arch_pwr7 } } } */
 /* { dg-final { scan-assembler-times "stdbrx" 1 { target has_arch_pwr7 } } } */
 
+/* This test will fail when biarch testing with
+   "RUNTESTFLAGS=--target_board=unix'{-m64,-m32}'" because the -m32 is
+   added on the command line after the dg-options -mpowerpc64, and
+   common/config/rs6000/rs6000-common.c:rs6000_handle_option disables
+   -mpowerpc64 for -m32.  */
+
 long long swap_load (long long *a) { return __builtin_bswap64 (*a); }
 long long swap_reg (long long a) { return __builtin_bswap64 (a); }
 void swap_store (long long *a, long long b) { *a = __builtin_bswap64 (b); }