1 # Assembly-based regression-test driver for the SVE ACLE
2 # Copyright (C) 2009-2023 Free Software Foundation, Inc.
4 # This file is part of GCC.
6 # GCC is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 3, or (at your option)
11 # GCC is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GCC; see the file COPYING3. If not see
18 # <http://www.gnu.org/licenses/>. */
20 # GCC testsuite that uses the `dg.exp' driver.
22 # Exit immediately if this isn't an AArch64 target.
23 if {![istarget aarch64*-*-*] } {
33 # Force SVE if we're not testing it already.
34 if { [check_effective_target_aarch64_sve] } {
37 set sve_flags "-march=armv8.2-a+sve"
40 # Turn off any codegen tweaks by default that may affect expected assembly.
41 # Tests relying on those should turn them on explicitly.
42 set sve_flags "$sve_flags -mtune=generic -moverride=tune=none"
44 global gcc_runtest_parallelize_limit_minor
45 if { [info exists gcc_runtest_parallelize_limit_minor] } {
46 set old_limit_minor $gcc_runtest_parallelize_limit_minor
47 set gcc_runtest_parallelize_limit_minor 1
56 "-std=gnu90 -O2 -fno-schedule-insns -DCHECK_ASM --save-temps"
57 "-std=gnu99 -Ofast -g"
65 set files [glob -nocomplain $srcdir/$subdir/asm/*.c]
66 set save-dg-do-what-default ${dg-do-what-default}
67 if { [check_effective_target_aarch64_asm_sve_ok]
68 && [check_effective_target_aarch64_variant_pcs] } {
69 set dg-do-what-default assemble
71 set dg-do-what-default compile
73 gcc-dg-runtest [lsort $files] "" "$sve_flags -fno-ipa-icf"
74 set dg-do-what-default ${save-dg-do-what-default}
78 if { [info exists gcc_runtest_parallelize_limit_minor] } {
79 set gcc_runtest_parallelize_limit_minor $old_limit_minor