These testcases need thumb mode, which may not be the default. Using dg-add-options arm_arch_v8_1m_main ensures that -mthumb is used and makes the test pass in more configurations.
2020-09-21 Christophe Lyon <christophe.l...@linaro.org> gcc/testsuite/ * gcc.target/arm/csinc-1.c: Use dg-add-options arm_arch_v8_1m_main. * gcc.target/arm/csinv-1.c: Likewise. * gcc.target/arm/csneg.c: Likewise. --- gcc/testsuite/gcc.target/arm/csinc-1.c | 3 ++- gcc/testsuite/gcc.target/arm/csinv-1.c | 3 ++- gcc/testsuite/gcc.target/arm/csneg.c | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/gcc.target/arm/csinc-1.c b/gcc/testsuite/gcc.target/arm/csinc-1.c index b992849..255e6e8 100644 --- a/gcc/testsuite/gcc.target/arm/csinc-1.c +++ b/gcc/testsuite/gcc.target/arm/csinc-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_arch_v8_1m_main_ok } */ -/* { dg-options "-O2 -march=armv8.1-m.main" } */ +/* { dg-options "-O2" } */ +/* { dg-add-options arm_arch_v8_1m_main } */ int test_csinc32_condasn1(int w0, int w1, int w2, int w3) diff --git a/gcc/testsuite/gcc.target/arm/csinv-1.c b/gcc/testsuite/gcc.target/arm/csinv-1.c index 6b5383a..28450a4 100644 --- a/gcc/testsuite/gcc.target/arm/csinv-1.c +++ b/gcc/testsuite/gcc.target/arm/csinv-1.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_arch_v8_1m_main_ok } */ -/* { dg-options "-O2 -march=armv8.1-m.main" } */ +/* { dg-options "-O2" } */ +/* { dg-add-options arm_arch_v8_1m_main } */ int test_csinv32_condasn1(int w0, int w1, int w2, int w3) diff --git a/gcc/testsuite/gcc.target/arm/csneg.c b/gcc/testsuite/gcc.target/arm/csneg.c index e486062..cf3df13 100644 --- a/gcc/testsuite/gcc.target/arm/csneg.c +++ b/gcc/testsuite/gcc.target/arm/csneg.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target arm_arch_v8_1m_main_ok } */ -/* { dg-options "-O2 -march=armv8.1-m.main" } */ +/* { dg-options "-O2" } */ +/* { dg-add-options arm_arch_v8_1m_main } */ int test_csneg32_condasn1(int w0, int w1, int w2, int w3) -- 2.7.4