Commit | Line | Data |
---|---|---|
2b63aca3 MK |
1 | #!/bin/sh |
2 | ||
3 | # split_s390.sh -- test -fstack-split for s390 | |
4 | ||
b3adc24a | 5 | # Copyright (C) 2009-2020 Free Software Foundation, Inc. |
2b63aca3 MK |
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 | ||
25 | match() | |
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 | ||
33 | nomatch() | |
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 | ||
41 | match 'jg.*__morestack>?$' split_s390_z1.stdout | |
42 | match 'long.*0x00100000$' split_s390_z1.stdout | |
43 | match 'jg.*__morestack>?$' split_s390_z1_ns.stdout | |
44 | match 'long.*0x00104000$' split_s390_z1_ns.stdout | |
45 | ||
46 | match 'ear.*$' split_s390_z2.stdout | |
47 | match 'jgl.*__morestack>?$' split_s390_z2.stdout | |
48 | nomatch 'jg .*__morestack>?$' split_s390_z2.stdout | |
49 | match 'long.*0x00000100$' split_s390_z2.stdout | |
50 | nomatch 'ear.*$' split_s390_z2_ns.stdout | |
51 | nomatch 'jgl.*__morestack>?$' split_s390_z2_ns.stdout | |
52 | match 'jg .*__morestack>?$' split_s390_z2_ns.stdout | |
53 | match 'long.*0x00004100$' split_s390_z2_ns.stdout | |
54 | ||
55 | match 'ear.*$' split_s390_z3.stdout | |
56 | match 'jgl.*__morestack>?$' split_s390_z3.stdout | |
57 | nomatch 'jg .*__morestack>?$' split_s390_z3.stdout | |
58 | match 'long.*0x00001000$' split_s390_z3.stdout | |
59 | nomatch 'ear.*$' split_s390_z3_ns.stdout | |
60 | nomatch 'jgl.*__morestack>?$' split_s390_z3_ns.stdout | |
61 | match 'jg .*__morestack>?$' split_s390_z3_ns.stdout | |
62 | match 'long.*0x00005000$' split_s390_z3_ns.stdout | |
63 | ||
64 | match 'alfi.*%r1,1048576$' split_s390_z4.stdout | |
65 | match 'jgl.*__morestack>?$' split_s390_z4.stdout | |
66 | match 'long.*0x00100000$' split_s390_z4.stdout | |
67 | match 'alfi.*%r1,1064960$' split_s390_z4_ns.stdout | |
68 | match 'jgl.*__morestack>?$' split_s390_z4_ns.stdout | |
69 | match 'long.*0x00104000$' split_s390_z4_ns.stdout | |
70 | ||
71 | match 'jg.*__morestack>?$' split_s390x_z1.stdout | |
72 | match 'long.*0x00100000$' split_s390x_z1.stdout | |
73 | match 'jg.*__morestack>?$' split_s390x_z1_ns.stdout | |
74 | match 'long.*0x00104000$' split_s390x_z1_ns.stdout | |
75 | ||
76 | match 'ear.*$' split_s390x_z2.stdout | |
77 | match 'jgl.*__morestack>?$' split_s390x_z2.stdout | |
78 | nomatch 'jg .*__morestack>?$' split_s390x_z2.stdout | |
79 | match 'long.*0x00000100$' split_s390x_z2.stdout | |
80 | nomatch 'ear.*$' split_s390x_z2_ns.stdout | |
81 | nomatch 'jgl.*__morestack>?$' split_s390x_z2_ns.stdout | |
82 | match 'jg .*__morestack>?$' split_s390x_z2_ns.stdout | |
83 | match 'long.*0x00004100$' split_s390x_z2_ns.stdout | |
84 | ||
85 | match 'ear.*$' split_s390x_z3.stdout | |
86 | match 'jgl.*__morestack>?$' split_s390x_z3.stdout | |
87 | nomatch 'jg .*__morestack>?$' split_s390x_z3.stdout | |
88 | match 'long.*0x00001000$' split_s390x_z3.stdout | |
89 | nomatch 'ear.*$' split_s390x_z3_ns.stdout | |
90 | nomatch 'jgl.*__morestack>?$' split_s390x_z3_ns.stdout | |
91 | match 'jg .*__morestack>?$' split_s390x_z3_ns.stdout | |
92 | match 'long.*0x00005000$' split_s390x_z3_ns.stdout | |
93 | ||
94 | match 'algfi.*%r1,1048576$' split_s390x_z4.stdout | |
95 | match 'jgl.*__morestack>?$' split_s390x_z4.stdout | |
96 | match 'long.*0x00100000$' split_s390x_z4.stdout | |
97 | match 'algfi.*%r1,1064960$' split_s390x_z4_ns.stdout | |
98 | match 'jgl.*__morestack>?$' split_s390x_z4_ns.stdout | |
99 | match 'long.*0x00104000$' split_s390x_z4_ns.stdout | |
100 | ||
101 | match 'larl' split_s390_n1.stdout | |
102 | match 'larl' split_s390_n1_ns.stdout | |
103 | match 'larl' split_s390x_n1.stdout | |
104 | match 'larl' split_s390x_n1_ns.stdout | |
105 | match 'j.*fn2' split_s390_n2.stdout | |
106 | match 'j.*fn2' split_s390x_n2.stdout | |
107 | match 'failed to match' split_s390_n2_ns.stdout | |
108 | match 'failed to match' split_s390x_n2_ns.stdout | |
109 | ||
110 | match 'failed to match' split_s390_a1.stdout | |
111 | match 'failed to match' split_s390x_a1.stdout | |
112 | ||
113 | match 'brasl.*__morestack>?$' split_s390_a2.stdout | |
114 | match 'brasl.*__morestack>?$' split_s390x_a2.stdout | |
115 | ||
116 | match 'cannot mix' split_s390_r.stdout | |
117 | match 'cannot mix' split_s390x_r.stdout |