diff options
author | Joel Brobecker <brobecker@adacore.com> | 2020-12-31 21:38:03 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2021-01-01 02:13:20 -0300 |
commit | 43dcbb07d29128321f9ffbde2b34635819bb5ac0 (patch) | |
tree | d4ffe455b93c4881a9a92e7c0dab862d4e577e23 /gcc | |
parent | a210519cdde186f28ce9c906eb855c6b635ab25a (diff) | |
download | gcc-43dcbb07d29128321f9ffbde2b34635819bb5ac0.zip gcc-43dcbb07d29128321f9ffbde2b34635819bb5ac0.tar.gz gcc-43dcbb07d29128321f9ffbde2b34635819bb5ac0.tar.bz2 |
disable some aapcs/vfp*.c test if not arm_fp16_alternative_ok
The tests use -mfp16-format=alternative, and so should not be run
if that option isn't supported.
for gcc/testsuite/ChangeLog
* lib/target-supports.exp
(check_effective_target_arm_fp16_alternative_ok_nocache):
Return zero for *-*-vxworks7r* targets.
* gcc.target/arm/aapcs/vfp22.c: Require arm_fp16_alternative_ok.
* gcc.target/arm/aapcs/vfp23.c: Likewise.
* gcc.target/arm/aapcs/vfp24.c: Likewise.
* gcc.target/arm/aapcs/vfp25.c: Likewise.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.target/arm/aapcs/vfp22.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/aapcs/vfp23.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/aapcs/vfp24.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/aapcs/vfp25.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 4 |
5 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/arm/aapcs/vfp22.c b/gcc/testsuite/gcc.target/arm/aapcs/vfp22.c index 1944bb5..fc22792 100644 --- a/gcc/testsuite/gcc.target/arm/aapcs/vfp22.c +++ b/gcc/testsuite/gcc.target/arm/aapcs/vfp22.c @@ -3,6 +3,7 @@ /* { dg-do run { target arm_eabi } } */ /* { dg-require-effective-target arm_hard_vfp_ok } */ /* { dg-require-effective-target arm_fp16_hw } */ +/* { dg-require-effective-target arm_fp16_alternative_ok } */ /* { dg-add-options arm_fp16_alternative } */ #ifndef IN_FRAMEWORK diff --git a/gcc/testsuite/gcc.target/arm/aapcs/vfp23.c b/gcc/testsuite/gcc.target/arm/aapcs/vfp23.c index bcacf9f..469aabd 100644 --- a/gcc/testsuite/gcc.target/arm/aapcs/vfp23.c +++ b/gcc/testsuite/gcc.target/arm/aapcs/vfp23.c @@ -3,6 +3,7 @@ /* { dg-do run { target arm_eabi } } */ /* { dg-require-effective-target arm_hard_vfp_ok } */ /* { dg-require-effective-target arm_fp16_hw } */ +/* { dg-require-effective-target arm_fp16_alternative_ok } */ /* { dg-add-options arm_fp16_alternative } */ #ifndef IN_FRAMEWORK diff --git a/gcc/testsuite/gcc.target/arm/aapcs/vfp24.c b/gcc/testsuite/gcc.target/arm/aapcs/vfp24.c index ef36bb7..80a4682 100644 --- a/gcc/testsuite/gcc.target/arm/aapcs/vfp24.c +++ b/gcc/testsuite/gcc.target/arm/aapcs/vfp24.c @@ -3,6 +3,7 @@ /* { dg-do run { target arm_eabi } } */ /* { dg-require-effective-target arm_hard_vfp_ok } */ /* { dg-require-effective-target arm_fp16_hw } */ +/* { dg-require-effective-target arm_fp16_alternative_ok } */ /* { dg-add-options arm_fp16_alternative } */ #ifndef IN_FRAMEWORK diff --git a/gcc/testsuite/gcc.target/arm/aapcs/vfp25.c b/gcc/testsuite/gcc.target/arm/aapcs/vfp25.c index 3c796ca..649c175 100644 --- a/gcc/testsuite/gcc.target/arm/aapcs/vfp25.c +++ b/gcc/testsuite/gcc.target/arm/aapcs/vfp25.c @@ -3,6 +3,7 @@ /* { dg-do run { target arm_eabi } } */ /* { dg-require-effective-target arm_hard_vfp_ok } */ /* { dg-require-effective-target arm_fp16_hw } */ +/* { dg-require-effective-target arm_fp16_alternative_ok } */ /* { dg-add-options arm_fp16_alternative } */ #ifndef IN_FRAMEWORK diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 7cad035..9149767 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -4367,6 +4367,10 @@ proc add_options_for_aarch64_sve { flags } { # set et_arm_neon_fp16_flags to the best options to add. proc check_effective_target_arm_fp16_alternative_ok_nocache { } { + if { [istarget *-*-vxworks7*] } { + # Not supported by the target system. + return 0 + } global et_arm_neon_fp16_flags set et_arm_neon_fp16_flags "" if { [check_effective_target_arm32] } { |