From b0c990f2661a2979c68c840781847efe27a0779b Mon Sep 17 00:00:00 2001 From: Christophe Lyon Date: Mon, 21 Sep 2020 15:51:48 +0000 Subject: [PATCH] [arm] gcc.target/arm/cs*: Use dg-add-options arm_arch_v8_1m_main 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 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 b9928493862..255e6e89f50 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 6b5383aa913..28450a4c6c2 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 e48606265af..cf3df13e7e4 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)