From: Christophe Lyon Date: Fri, 12 Feb 2021 14:14:45 +0000 (+0000) Subject: testsuite, arm: Add -mthumb to pr98931.c [PR target/98931] X-Git-Tag: upstream/12.2.0~9743 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=71b8ed7c61bc6f80df41f9aa3cf9eb57fb664e77;p=platform%2Fupstream%2Fgcc.git testsuite, arm: Add -mthumb to pr98931.c [PR target/98931] This test forces -march=armv8.1-m.main, which supports only Thumb mode. However, if the toolchain is not configured --with-thumb, the test fails with: error: target CPU does not support ARM mode Adding -mthumb to dg-options fixes the problem. 2021-02-12 Christophe Lyon PR target/98931 gcc/testsuite/ * gcc.target/arm/pr98931.c: Add -mthumb --- diff --git a/gcc/testsuite/gcc.target/arm/pr98931.c b/gcc/testsuite/gcc.target/arm/pr98931.c index 313876a..66070ad 100644 --- a/gcc/testsuite/gcc.target/arm/pr98931.c +++ b/gcc/testsuite/gcc.target/arm/pr98931.c @@ -1,6 +1,6 @@ /* { dg-do assemble } */ /* { dg-skip-if "avoid conflicting multilib options" { *-*-* } { "-marm" "-mcpu=*" } } */ -/* { dg-options "-march=armv8.1-m.main -O3 --param=max-completely-peeled-insns=1300 --save-temps" } */ +/* { dg-options "-march=armv8.1-m.main -O3 --param=max-completely-peeled-insns=1300 --save-temps -mthumb" } */ extern long long a[][20][26][26][22];