Debian Codegraph @

libgomp/testsuite/libgomp.c-target/aarch64/aarch64.exp

raw
1 # Copyright (C) 2006-2025 Free Software Foundation, Inc.
2 #
3 # This file is part of GCC.
4 #
5 # GCC is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3, or (at your option)
8 # any later version.
9 #
10 # GCC is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with GCC; see the file COPYING3. If not see
17 # <http://www.gnu.org/licenses/>.
18
19 # Load support procs.
20 load_lib libgomp-dg.exp
21 load_gcc_lib gcc-dg.exp
22
23 # Exit immediately if this isn't an AArch64 target.
24 if {![istarget aarch64*-*-*] } then {
25 return
26 }
27
28 lappend ALWAYS_CFLAGS "compiler=$GCC_UNDER_TEST"
29
30 if { [check_effective_target_aarch64_sve] } {
31 set sve_flags ""
32 } else {
33 set sve_flags "-march=armv8.2-a+sve"
34 }
35
36 # Initialize `dg'.
37 dg-init
38
39 #if ![check_effective_target_fopenmp] {
40 # return
41 #}
42
43 # Turn on OpenMP.
44 lappend ALWAYS_CFLAGS "additional_flags=-fopenmp"
45
46 # Gather a list of all tests.
47 set tests [lsort [find $srcdir/$subdir *.c]]
48
49 set ld_library_path $always_ld_library_path
50 append ld_library_path [gcc-set-multilib-library-path $GCC_UNDER_TEST]
51 set_ld_library_path_env_vars
52
53 # Main loop.
54 dg-runtest $tests "" $sve_flags
55
56 # All done.
57 dg-finish