MIPS: Verify the ISA mode and alignment of branch and jump targets
[external/binutils.git] / ld / testsuite / ld-mips-elf / unaligned-jump-micromips.d
1 #name: microMIPS link jump to unaligned symbol
2 #as: -EB -n32 -march=from-abi
3 #ld: -EB -Ttext 0x1c000000 -e 0x1c000000
4 #source: ../../../gas/testsuite/gas/mips/unaligned-jump-micromips-2.s
5 #error: \A[^\n]*: In function `foo':\n
6 #error:   \(\.text\+0x1012\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
7 #error:   [^\n]*: In function `foo':\n
8 #error:   \(\.text\+0x1018\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
9 #error:   [^\n]*: In function `foo':\n
10 #error:   \(\.text\+0x101e\): Cannot convert a jump to JALX for a non-word-aligned address\n
11 #error:   [^\n]*: In function `foo':\n
12 #error:   \(\.text\+0x1026\): Cannot convert a jump to JALX for a non-word-aligned address\n
13 #error:   [^\n]*: In function `foo':\n
14 #error:   \(\.text\+0x102e\): Cannot convert a jump to JALX for a non-word-aligned address\n
15 #error:   [^\n]*: In function `foo':\n
16 #error:   \(\.text\+0x102e\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
17 #error:   [^\n]*: In function `foo':\n
18 #error:   \(\.text\+0x1034\): Cannot convert a jump to JALX for a non-word-aligned address\n
19 #error:   [^\n]*: In function `foo':\n
20 #error:   \(\.text\+0x1034\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
21 #error:   [^\n]*: In function `foo':\n
22 #error:   \(\.text\+0x103a\): Cannot convert a jump to JALX for a non-word-aligned address\n
23 #error:   [^\n]*: In function `foo':\n
24 #error:   \(\.text\+0x1042\): Cannot convert a jump to JALX for a non-word-aligned address\n
25 #error:   [^\n]*: In function `foo':\n
26 #error:   \(\.text\+0x104a\): Cannot convert a jump to JALX for a non-word-aligned address\n
27 #error:   [^\n]*: In function `foo':\n
28 #error:   \(\.text\+0x104a\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
29 #error:   [^\n]*: In function `foo':\n
30 #error:   \(\.text\+0x1050\): Cannot convert a jump to JALX for a non-word-aligned address\n
31 #error:   [^\n]*: In function `foo':\n
32 #error:   \(\.text\+0x1050\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
33 #error:   [^\n]*: In function `foo':\n
34 #error:   \(\.text\+0x1056\): Cannot convert a jump to JALX for a non-word-aligned address\n
35 #error:   [^\n]*: In function `foo':\n
36 #error:   \(\.text\+0x105e\): Cannot convert a jump to JALX for a non-word-aligned address\n
37 #error:   [^\n]*: In function `foo':\n
38 #error:   \(\.text\+0x1066\): Cannot convert a jump to JALX for a non-word-aligned address\n
39 #error:   [^\n]*: In function `foo':\n
40 #error:   \(\.text\+0x1066\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
41 #error:   [^\n]*: In function `foo':\n
42 #error:   \(\.text\+0x106c\): Cannot convert a jump to JALX for a non-word-aligned address\n
43 #error:   [^\n]*: In function `foo':\n
44 #error:   \(\.text\+0x106c\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
45 #error:   [^\n]*: In function `foo':\n
46 #error:   \(\.text\+0x1082\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
47 #error:   [^\n]*: In function `foo':\n
48 #error:   \(\.text\+0x1088\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
49 #error:   [^\n]*: In function `foo':\n
50 #error:   \(\.text\+0x108e\): Cannot convert a jump to JALX for a non-word-aligned address\n
51 #error:   [^\n]*: In function `foo':\n
52 #error:   \(\.text\+0x1096\): Cannot convert a jump to JALX for a non-word-aligned address\n
53 #error:   [^\n]*: In function `foo':\n
54 #error:   \(\.text\+0x109e\): Cannot convert a jump to JALX for a non-word-aligned address\n
55 #error:   [^\n]*: In function `foo':\n
56 #error:   \(\.text\+0x109e\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
57 #error:   [^\n]*: In function `foo':\n
58 #error:   \(\.text\+0x10a4\): Cannot convert a jump to JALX for a non-word-aligned address\n
59 #error:   [^\n]*: In function `foo':\n
60 #error:   \(\.text\+0x10a4\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
61 #error:   [^\n]*: In function `foo':\n
62 #error:   \(\.text\+0x10aa\): Cannot convert a jump to JALX for a non-word-aligned address\n
63 #error:   [^\n]*: In function `foo':\n
64 #error:   \(\.text\+0x10b2\): Cannot convert a jump to JALX for a non-word-aligned address\n
65 #error:   [^\n]*: In function `foo':\n
66 #error:   \(\.text\+0x10ba\): Cannot convert a jump to JALX for a non-word-aligned address\n
67 #error:   [^\n]*: In function `foo':\n
68 #error:   \(\.text\+0x10ba\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
69 #error:   [^\n]*: In function `foo':\n
70 #error:   \(\.text\+0x10c0\): Cannot convert a jump to JALX for a non-word-aligned address\n
71 #error:   [^\n]*: In function `foo':\n
72 #error:   \(\.text\+0x10c0\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
73 #error:   [^\n]*: In function `foo':\n
74 #error:   \(\.text\+0x10c6\): Cannot convert a jump to JALX for a non-word-aligned address\n
75 #error:   [^\n]*: In function `foo':\n
76 #error:   \(\.text\+0x10ce\): Cannot convert a jump to JALX for a non-word-aligned address\n
77 #error:   [^\n]*: In function `foo':\n
78 #error:   \(\.text\+0x10d6\): Cannot convert a jump to JALX for a non-word-aligned address\n
79 #error:   [^\n]*: In function `foo':\n
80 #error:   \(\.text\+0x10d6\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
81 #error:   [^\n]*: In function `foo':\n
82 #error:   \(\.text\+0x10dc\): Cannot convert a jump to JALX for a non-word-aligned address\n
83 #error:   [^\n]*: In function `foo':\n
84 #error:   \(\.text\+0x10dc\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
85 #error:   [^\n]*: In function `foo':\n
86 #error:   \(\.text\+0x10f2\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
87 #error:   [^\n]*: In function `foo':\n
88 #error:   \(\.text\+0x10f8\): Unsupported jump between ISA modes; consider recompiling with interlinking enabled\n
89 #error:   [^\n]*: In function `foo':\n
90 #error:   \(\.text\+0x10fe\): Unsupported JALX to the same ISA mode\n
91 #error:   [^\n]*: In function `foo':\n
92 #error:   \(\.text\+0x111a\): Unsupported JALX to the same ISA mode\n
93 #error:   [^\n]*: In function `foo':\n
94 #error:   \(\.text\+0x1136\): Unsupported JALX to the same ISA mode\n
95 #error:   [^\n]*: In function `foo':\n
96 #error:   \(\.text\+0x1152\): Jump to a non-instruction-aligned address\n
97 #error:   [^\n]*: In function `foo':\n
98 #error:   \(\.text\+0x1152\): Unsupported JALX to the same ISA mode\n
99 #error:   [^\n]*: In function `foo':\n
100 #error:   \(\.text\+0x115a\): Jump to a non-instruction-aligned address\n
101 #error:   [^\n]*: In function `foo':\n
102 #error:   \(\.text\+0x1162\): Jump to a non-instruction-aligned address\n
103 #error:   [^\n]*: In function `foo':\n
104 #error:   \(\.text\+0x1168\): Jump to a non-instruction-aligned address\n
105 #error:   [^\n]*: In function `foo':\n
106 #error:   \(\.text\+0x116e\): Unsupported JALX to the same ISA mode\n
107 #error:   [^\n]*: In function `foo':\n
108 #error:   \(\.text\+0x118a\): Jump to a non-instruction-aligned address\n
109 #error:   [^\n]*: In function `foo':\n
110 #error:   \(\.text\+0x118a\): Unsupported JALX to the same ISA mode\n
111 #error:   [^\n]*: In function `foo':\n
112 #error:   \(\.text\+0x1192\): Jump to a non-instruction-aligned address\n
113 #error:   [^\n]*: In function `foo':\n
114 #error:   \(\.text\+0x119a\): Jump to a non-instruction-aligned address\n
115 #error:   [^\n]*: In function `foo':\n
116 #error:   \(\.text\+0x11a0\): Jump to a non-instruction-aligned address\n
117 #error:   [^\n]*: In function `foo':\n
118 #error:   \(\.text\+0x11a6\): Unsupported JALX to the same ISA mode\Z