1#!/bin/sh 2 3# split_s390.sh -- test -fstack-split for s390 4 5# Copyright (C) 2009-2015 Free Software Foundation, Inc. 6# Written by Marcin Kościelnicki <koriakin@0x04.net>. 7 8# This file is part of gold. 9 10# This program is free software; you can redistribute it and/or modify 11# it under the terms of the GNU General Public License as published by 12# the Free Software Foundation; either version 3 of the License, or 13# (at your option) any later version. 14 15# This program is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU General Public License for more details. 19 20# You should have received a copy of the GNU General Public License 21# along with this program; if not, write to the Free Software 22# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, 23# MA 02110-1301, USA. 24 25match() 26{ 27 if ! egrep "$1" "$2" >/dev/null 2>&1; then 28 echo 1>&2 "could not find '$1' in $2" 29 exit 1 30 fi 31} 32 33nomatch() 34{ 35 if egrep "$1" "$2" >/dev/null 2>&1; then 36 echo 1>&2 "found unexpected '$1' in $2" 37 exit 1 38 fi 39} 40 41match 'jg.*__morestack>?$' split_s390_z1.stdout 42match 'long.*0x00100000$' split_s390_z1.stdout 43match 'jg.*__morestack>?$' split_s390_z1_ns.stdout 44match 'long.*0x00104000$' split_s390_z1_ns.stdout 45 46match 'ear.*$' split_s390_z2.stdout 47match 'jgl.*__morestack>?$' split_s390_z2.stdout 48nomatch 'jg .*__morestack>?$' split_s390_z2.stdout 49match 'long.*0x00000100$' split_s390_z2.stdout 50nomatch 'ear.*$' split_s390_z2_ns.stdout 51nomatch 'jgl.*__morestack>?$' split_s390_z2_ns.stdout 52match 'jg .*__morestack>?$' split_s390_z2_ns.stdout 53match 'long.*0x00004100$' split_s390_z2_ns.stdout 54 55match 'ear.*$' split_s390_z3.stdout 56match 'jgl.*__morestack>?$' split_s390_z3.stdout 57nomatch 'jg .*__morestack>?$' split_s390_z3.stdout 58match 'long.*0x00001000$' split_s390_z3.stdout 59nomatch 'ear.*$' split_s390_z3_ns.stdout 60nomatch 'jgl.*__morestack>?$' split_s390_z3_ns.stdout 61match 'jg .*__morestack>?$' split_s390_z3_ns.stdout 62match 'long.*0x00005000$' split_s390_z3_ns.stdout 63 64match 'alfi.*%r1,1048576$' split_s390_z4.stdout 65match 'jgl.*__morestack>?$' split_s390_z4.stdout 66match 'long.*0x00100000$' split_s390_z4.stdout 67match 'alfi.*%r1,1064960$' split_s390_z4_ns.stdout 68match 'jgl.*__morestack>?$' split_s390_z4_ns.stdout 69match 'long.*0x00104000$' split_s390_z4_ns.stdout 70 71match 'jg.*__morestack>?$' split_s390x_z1.stdout 72match 'long.*0x00100000$' split_s390x_z1.stdout 73match 'jg.*__morestack>?$' split_s390x_z1_ns.stdout 74match 'long.*0x00104000$' split_s390x_z1_ns.stdout 75 76match 'ear.*$' split_s390x_z2.stdout 77match 'jgl.*__morestack>?$' split_s390x_z2.stdout 78nomatch 'jg .*__morestack>?$' split_s390x_z2.stdout 79match 'long.*0x00000100$' split_s390x_z2.stdout 80nomatch 'ear.*$' split_s390x_z2_ns.stdout 81nomatch 'jgl.*__morestack>?$' split_s390x_z2_ns.stdout 82match 'jg .*__morestack>?$' split_s390x_z2_ns.stdout 83match 'long.*0x00004100$' split_s390x_z2_ns.stdout 84 85match 'ear.*$' split_s390x_z3.stdout 86match 'jgl.*__morestack>?$' split_s390x_z3.stdout 87nomatch 'jg .*__morestack>?$' split_s390x_z3.stdout 88match 'long.*0x00001000$' split_s390x_z3.stdout 89nomatch 'ear.*$' split_s390x_z3_ns.stdout 90nomatch 'jgl.*__morestack>?$' split_s390x_z3_ns.stdout 91match 'jg .*__morestack>?$' split_s390x_z3_ns.stdout 92match 'long.*0x00005000$' split_s390x_z3_ns.stdout 93 94match 'algfi.*%r1,1048576$' split_s390x_z4.stdout 95match 'jgl.*__morestack>?$' split_s390x_z4.stdout 96match 'long.*0x00100000$' split_s390x_z4.stdout 97match 'algfi.*%r1,1064960$' split_s390x_z4_ns.stdout 98match 'jgl.*__morestack>?$' split_s390x_z4_ns.stdout 99match 'long.*0x00104000$' split_s390x_z4_ns.stdout 100 101match 'larl' split_s390_n1.stdout 102match 'larl' split_s390_n1_ns.stdout 103match 'larl' split_s390x_n1.stdout 104match 'larl' split_s390x_n1_ns.stdout 105match 'j.*fn2' split_s390_n2.stdout 106match 'j.*fn2' split_s390x_n2.stdout 107match 'failed to match' split_s390_n2_ns.stdout 108match 'failed to match' split_s390x_n2_ns.stdout 109 110match 'failed to match' split_s390_a1.stdout 111match 'failed to match' split_s390x_a1.stdout 112 113match 'brasl.*__morestack>?$' split_s390_a2.stdout 114match 'brasl.*__morestack>?$' split_s390x_a2.stdout 115 116match 'cannot mix' split_s390_r.stdout 117match 'cannot mix' split_s390x_r.stdout 118