From 918f16826666b9b9056ab5c4253da3c8714f88b2 Mon Sep 17 00:00:00 2001 From: Segher Boessenkool Date: Fri, 15 May 2020 16:41:28 +0000 Subject: [PATCH] rs6000/testsuite: Don't use powerpc64 effective target The powerpc64 effective target unfortunately does not mean the target has 64-bit instructions enabled (i.e., -mpowerpc64): instead, it means that the assembler supports it. Let's use the lp64 effective target instead for these tests. 2020-05-15 Segher Boessenkool gcc/testsuite/ * gcc.target/powerpc/cntlzdm-0.c: Use lp64 instead of powerpc64. * gcc.target/powerpc/cntlzdm-1.c: Ditto. * gcc.target/powerpc/cnttzdm-1.c: Ditto. * gcc.target/powerpc/pdep-0.c: Ditto. * gcc.target/powerpc/pdep-1.c: Ditto. * gcc.target/powerpc/pextd-0.c: Ditto. * gcc.target/powerpc/pextd-1.c: Ditto. --- gcc/testsuite/ChangeLog | 10 ++++++++++ gcc/testsuite/gcc.target/powerpc/cntlzdm-0.c | 2 +- gcc/testsuite/gcc.target/powerpc/cntlzdm-1.c | 2 +- gcc/testsuite/gcc.target/powerpc/cnttzdm-1.c | 2 +- gcc/testsuite/gcc.target/powerpc/pdep-0.c | 2 +- gcc/testsuite/gcc.target/powerpc/pdep-1.c | 2 +- gcc/testsuite/gcc.target/powerpc/pextd-0.c | 2 +- gcc/testsuite/gcc.target/powerpc/pextd-1.c | 2 +- 8 files changed, 17 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5be1848129e..d247f90baa0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2020-05-15 Segher Boessenkool + + * gcc.target/powerpc/cntlzdm-0.c: Use lp64 instead of powerpc64. + * gcc.target/powerpc/cntlzdm-1.c: Ditto. + * gcc.target/powerpc/cnttzdm-1.c: Ditto. + * gcc.target/powerpc/pdep-0.c: Ditto. + * gcc.target/powerpc/pdep-1.c: Ditto. + * gcc.target/powerpc/pextd-0.c: Ditto. + * gcc.target/powerpc/pextd-1.c: Ditto. + 2020-05-15 Segher Boessenkool * gcc.target/powerpc/pdep-0.c: Change -mcpu= to -mdejagnu-cpu=. diff --git a/gcc/testsuite/gcc.target/powerpc/cntlzdm-0.c b/gcc/testsuite/gcc.target/powerpc/cntlzdm-0.c index 8cdd261c0a7..45e7d78e636 100644 --- a/gcc/testsuite/gcc.target/powerpc/cntlzdm-0.c +++ b/gcc/testsuite/gcc.target/powerpc/cntlzdm-0.c @@ -1,4 +1,4 @@ -/* { dg-require-effective-target powerpc64 } */ +/* { dg-require-effective-target lp64 } */ /* { dg-options "-mdejagnu-cpu=future" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.target/powerpc/cntlzdm-1.c b/gcc/testsuite/gcc.target/powerpc/cntlzdm-1.c index d5a087f9119..3239c386bb7 100644 --- a/gcc/testsuite/gcc.target/powerpc/cntlzdm-1.c +++ b/gcc/testsuite/gcc.target/powerpc/cntlzdm-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target powerpc_future_hw } */ -/* { dg-require-effective-target powerpc64 } */ +/* { dg-require-effective-target lp64 } */ /* { dg-options "-mdejagnu-cpu=future" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.target/powerpc/cnttzdm-1.c b/gcc/testsuite/gcc.target/powerpc/cnttzdm-1.c index cb119761659..d04b1192d15 100644 --- a/gcc/testsuite/gcc.target/powerpc/cnttzdm-1.c +++ b/gcc/testsuite/gcc.target/powerpc/cnttzdm-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target powerpc_future_hw } */ -/* { dg-require-effective-target powerpc64 } */ +/* { dg-require-effective-target lp64 } */ /* { dg-options "-mdejagnu-cpu=future" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.target/powerpc/pdep-0.c b/gcc/testsuite/gcc.target/powerpc/pdep-0.c index bdf90dd8e37..b75b2a85229 100644 --- a/gcc/testsuite/gcc.target/powerpc/pdep-0.c +++ b/gcc/testsuite/gcc.target/powerpc/pdep-0.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-require-effective-target powerpc64 } */ +/* { dg-require-effective-target lp64 } */ /* { dg-options "-mdejagnu-cpu=future" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.target/powerpc/pdep-1.c b/gcc/testsuite/gcc.target/powerpc/pdep-1.c index 62eb6b25310..e2c7615ca34 100644 --- a/gcc/testsuite/gcc.target/powerpc/pdep-1.c +++ b/gcc/testsuite/gcc.target/powerpc/pdep-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target powerpc_future_hw } */ -/* { dg-require-effective-target powerpc64 } */ +/* { dg-require-effective-target lp64 } */ /* { dg-options "-mdejagnu-cpu=future" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.target/powerpc/pextd-0.c b/gcc/testsuite/gcc.target/powerpc/pextd-0.c index 1a8ccadc284..47a230d72f3 100644 --- a/gcc/testsuite/gcc.target/powerpc/pextd-0.c +++ b/gcc/testsuite/gcc.target/powerpc/pextd-0.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-require-effective-target powerpc64 } */ +/* { dg-require-effective-target lp64 } */ /* { dg-options "-mdejagnu-cpu=future" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.target/powerpc/pextd-1.c b/gcc/testsuite/gcc.target/powerpc/pextd-1.c index 462af98353a..004d2dd7e43 100644 --- a/gcc/testsuite/gcc.target/powerpc/pextd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/pextd-1.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target powerpc_future_hw } */ -/* { dg-require-effective-target powerpc64 } */ +/* { dg-require-effective-target lp64 } */ /* { dg-options "-mdejagnu-cpu=future" } */ extern void abort (void); -- 2.30.2