# Copyright (C) 2019-2025 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with GCC; see the file COPYING3. If not see # . # GCC testsuite that uses the `dg.exp' driver. # Exit immediately if this isn't an ARM target. if ![istarget arm*-*-*] then { return } # Load support procs. load_lib g++-dg.exp # If a testcase doesn't have special options, use these. global DEFAULT_CXXFLAGS if ![info exists DEFAULT_CXXFLAGS] then { set DEFAULT_CXXFLAGS " -pedantic-errors" } # This variable should only apply to tests called in this exp file. global dg_runtest_extra_prunes set dg_runtest_extra_prunes "" lappend dg_runtest_extra_prunes "warning: switch '-m(cpu|arch)=.*' conflicts with switch '-m(cpu|arch)=.*'" set save-dg-do-what-default ${dg-do-what-default} set dg-do-what-default "assemble" # Initialize `dg'. dg-init # Main loop. set gcc_subdir [string replace $subdir 0 2 gcc] set files [glob -nocomplain \ "$srcdir/$subdir/../../gcc.target/arm/mve/intrinsics/*.\[cCS\]" \ "$srcdir/$gcc_subdir/mve/general/*.\[cCS\]" \ "$srcdir/$subdir/mve/general-c++/*.\[cCS\]"] dg-runtest [lsort $files] "" $DEFAULT_CXXFLAGS # All done. set dg-do-what-default ${save-dg-do-what-default} set dg_runtest_extra_prunes "" dg-finish