diff options
author | Richard Earnshaw <rearnsha@arm.com> | 2023-11-08 11:10:33 +0000 |
---|---|---|
committer | Richard Earnshaw <rearnsha@arm.com> | 2023-11-13 14:15:57 +0000 |
commit | a6ac36d80a072639cc7029fc24c7c0f2c3e2fb7c (patch) | |
tree | 8065e76b9753d628ce95b9f4b94d2fe75e913a0c /gcc | |
parent | 1fb74401508b64f7ba597a54c8a6b68d0a1b761c (diff) | |
download | gcc-a6ac36d80a072639cc7029fc24c7c0f2c3e2fb7c.zip gcc-a6ac36d80a072639cc7029fc24c7c0f2c3e2fb7c.tar.gz gcc-a6ac36d80a072639cc7029fc24c7c0f2c3e2fb7c.tar.bz2 |
arm: testsuite: improve compatibility of gcc.dg/debug/pr57351.c
This test is arm specific and requires neon. To improve compatibility
add a new test for armv7-a with neon and use that.
gcc/testsuite:
* lib/target-supports.exp (v7a_neon): New feature-test target.
* gcc.dg/debug/pr57351.c: Use it.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/gcc.dg/debug/pr57351.c | 7 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 1 |
2 files changed, 4 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.dg/debug/pr57351.c b/gcc/testsuite/gcc.dg/debug/pr57351.c index 236d74d..50861a4 100644 --- a/gcc/testsuite/gcc.dg/debug/pr57351.c +++ b/gcc/testsuite/gcc.dg/debug/pr57351.c @@ -1,8 +1,7 @@ /* { dg-do compile } */ -/* { dg-require-effective-target arm_neon } */ -/* { dg-require-effective-target arm_arch_v7a_ok } */ -/* { dg-options "-std=c99 -Os -g -march=armv7-a" } */ -/* { dg-add-options arm_neon } */ +/* { dg-require-effective-target arm_arch_v7a_neon_ok } */ +/* { dg-options "-std=c99 -Os -g" } */ +/* { dg-add-options arm_arch_v7a_neon } */ typedef unsigned int size_t; typedef int ptrdiff_t; diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index ae43dc9..43a040e 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -5425,6 +5425,7 @@ foreach { armfunc armflag armdefs } { v6m "-march=armv6-m -mthumb -mfloat-abi=soft" __ARM_ARCH_6M__ v7a "-march=armv7-a+fp" __ARM_ARCH_7A__ v7a_arm "-march=armv7-a+fp -marm" "__ARM_ARCH_7A__ && !__thumb__" + v7a_neon "-march=armv7-a+simd -mfpu=auto -mfloat-abi=softfp" "__ARM_ARCH_7A__ && __ARM_NEON__" v7r "-march=armv7-r+fp" __ARM_ARCH_7R__ v7m "-march=armv7-m -mthumb -mfloat-abi=soft" __ARM_ARCH_7M__ v7em "-march=armv7e-m+fp -mthumb" __ARM_ARCH_7EM__ |