]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.target/aarch64/sve/acle/aarch64-sve-acle-asm.exp
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / acle / aarch64-sve-acle-asm.exp
1 # Assembly-based regression-test driver for the SVE ACLE
2 # Copyright (C) 2009-2020 Free Software Foundation, Inc.
3 #
4 # This file is part of GCC.
5 #
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)
9 # any later version.
10 #
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.
15 #
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/>. */
19
20 # GCC testsuite that uses the `dg.exp' driver.
21
22 # Exit immediately if this isn't an AArch64 target.
23 if {![istarget aarch64*-*-*] } {
24 return
25 }
26
27 # Load support procs.
28 load_lib gcc-dg.exp
29
30 # Initialize `dg'.
31 dg-init
32
33 # Force SVE if we're not testing it already.
34 if { [check_effective_target_aarch64_sve] } {
35 set sve_flags ""
36 } else {
37 set sve_flags "-march=armv8.2-a+sve"
38 }
39
40 global gcc_runtest_parallelize_limit_minor
41 if { [info exists gcc_runtest_parallelize_limit_minor] } {
42 set old_limit_minor $gcc_runtest_parallelize_limit_minor
43 set gcc_runtest_parallelize_limit_minor 1
44 }
45
46 torture-init
47 set-torture-options {
48 "-std=c90 -O0 -g"
49 "-std=c90 -O1 -g"
50 "-std=c99 -O2 -g"
51 "-std=c11 -O3 -g"
52 "-std=gnu90 -O2 -fno-schedule-insns -DCHECK_ASM --save-temps"
53 "-std=gnu99 -Ofast -g"
54 "-std=gnu11 -Os -g"
55 } {
56 "-DTEST_FULL"
57 "-DTEST_OVERLOADS"
58 }
59
60 # Main loop.
61 set files [glob -nocomplain $srcdir/$subdir/asm/*.c]
62 set save-dg-do-what-default ${dg-do-what-default}
63 if { [check_effective_target_aarch64_asm_sve_ok]
64 && [check_effective_target_aarch64_variant_pcs] } {
65 set dg-do-what-default assemble
66 } else {
67 set dg-do-what-default compile
68 }
69 gcc-dg-runtest [lsort $files] "" "$sve_flags -fno-ipa-icf"
70 set dg-do-what-default ${save-dg-do-what-default}
71
72 torture-finish
73
74 if { [info exists gcc_runtest_parallelize_limit_minor] } {
75 set gcc_runtest_parallelize_limit_minor $old_limit_minor
76 }
77
78 # All done.
79 dg-finish