public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [arm/testsuite]: Skip pr97969.c if -mthumb is not compatible [PR target/97969]
@ 2021-01-27  9:03 Christophe Lyon
  2021-02-03  9:01 ` Christophe Lyon
  0 siblings, 1 reply; 13+ messages in thread
From: Christophe Lyon @ 2021-01-27  9:03 UTC (permalink / raw)
  To: gcc Patches

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

Depending on how the toolchain is configured or how the testsuite is
executed, -mthumb may not be compatible. Like for other tests, skip
pr97969.c in this case.

For instance arm-linux-gnueabihf and -march=armv5t in RUNTESTFLAGS.

2021-01-27  Christophe Lyon  <christophe.lyon@linaro.org>

gcc/testsuite/
PR target/97969
* gcc.target/arm/pr97969.c: Skip if thumb mode is not available.

diff --git a/gcc/testsuite/gcc.target/arm/pr97969.c
b/gcc/testsuite/gcc.target/arm/pr97969.c
index 714a1d1..0b5d07f 100644
--- a/gcc/testsuite/gcc.target/arm/pr97969.c
+++ b/gcc/testsuite/gcc.target/arm/pr97969.c
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
 /* { dg-options "-std=c99 -fno-omit-frame-pointer -mthumb -w -Os" } */

 typedef a[23];

[-- Attachment #2: pr97969.testcase.patch --]
[-- Type: text/x-patch, Size: 880 bytes --]

[arm/testsuite]: Skip pr97969.c if -mthumb is not compatible [PR target/97969]

Depending on how the toolchain is configured or how the testsuite is
executed, -mthumb may not be compatible. Like for other tests, skip
pr97969.c in this case.

For instance arm-linux-gnueabihf and -march=armv5t in RUNTESTFLAGS.

2021-01-27  Christophe Lyon  <christophe.lyon@linaro.org>

	gcc/testsuite/
	PR target/97969
	* gcc.target/arm/pr97969.c: Skip if thumb mode is not available.

diff --git a/gcc/testsuite/gcc.target/arm/pr97969.c b/gcc/testsuite/gcc.target/arm/pr97969.c
index 714a1d1..0b5d07f 100644
--- a/gcc/testsuite/gcc.target/arm/pr97969.c
+++ b/gcc/testsuite/gcc.target/arm/pr97969.c
@@ -1,4 +1,5 @@
 /* { dg-do compile } */
+/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
 /* { dg-options "-std=c99 -fno-omit-frame-pointer -mthumb -w -Os" } */
 
 typedef a[23];

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2021-06-03  8:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-27  9:03 [arm/testsuite]: Skip pr97969.c if -mthumb is not compatible [PR target/97969] Christophe Lyon
2021-02-03  9:01 ` Christophe Lyon
2021-03-01 15:26   ` Christophe Lyon
2021-03-02 16:19     ` Richard Earnshaw
2021-03-02 16:25       ` Richard Earnshaw
2021-03-02 18:10         ` Christophe Lyon
2021-03-02 18:14           ` Richard Earnshaw
2021-03-02 18:17             ` Richard Earnshaw
2021-03-02 18:35               ` Christophe Lyon
2021-03-03 14:00                 ` Richard Earnshaw
2021-03-15 16:03                   ` Christophe Lyon
2021-06-03  8:38                     ` Christophe Lyon
2021-06-03  8:39                       ` Christophe Lyon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).