From: Joel Brobecker Date: Fri, 1 Jan 2021 00:38:03 +0000 (-0300) Subject: disable some aapcs/vfp*.c test if not arm_fp16_alternative_ok X-Git-Tag: upstream/12.2.0~10553 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=43dcbb07d29128321f9ffbde2b34635819bb5ac0;p=platform%2Fupstream%2Fgcc.git 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. --- 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] } {