* [PATCH] testsuite: Fix FAIL for older ARM cores
@ 2020-10-02 10:42 Jonathan Wakely
0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2020-10-02 10:42 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 570 bytes --]
Since hard-float is not implemented for cores that only support thumb1
(and not thumb2) this test fails for configurations using hard float but
older -mcpu settings.
gcc/testsuite/ChangeLog:
* g++.dg/inherit/thunk10.C: Skip test for arm_hf_eabi if -mthumb
doesn't generate thumb2 instructions.
Tested x86_64-linux, and armv7l-linux-gnueabihf with
RUNTESTFLAGS='--target_board=unix\{,-mcpu=cortex-a9\}
No change for x86_64, for ARM this test goes from:
PASS: 8
UNRESOLVED: 4
FAIL: 4
to
UNSUPPORTED: 4
PASS: 8
OK for trunk?
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 937 bytes --]
commit ce743e1768c75445a9bf8e49d1116b4a7ce99cfc
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Fri Oct 2 11:30:51 2020
testsuite: Fix FAIL for older ARM cores
Since hard-float is not implemented for cores that only support thumb1
(and not thumb2) this test fails for configurations using hard float but
older -mcpu settings.
gcc/testsuite/ChangeLog:
* g++.dg/inherit/thunk10.C: Skip test for arm_hf_eabi if -mthumb
doesn't generate thumb2 instructions.
diff --git a/gcc/testsuite/g++.dg/inherit/thunk10.C b/gcc/testsuite/g++.dg/inherit/thunk10.C
index 702067749fa..0188436b6cd 100644
--- a/gcc/testsuite/g++.dg/inherit/thunk10.C
+++ b/gcc/testsuite/g++.dg/inherit/thunk10.C
@@ -1,4 +1,5 @@
/* { dg-options "-mthumb" { target arm*-*-* } } */
+/* { dg-skip-if "hf needs thumb2" { arm_hf_eabi && { ! arm_thumb2_ok } } } */
/* { dg-do run } */
/* { dg-timeout 100 } */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-02 10:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 10:42 [PATCH] testsuite: Fix FAIL for older ARM cores Jonathan Wakely
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).