MIPS: Verify the ISA mode and alignment of branch and jump targets
[external/binutils.git] / ld / testsuite / ld-mips-elf / unaligned-branch-micromips.d
1 #name: microMIPS link branch to unaligned symbol
2 #as: -EB -n32 -march=from-abi
3 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000
4 #source: ../../../gas/testsuite/gas/mips/unaligned-branch-micromips-2.s
5 #error: \A[^\n]*: In function `foo':\n
6 #error:   \(\.text\+0x1002\): Unsupported branch between ISA modes\n
7 #error:   [^\n]*: In function `foo':\n
8 #error:   \(\.text\+0x100a\): Branch to a non-instruction-aligned address\n
9 #error:   [^\n]*: In function `foo':\n
10 #error:   \(\.text\+0x100a\): Unsupported branch between ISA modes\n
11 #error:   [^\n]*: In function `foo':\n
12 #error:   \(\.text\+0x1012\): Branch to a non-instruction-aligned address\n
13 #error:   [^\n]*: In function `foo':\n
14 #error:   \(\.text\+0x1012\): Unsupported branch between ISA modes\n
15 #error:   [^\n]*: In function `foo':\n
16 #error:   \(\.text\+0x101a\): Branch to a non-instruction-aligned address\n
17 #error:   [^\n]*: In function `foo':\n
18 #error:   \(\.text\+0x101a\): Unsupported branch between ISA modes\n
19 #error:   [^\n]*: In function `foo':\n
20 #error:   \(\.text\+0x1022\): Unsupported branch between ISA modes\n
21 #error:   [^\n]*: In function `foo':\n
22 #error:   \(\.text\+0x102a\): Branch to a non-instruction-aligned address\n
23 #error:   [^\n]*: In function `foo':\n
24 #error:   \(\.text\+0x102a\): Unsupported branch between ISA modes\n
25 #error:   [^\n]*: In function `foo':\n
26 #error:   \(\.text\+0x1032\): Branch to a non-instruction-aligned address\n
27 #error:   [^\n]*: In function `foo':\n
28 #error:   \(\.text\+0x1032\): Unsupported branch between ISA modes\n
29 #error:   [^\n]*: In function `foo':\n
30 #error:   \(\.text\+0x103a\): Branch to a non-instruction-aligned address\n
31 #error:   [^\n]*: In function `foo':\n
32 #error:   \(\.text\+0x103a\): Unsupported branch between ISA modes\n
33 #error:   [^\n]*: In function `foo':\n
34 #error:   \(\.text\+0x1042\): Unsupported branch between ISA modes\n
35 #error:   [^\n]*: In function `foo':\n
36 #error:   \(\.text\+0x1062\): Branch to a non-instruction-aligned address\n
37 #error:   [^\n]*: In function `foo':\n
38 #error:   \(\.text\+0x1072\): Branch to a non-instruction-aligned address\n
39 #error:   [^\n]*: In function `foo':\n
40 #error:   \(\.text\+0x1082\): Unsupported branch between ISA modes\n
41 #error:   [^\n]*: In function `foo':\n
42 #error:   \(\.text\+0x1088\): Branch to a non-instruction-aligned address\n
43 #error:   [^\n]*: In function `foo':\n
44 #error:   \(\.text\+0x1088\): Unsupported branch between ISA modes\n
45 #error:   [^\n]*: In function `foo':\n
46 #error:   \(\.text\+0x108e\): Branch to a non-instruction-aligned address\n
47 #error:   [^\n]*: In function `foo':\n
48 #error:   \(\.text\+0x108e\): Unsupported branch between ISA modes\n
49 #error:   [^\n]*: In function `foo':\n
50 #error:   \(\.text\+0x1094\): Branch to a non-instruction-aligned address\n
51 #error:   [^\n]*: In function `foo':\n
52 #error:   \(\.text\+0x1094\): Unsupported branch between ISA modes\n
53 #error:   [^\n]*: In function `foo':\n
54 #error:   \(\.text\+0x109a\): Unsupported branch between ISA modes\n
55 #error:   [^\n]*: In function `foo':\n
56 #error:   \(\.text\+0x10a0\): Branch to a non-instruction-aligned address\n
57 #error:   [^\n]*: In function `foo':\n
58 #error:   \(\.text\+0x10a0\): Unsupported branch between ISA modes\n
59 #error:   [^\n]*: In function `foo':\n
60 #error:   \(\.text\+0x10a6\): Branch to a non-instruction-aligned address\n
61 #error:   [^\n]*: In function `foo':\n
62 #error:   \(\.text\+0x10a6\): Unsupported branch between ISA modes\n
63 #error:   [^\n]*: In function `foo':\n
64 #error:   \(\.text\+0x10ac\): Branch to a non-instruction-aligned address\n
65 #error:   [^\n]*: In function `foo':\n
66 #error:   \(\.text\+0x10ac\): Unsupported branch between ISA modes\n
67 #error:   [^\n]*: In function `foo':\n
68 #error:   \(\.text\+0x10b2\): Unsupported branch between ISA modes\n
69 #error:   [^\n]*: In function `foo':\n
70 #error:   \(\.text\+0x10ca\): Branch to a non-instruction-aligned address\n
71 #error:   [^\n]*: In function `foo':\n
72 #error:   \(\.text\+0x10d6\): Branch to a non-instruction-aligned address\n
73 #error:   [^\n]*: In function `foo':\n
74 #error:   \(\.text\+0x10e2\): Unsupported branch between ISA modes\n
75 #error:   [^\n]*: In function `foo':\n
76 #error:   \(\.text\+0x10e8\): Branch to a non-instruction-aligned address\n
77 #error:   [^\n]*: In function `foo':\n
78 #error:   \(\.text\+0x10e8\): Unsupported branch between ISA modes\n
79 #error:   [^\n]*: In function `foo':\n
80 #error:   \(\.text\+0x10ee\): Branch to a non-instruction-aligned address\n
81 #error:   [^\n]*: In function `foo':\n
82 #error:   \(\.text\+0x10ee\): Unsupported branch between ISA modes\n
83 #error:   [^\n]*: In function `foo':\n
84 #error:   \(\.text\+0x10f4\): Branch to a non-instruction-aligned address\n
85 #error:   [^\n]*: In function `foo':\n
86 #error:   \(\.text\+0x10f4\): Unsupported branch between ISA modes\n
87 #error:   [^\n]*: In function `foo':\n
88 #error:   \(\.text\+0x10fa\): Unsupported branch between ISA modes\n
89 #error:   [^\n]*: In function `foo':\n
90 #error:   \(\.text\+0x1100\): Branch to a non-instruction-aligned address\n
91 #error:   [^\n]*: In function `foo':\n
92 #error:   \(\.text\+0x1100\): Unsupported branch between ISA modes\n
93 #error:   [^\n]*: In function `foo':\n
94 #error:   \(\.text\+0x1106\): Branch to a non-instruction-aligned address\n
95 #error:   [^\n]*: In function `foo':\n
96 #error:   \(\.text\+0x1106\): Unsupported branch between ISA modes\n
97 #error:   [^\n]*: In function `foo':\n
98 #error:   \(\.text\+0x110c\): Branch to a non-instruction-aligned address\n
99 #error:   [^\n]*: In function `foo':\n
100 #error:   \(\.text\+0x110c\): Unsupported branch between ISA modes\n
101 #error:   [^\n]*: In function `foo':\n
102 #error:   \(\.text\+0x1112\): Unsupported branch between ISA modes\n
103 #error:   [^\n]*: In function `foo':\n
104 #error:   \(\.text\+0x112a\): Branch to a non-instruction-aligned address\n
105 #error:   [^\n]*: In function `foo':\n
106 #error:   \(\.text\+0x1136\): Branch to a non-instruction-aligned address\n
107 #error:   [^\n]*: In function `foo':\n
108 #error:   \(\.text\+0x1142\): Unsupported branch between ISA modes\n
109 #error:   [^\n]*: In function `foo':\n
110 #error:   \(\.text\+0x1146\): Branch to a non-instruction-aligned address\n
111 #error:   [^\n]*: In function `foo':\n
112 #error:   \(\.text\+0x1146\): Unsupported branch between ISA modes\n
113 #error:   [^\n]*: In function `foo':\n
114 #error:   \(\.text\+0x114a\): Branch to a non-instruction-aligned address\n
115 #error:   [^\n]*: In function `foo':\n
116 #error:   \(\.text\+0x114a\): Unsupported branch between ISA modes\n
117 #error:   [^\n]*: In function `foo':\n
118 #error:   \(\.text\+0x114e\): Branch to a non-instruction-aligned address\n
119 #error:   [^\n]*: In function `foo':\n
120 #error:   \(\.text\+0x114e\): Unsupported branch between ISA modes\n
121 #error:   [^\n]*: In function `foo':\n
122 #error:   \(\.text\+0x1152\): Unsupported branch between ISA modes\n
123 #error:   [^\n]*: In function `foo':\n
124 #error:   \(\.text\+0x1156\): Branch to a non-instruction-aligned address\n
125 #error:   [^\n]*: In function `foo':\n
126 #error:   \(\.text\+0x1156\): Unsupported branch between ISA modes\n
127 #error:   [^\n]*: In function `foo':\n
128 #error:   \(\.text\+0x115a\): Branch to a non-instruction-aligned address\n
129 #error:   [^\n]*: In function `foo':\n
130 #error:   \(\.text\+0x115a\): Unsupported branch between ISA modes\n
131 #error:   [^\n]*: In function `foo':\n
132 #error:   \(\.text\+0x115e\): Branch to a non-instruction-aligned address\n
133 #error:   [^\n]*: In function `foo':\n
134 #error:   \(\.text\+0x115e\): Unsupported branch between ISA modes\n
135 #error:   [^\n]*: In function `foo':\n
136 #error:   \(\.text\+0x1162\): Unsupported branch between ISA modes\n
137 #error:   [^\n]*: In function `foo':\n
138 #error:   \(\.text\+0x1172\): Branch to a non-instruction-aligned address\n
139 #error:   [^\n]*: In function `foo':\n
140 #error:   \(\.text\+0x117a\): Branch to a non-instruction-aligned address\n
141 #error:   [^\n]*: In function `foo':\n
142 #error:   \(\.text\+0x1182\): Unsupported branch between ISA modes\n
143 #error:   [^\n]*: In function `foo':\n
144 #error:   \(\.text\+0x1186\): Branch to a non-instruction-aligned address\n
145 #error:   [^\n]*: In function `foo':\n
146 #error:   \(\.text\+0x1186\): Unsupported branch between ISA modes\n
147 #error:   [^\n]*: In function `foo':\n
148 #error:   \(\.text\+0x118a\): Branch to a non-instruction-aligned address\n
149 #error:   [^\n]*: In function `foo':\n
150 #error:   \(\.text\+0x118a\): Unsupported branch between ISA modes\n
151 #error:   [^\n]*: In function `foo':\n
152 #error:   \(\.text\+0x118e\): Branch to a non-instruction-aligned address\n
153 #error:   [^\n]*: In function `foo':\n
154 #error:   \(\.text\+0x118e\): Unsupported branch between ISA modes\n
155 #error:   [^\n]*: In function `foo':\n
156 #error:   \(\.text\+0x1192\): Unsupported branch between ISA modes\n
157 #error:   [^\n]*: In function `foo':\n
158 #error:   \(\.text\+0x1196\): Branch to a non-instruction-aligned address\n
159 #error:   [^\n]*: In function `foo':\n
160 #error:   \(\.text\+0x1196\): Unsupported branch between ISA modes\n
161 #error:   [^\n]*: In function `foo':\n
162 #error:   \(\.text\+0x119a\): Branch to a non-instruction-aligned address\n
163 #error:   [^\n]*: In function `foo':\n
164 #error:   \(\.text\+0x119a\): Unsupported branch between ISA modes\n
165 #error:   [^\n]*: In function `foo':\n
166 #error:   \(\.text\+0x119e\): Branch to a non-instruction-aligned address\n
167 #error:   [^\n]*: In function `foo':\n
168 #error:   \(\.text\+0x119e\): Unsupported branch between ISA modes\n
169 #error:   [^\n]*: In function `foo':\n
170 #error:   \(\.text\+0x11a2\): Unsupported branch between ISA modes\n
171 #error:   [^\n]*: In function `foo':\n
172 #error:   \(\.text\+0x11b2\): Branch to a non-instruction-aligned address\n
173 #error:   [^\n]*: In function `foo':\n
174 #error:   \(\.text\+0x11ba\): Branch to a non-instruction-aligned address\Z