diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2023-11-06 15:26:20 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@arm.com> | 2023-11-13 14:15:56 +0000 |
commit | 5bc424925a3678d7821ab3512f49a66e98085768 (patch) | |
tree | f18fc2bf26fff2da072210d7a1f8a3f572a5e14d | |
parent | b9bed256c9772bcc13de6760919ecc963b865c32 (diff) | |
download | gcc-5bc424925a3678d7821ab3512f49a66e98085768.zip gcc-5bc424925a3678d7821ab3512f49a66e98085768.tar.gz gcc-5bc424925a3678d7821ab3512f49a66e98085768.tar.bz2 |
arm: testsuite: improve compatibility of gcc.target/arm/macro_defs*.c
Convert these tests to use dg-add-options for increased compatibilty.
Since they also result in an empty translation unit, override the
default testsuite options.
gcc/testsuite:
* gcc.target/arm/macro_defs0.c: Use dg-effective-target and
dg-add-options.
* gcc.target/arm/macro_defs1.c: Likewise.
* gcc.target/arm/macro_defs2.c: Likewise.
-rw-r--r-- | gcc/testsuite/gcc.target/arm/macro_defs0.c | 7 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/macro_defs1.c | 6 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/arm/macro_defs2.c | 6 |
3 files changed, 7 insertions, 12 deletions
diff --git a/gcc/testsuite/gcc.target/arm/macro_defs0.c b/gcc/testsuite/gcc.target/arm/macro_defs0.c index 684d49f..17fd157 100644 --- a/gcc/testsuite/gcc.target/arm/macro_defs0.c +++ b/gcc/testsuite/gcc.target/arm/macro_defs0.c @@ -1,8 +1,7 @@ /* { dg-do compile } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-march=*" } { "-march=armv7-m" } } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-mfloat-abi=*" } { "-mfloat-abi=soft" } } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" } { "" } } */ -/* { dg-options "-march=armv7-m -mcpu=cortex-m3 -mfloat-abi=soft -mthumb" } */ +/* { dg-require-effective-target arm_arch_v7m_ok } */ +/* { dg-options "" } */ +/* { dg-add-options arm_arch_v7m } */ #ifdef __ARM_FP #error __ARM_FP should not be defined diff --git a/gcc/testsuite/gcc.target/arm/macro_defs1.c b/gcc/testsuite/gcc.target/arm/macro_defs1.c index 655ba93..bd22154 100644 --- a/gcc/testsuite/gcc.target/arm/macro_defs1.c +++ b/gcc/testsuite/gcc.target/arm/macro_defs1.c @@ -1,10 +1,8 @@ /* { dg-do compile } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-march=*" } { "-march=armv6-m" } } */ -/* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" } { "" } } */ /* { dg-require-effective-target arm_arch_v6m_ok } */ -/* { dg-options "-march=armv6-m -mthumb" } */ +/* { dg-options "" } */ +/* { dg-add-options arm_arch_v6m } */ #ifdef __ARM_NEON_FP #error __ARM_NEON_FP should not be defined #endif - diff --git a/gcc/testsuite/gcc.target/arm/macro_defs2.c b/gcc/testsuite/gcc.target/arm/macro_defs2.c index 9a96042..a26fc23 100644 --- a/gcc/testsuite/gcc.target/arm/macro_defs2.c +++ b/gcc/testsuite/gcc.target/arm/macro_defs2.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ -/* { dg-options "-march=armv7ve -mcpu=cortex-a15 -mfpu=neon-vfpv4" } */ -/* { dg-add-options arm_neon } */ /* { dg-require-effective-target arm_neon_ok } */ +/* { dg-options "" } */ +/* { dg-add-options arm_neon } */ #ifndef __ARM_NEON_FP #error __ARM_NEON_FP is not defined but should be @@ -10,5 +10,3 @@ #ifndef __ARM_FP #error __ARM_FP is not defined but should be #endif - - |