]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.target/x86_64/abi/abi-x86_64.exp
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.target / x86_64 / abi / abi-x86_64.exp
CommitLineData
fbd26352 1# Copyright (C) 2005-2019 Free Software Foundation, Inc.
b06b8834 2
3# This program is free software; you can redistribute it and/or modify
4# it under the terms of the GNU General Public License as published by
f63ff66b 5# the Free Software Foundation; either version 3 of the License, or
b06b8834 6# (at your option) any later version.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12#
13# You should have received a copy of the GNU General Public License
f63ff66b 14# along with GCC; see the file COPYING3. If not see
15# <http://www.gnu.org/licenses/>.
b06b8834 16
17# The x86-64 ABI testsuite needs one additional assembler file for most
18# testcases. For simplicity we will just link it into each test.
19
20load_lib c-torture.exp
21load_lib target-supports.exp
07e23beb 22load_lib torture-options.exp
b06b8834 23
24if { (![istarget x86_64-*-*] && ![istarget i?86-*-*])
25 || ![is-effective-target lp64] } then {
26 return
27}
28
29
07e23beb 30torture-init
31set-torture-options $C_TORTURE_OPTIONS
58beda63 32set additional_flags "-W -Wall -Wno-abi"
b06b8834 33
fe6fe0e6 34foreach src [lsort [glob -nocomplain $srcdir/$subdir/test_*.c]] {
b06b8834 35 if {[runtest_file_p $runtests $src]} {
d52f5491 36 if { ([istarget *-*-darwin*]) } then {
37 c-torture-execute [list $src \
38 $srcdir/$subdir/asm-support-darwin.s] \
39 $additional_flags
40 } else {
41 c-torture-execute [list $src \
e60895e5 42 $srcdir/$subdir/asm-support.S] \
d52f5491 43 $additional_flags
44 }
b06b8834 45 }
46}
07e23beb 47
48torture-finish