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>
This commit is contained in:
Iain Sandoe 2023-10-26 19:46:16 +01:00
parent 8a1fcca720
commit 46f51bd73b

View file

@ -37,9 +37,10 @@ if ![info exists DEFAULT_CFLAGS] then {
# Initialize `dg'. # Initialize `dg'.
dg-init dg-init
# Main loop. aarch64-with-arch-dg-options "" {
dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \ # Main loop.
"" $DEFAULT_CFLAGS dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.\[cCS\]]] \
"" $DEFAULT_CFLAGS
}
# All done. # All done.
dg-finish dg-finish