1252995Sdteske#!/bin/sh 2252995Sdteske 3252995Sdteske# pr12826.sh -- a test case for combining ARM arch attributes. 4263791Sdteske 5252995Sdteske# Copyright (C) 2011-2020 Free Software Foundation, Inc. 6252995Sdteske# Written by Doug Kwan <dougkwan@google.com>. 7252995Sdteske 8252995Sdteske# This file is part of gold. 9252995Sdteske 10252995Sdteske# This program is free software; you can redistribute it and/or modify 11252995Sdteske# it under the terms of the GNU General Public License as published by 12252995Sdteske# the Free Software Foundation; either version 3 of the License, or 13252995Sdteske# (at your option) any later version. 14252995Sdteske 15252995Sdteske# This program is distributed in the hope that it will be useful, 16252995Sdteske# but WITHOUT ANY WARRANTY; without even the implied warranty of 17252995Sdteske# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18252995Sdteske# GNU General Public License for more details. 19252995Sdteske 20252995Sdteske# You should have received a copy of the GNU General Public License 21252995Sdteske# along with this program; if not, write to the Free Software 22252995Sdteske# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 23252995Sdteske# MA 02110-1301, USA. 24252995Sdteske 25252995Sdteske# This file goes with pr12826_1.s and pr12826_2.s, two ARM assembly source 26252995Sdteske# files constructed to test handling of arch attributes. 27252995Sdteske 28252995Sdteskecheck() 29252995Sdteske{ 30252995Sdteske if ! grep -q "$2" "$1" 31252995Sdteske then 32252995Sdteske echo "Did not find attribute in $1:" 33252995Sdteske echo " $2" 34252995Sdteske echo "" 35252995Sdteske echo "Actual attribute below:" 36252995Sdteske cat "$1" 37263791Sdteske exit 1 38252995Sdteske fi 39252995Sdteske} 40252995Sdteske 41252995Sdteske# Check that arch is armv7e-m. 42252995Sdteskecheck pr12826.stdout "Tag_CPU_arch: v7E-M" 43263791Sdteske 44263791Sdteskeexit 0 45252995Sdteske