aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2023-10-26 19:46:16 +0100
committerIain Sandoe <iain@sandoe.co.uk>2023-10-26 20:41:22 +0100
commit46f51bd73b77e572eb647eb56eddff663dd5e954 (patch)
tree0939bc140cb6c3048da0743624af2e6730a60748
parent8a1fcca7204a9bba97c7e5fe5d1641b378bfc2dd (diff)
downloadgcc-46f51bd73b77e572eb647eb56eddff663dd5e954.zip
gcc-46f51bd73b77e572eb647eb56eddff663dd5e954.tar.gz
gcc-46f51bd73b77e572eb647eb56eddff663dd5e954.tar.bz2
testsuite, aarch64: Normalise options to aarch64.exp.
When the compiler is configured --with-cpu= and that is different from the baselines assumed, we see excess tes fails (primarly in body code scans which are necessarily sensitive to costs). To stabilize the testsuite against such changes, use aarch64-with-arch-dg-options () to provide suitable consistent defaults. e.g. for --with-cpu=xgene1 we see over 100 excess fails which are removed by this change. gcc/testsuite/ChangeLog: * gcc.target/aarch64/aarch64.exp: Use aarch64-with-arch-dg-options to normaize the options to the tests in aarch64.exp. Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
-rw-r--r--gcc/testsuite/gcc.target/aarch64/aarch64.exp9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/testsuite/gcc.target/aarch64/aarch64.exp b/gcc/testsuite/gcc.target/aarch64/aarch64.exp
index bd306e3..7612ea7 100644
--- a/gcc/testsuite/gcc.target/aarch64/aarch64.exp
+++ b/gcc/testsuite/gcc.target/aarch64/aarch64.exp
@@ -37,9 +37,10 @@ if ![info exists DEFAULT_CFLAGS] then {
# Initialize `dg'.
dg-init
-# Main loop.
-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \
- "" $DEFAULT_CFLAGS
-
+aarch64-with-arch-dg-options "" {
+ # Main loop.
+ dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \
+ "" $DEFAULT_CFLAGS
+}
# All done.
dg-finish