> -----Original Message----- > From: Tamar Christina <tamar.christ...@arm.com> > Sent: 09 July 2020 10:58 > To: gcc-patches@gcc.gnu.org > Cc: nd <n...@arm.com>; Richard Earnshaw <richard.earns...@arm.com>; > Marcus Shawcroft <marcus.shawcr...@arm.com>; Kyrylo Tkachov > <kyrylo.tkac...@arm.com>; Richard Sandiford > <richard.sandif...@arm.com> > Subject: [PATCH 6/6] AArch64: Add test for -mcpu=native > > Hi All, > > This adds some tests to the GCC testsuite for testing the > -mcpu=native code. > > Bootstrapped Regtested on aarch64-none-linux-gnu and no issues. > > Ok for master, GCC 10, 9 and 8? > > Thanks, > Tamar > > gcc/testsuite/ChangeLog: > > * gcc.target/aarch64/cpunative/aarch64-cpunative.exp: New test. > * gcc.target/aarch64/cpunative/info_0: New test. > * gcc.target/aarch64/cpunative/info_1: New test. > * gcc.target/aarch64/cpunative/info_10: New test. > * gcc.target/aarch64/cpunative/info_11: New test. > * gcc.target/aarch64/cpunative/info_12: New test. > * gcc.target/aarch64/cpunative/info_13: New test. > * gcc.target/aarch64/cpunative/info_14: New test. > * gcc.target/aarch64/cpunative/info_15: New test. > * gcc.target/aarch64/cpunative/info_2: New test. > * gcc.target/aarch64/cpunative/info_3: New test. > * gcc.target/aarch64/cpunative/info_4: New test. > * gcc.target/aarch64/cpunative/info_5: New test. > * gcc.target/aarch64/cpunative/info_6: New test. > * gcc.target/aarch64/cpunative/info_7: New test. > * gcc.target/aarch64/cpunative/info_8: New test. > * gcc.target/aarch64/cpunative/info_9: New test. > * gcc.target/aarch64/cpunative/native_cpu_0.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_1.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_10.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_11.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_12.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_13.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_14.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_15.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_2.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_3.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_4.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_5.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_6.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_7.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_8.c: New test. > * gcc.target/aarch64/cpunative/native_cpu_9.c: New test. > > --
diff --git a/gcc/testsuite/gcc.target/aarch64/cpunative/aarch64-cpunative.exp b/gcc/testsuite/gcc.target/aarch64/cpunative/aarch64-cpunative.exp new file mode 100644 index 0000000000000000000000000000000000000000..ce80ca04b8d095c96acf0bda4d5b16a6460c4cbd --- /dev/null +++ b/gcc/testsuite/gcc.target/aarch64/cpunative/aarch64-cpunative.exp @@ -0,0 +1,35 @@ +# Copyright (C) 2014-2020 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 +# <http://www.gnu.org/licenses/>. + +# GCC testsuite that uses the `dg.exp' driver. + +# Exit immediately if this isn't an AArch64 target. +if ![istarget aarch64*-*-*] then { May as well add a test for native here to avoid going into the tests themselves? Ok either way with me. Thanks, Kyrill + return +} + +# Load support procs. +load_lib gcc-dg.exp