Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/pch/aarch64-pch.exp

raw
1 # Regression driver checking precompiled header compatibility of acle headers.
2 # Copyright (C) 2025 Free Software Foundation, Inc.
3 # Contributed by ARM Ltd.
4 #
5 # This file is part of GCC.
6 #
7 # GCC is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3, or (at your option)
10 # any later version.
11 #
12 # GCC is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with GCC; see the file COPYING3. If not see
19 # <http://www.gnu.org/licenses/>. */
20
21 # GCC testsuite checking acle headers can be included in precompiled headers
22 # that uses the `dg.exp' driver.
23
24 # Exit immediately if this isn't an AArch64 target.
25 if {![istarget aarch64*-*-*] } then {
26 return
27 }
28
29 # Load support procs.
30 load_lib gcc-dg.exp
31 load_lib dg-pch.exp
32 load_lib torture-options.exp
33
34 # Initialize `dg'.
35 dg-init
36 torture-init
37 set-torture-options $DG_TORTURE_OPTIONS
38 pch-init
39
40 set arch_flags "-march=armv8.5-a+sve2+sme"
41 set old_dg_do_what_default "${dg-do-what-default}"
42 # Main loop.
43 foreach test [lsort [glob -nocomplain $srcdir/$subdir/*.c]] {
44 global torture_without_loops
45 dg-flags-pch $subdir $test $arch_flags \
46 [concat [list {-O0 -g}] $torture_without_loops] ".h"
47 }
48
49 # All done.
50 pch-finish
51 torture-finish
52 dg-finish