test/rs6000: Replace test targets p8 and p9+

This patch is to clean existing rs6000 test targets p8 and p9+
with existing has_arch_pwr8 and has_arch_pwr9 targets combination
or only one of them.

gcc/testsuite/ChangeLog:

	* gcc.target/powerpc/pr92398.p9+.c: Replace p9+ with has_arch_pwr9.
	* gcc.target/powerpc/pr92398.p9-.c: Replace p9+ with has_arch_pwr9,
	and replace p8 with has_arch_pwr8 && !has_arch_pwr9.
	* lib/target-supports.exp (check_effective_target_p8): Remove.
	(check_effective_target_p9+): Remove.
This commit is contained in:
Kewen Lin 2020-09-03 21:58:39 -05:00 committed by Kewen Lin
parent 6e82b6cfcf
commit e1336703f8
3 changed files with 3 additions and 23 deletions

View File

@ -1,4 +1,4 @@
/* { dg-do compile { target { lp64 && p9+ } } } */
/* { dg-do compile { target { lp64 && has_arch_pwr9 } } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -mvsx" } */

View File

@ -1,9 +1,9 @@
/* { dg-do compile { target { lp64 && {! p9+} } } } */
/* { dg-do compile { target { lp64 && {! has_arch_pwr9} } } } */
/* { dg-require-effective-target powerpc_vsx_ok } */
/* { dg-options "-O2 -mvsx" } */
/* { dg-final { scan-assembler-times {\mnot\M} 2 { xfail be } } } */
/* { dg-final { scan-assembler-times {\mstd\M} 2 { xfail { p8 && be } } } } */
/* { dg-final { scan-assembler-times {\mstd\M} 2 { xfail { { {! has_arch_pwr9} && has_arch_pwr8 } && be } } } } */
/* Source code for the test in pr92398.h */
#include "pr92398.h"

View File

@ -2687,26 +2687,6 @@ proc check_effective_target_le { } {
}]
}
# Return 1 if we're generating code for only power8 platforms.
proc check_effective_target_p8 { } {
return [check_no_compiler_messages_nocache p8 assembly {
#if !(!defined(_ARCH_PWR9) && defined(_ARCH_PWR8))
#error NO
#endif
} ""]
}
# Return 1 if we're generating code for power9 or later platforms.
proc check_effective_target_p9+ { } {
return [check_no_compiler_messages_nocache p9+ assembly {
#if !(defined(_ARCH_PWR9))
#error NO
#endif
} ""]
}
# Return 1 if we're generating 32-bit code using default options, 0
# otherwise.