testsuite, rs6000: Remove powerpc_popcntb_ok
Checks
Context |
Check |
Description |
linaro-tcwg-bot/tcwg_gcc_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gcc_check--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_gcc_check--master-arm |
success
|
Testing passed
|
Commit Message
Hi,
There are three uses of effective target powerpc_popcntb_ok,
they are all for compiling, but powerpc_popcntb_ok checks
for executable generation, which is too heavy. This patch
is to remove powerpc_popcntb_ok and adjust its three uses
accordingly.
Regtested on powerpc64-linux-gnu P8/P9 and
powerpc64le-linux-gnu P9 and P10.
I'm going to push this soon if no objections.
BR,
Kewen
-----
gcc/testsuite/ChangeLog:
* lib/target-supports.exp (check_effective_target_powerpc_popcntb_ok):
Remove.
* gcc.target/powerpc/cmpb-2.c: Adjust with dg-skip-if as
powerpc_popcntb_ok gets removed.
* gcc.target/powerpc/cmpb-3.c: Likewise.
* gcc.target/powerpc/cmpb32-2.c: Likewise.
---
gcc/testsuite/gcc.target/powerpc/cmpb-2.c | 3 ++-
gcc/testsuite/gcc.target/powerpc/cmpb-3.c | 3 ++-
gcc/testsuite/gcc.target/powerpc/cmpb32-2.c | 3 ++-
gcc/testsuite/lib/target-supports.exp | 20 --------------------
4 files changed, 6 insertions(+), 23 deletions(-)
--
2.39.1
@@ -1,6 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
+/* Skip powerpc*-*-darwin* powerpc-*-eabi as dropped popcntb_ok. */
+/* { dg-skip-if "" { powerpc*-*-darwin* powerpc-*-eabi } } */
/* { dg-require-effective-target lp64 } */
-/* { dg-require-effective-target powerpc_popcntb_ok } */
/* { dg-options "-mdejagnu-cpu=power5" } */
void abort ();
@@ -1,6 +1,7 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
+/* Skip powerpc*-*-darwin* powerpc-*-eabi as dropped popcntb_ok. */
+/* { dg-skip-if "" { powerpc*-*-darwin* powerpc-*-eabi } } */
/* { dg-require-effective-target ilp32 } */
-/* { dg-require-effective-target powerpc_popcntb_ok } */
/* { dg-options "-mdejagnu-cpu=power6" } */
void abort ();
@@ -1,5 +1,6 @@
/* { dg-do compile { target { powerpc*-*-* } } } */
-/* { dg-require-effective-target powerpc_popcntb_ok } */
+/* Skip powerpc*-*-darwin* powerpc-*-eabi as dropped popcntb_ok. */
+/* { dg-skip-if "" { powerpc*-*-darwin* powerpc-*-eabi } } */
/* { dg-options "-mdejagnu-cpu=power5" } */
void abort ();
@@ -3952,26 +3952,6 @@ proc check_effective_target_unsigned_char {} {
}]
}
-proc check_effective_target_powerpc_popcntb_ok { } {
- return [check_cached_effective_target powerpc_popcntb_ok {
-
- # Disable on Darwin.
- if { [istarget powerpc-*-eabi] || [istarget powerpc*-*-eabispe] || [istarget *-*-darwin*]} {
- expr 0
- } else {
- check_runtime_nocache powerpc_popcntb_ok {
- volatile int r;
- volatile int a = 0x12345678;
- int main()
- {
- asm volatile ("popcntb %0,%1" : "=r" (r) : "r" (a));
- return 0;
- }
- } "-mcpu=power5"
- }
- }]
-}
-
# Return 1 if the target supports executing DFP hardware instructions,
# 0 otherwise. Cache the result.