From 7e703f42b0d9d80c185c720e3c25b6b5aa7cf2fc Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Fri, 4 Feb 2022 10:08:58 -0500 Subject: [PATCH] testsuite: -mbig/-mlittle only is valid for powerpc-linux. A recent change to some powerpc tests added explicit -mbig and -mlittle options, but those options are not valid outside of powerpc-linux. This patch updates the testcase options to enable -mbig when valid and to only use -mlittle for powerpc-linux. gcc/testsuite/ChangeLog: * gcc.target/powerpc/builtins-1.c: Limit -mbig. * gcc.target/powerpc/vsu/vec-cntlz-lsbb-0.c: Limit -mbig. * gcc.target/powerpc/vsu/vec-cntlz-lsbb-1.c: Limit -mbig. * gcc.target/powerpc/vsu/vec-cntlz-lsbb-2.c: Remove target selector. * gcc.target/powerpc/vsu/vec-cntlz-lsbb-3.c: Only powerpc*-linux. * gcc.target/powerpc/vsu/vec-cntlz-lsbb-4.c: Only powerpc*-linux*. * gcc.target/powerpc/vsu/vec-cnttz-lsbb-0.c: Limit -mbig. * gcc.target/powerpc/vsu/vec-cnttz-lsbb-1.c: Limit -mbig. * gcc.target/powerpc/vsu/vec-cnttz-lsbb-2.c: Remove target selector. * gcc.target/powerpc/vsu/vec-cnttz-lsbb-3.c: Only powerpc*-linux*. * gcc.target/powerpc/vsu/vec-cnttz-lsbb-4.c: Only powerpc*-linux*. --- gcc/testsuite/gcc.target/powerpc/builtins-1.c | 3 ++- gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-0.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-2.c | 2 +- gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-3.c | 2 +- gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-4.c | 2 +- gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-0.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-2.c | 2 +- gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-3.c | 2 +- gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-4.c | 2 +- 11 files changed, 20 insertions(+), 15 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-1.c b/gcc/testsuite/gcc.target/powerpc/builtins-1.c index ffa95ed..28cd1aa 100644 --- a/gcc/testsuite/gcc.target/powerpc/builtins-1.c +++ b/gcc/testsuite/gcc.target/powerpc/builtins-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ -/* { dg-options "-mdejagnu-cpu=power8 -O2 -mbig" } */ +/* { dg-options "-mdejagnu-cpu=power8 -O2" } */ +/* { dg-additional-options "-mbig" { target powerpc64le-*-* } } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-0.c b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-0.c index dc92d6f..f430152 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-0.c +++ b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-0.c @@ -1,6 +1,7 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ -/* { dg-options "-mdejagnu-cpu=power9 -mbig" } */ +/* { dg-options "-mdejagnu-cpu=power9" } */ +/* { dg-additional-options "-mbig" { target powerpc64le-*-* } } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-1.c b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-1.c index 6fefb89..b0e4bee 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-1.c @@ -1,6 +1,7 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ -/* { dg-options "-mdejagnu-cpu=power9 -mbig" } */ +/* { dg-options "-mdejagnu-cpu=power9" } */ +/* { dg-additional-options "-mbig" { target powerpc64le-*-* } } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-2.c b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-2.c index dd0d337..892a078 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-2.c +++ b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-2.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-3.c b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-3.c index 6ee31a1..c817118 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-3.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile { target { powerpc*-*-linux* } } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -mlittle" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-4.c b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-4.c index 6105091..c45048e 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-4.c +++ b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cntlz-lsbb-4.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile { target { powerpc*-*-linux* } } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -mlittle" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-0.c b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-0.c index 68d6c5f..9f30719 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-0.c +++ b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-0.c @@ -1,6 +1,7 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ -/* { dg-options "-mdejagnu-cpu=power9 -mbig" } */ +/* { dg-options "-mdejagnu-cpu=power9" } */ +/* { dg-additional-options "-mbig" { target powerpc64le-*-* } } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-1.c b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-1.c index f971ea0..703f8fe 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-1.c @@ -1,6 +1,7 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ -/* { dg-options "-mdejagnu-cpu=power9 -mbig" } */ +/* { dg-options "-mdejagnu-cpu=power9" } */ +/* { dg-additional-options "-mbig" { target powerpc64le-*-* } } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-2.c b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-2.c index 22c55ef..f0c380d 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-2.c +++ b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-2.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-3.c b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-3.c index a9245d8..844fb5d 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-3.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile { target { powerpc*-*-linux* } } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -mlittle" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-4.c b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-4.c index 71fea53..7b05f77 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-4.c +++ b/gcc/testsuite/gcc.target/powerpc/vsu/vec-cnttz-lsbb-4.c @@ -1,4 +1,4 @@ -/* { dg-do compile { target { powerpc*-*-* } } } */ +/* { dg-do compile { target { powerpc*-*-linux* } } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -mlittle" } */ -- 2.7.4