gas/
[binutils.git] / gas / testsuite / gas / arm / sp-pc-validations-bad.l
blob002dbb2f8c65a826b42ad726b5d7bbcbbdbeef3a
1 [^:]*: Assembler messages:
2 [^:]*:11: Error: cannot use register index with PC-relative addressing -- `ldr r0,\[r1,pc,LSL#2\]'
3 [^:]*:12: Error: cannot use register index with PC-relative addressing -- `ldr r0,\[r1,pc,LSL#2\]!'
4 [^:]*:13: Error: cannot use register index with PC-relative addressing -- `ldr r0,\[r1\],pc,LSL#2'
5 [^:]*:14: Error: cannot use register index with PC-relative addressing -- `ldr r0,\[pc,r1,LSL#2\]!'
6 [^:]*:15: Error: cannot use register index with PC-relative addressing -- `ldr r0,\[pc\],r1,LSL#2'
7 [^:]*:18: Error: r15 not allowed here -- `ldrb pc,\[r0,#4\]'
8 [^:]*:19: Error: r15 not allowed here -- `ldrb pc,\[r0\],#4'
9 [^:]*:20: Error: r15 not allowed here -- `ldrb pc,\[r0,#4\]!'
10 [^:]*:23: Error: r15 not allowed here -- `ldrb pc,label'
11 [^:]*:24: Error: r15 not allowed here -- `ldrb pc,\[pc,#-0\]'
12 [^:]*:27: Error: r15 not allowed here -- `ldrb pc,\[r0,r1,LSL#2\]'
13 [^:]*:28: Error: r15 not allowed here -- `ldrb pc,\[r0,r1,LSL#2\]!'
14 [^:]*:29: Error: r15 not allowed here -- `ldrb pc,\[r0\],r1,LSL#2'
15 [^:]*:30: Error: cannot use register index with PC-relative addressing -- `ldrb r0,\[r1,pc,LSL#2\]'
16 [^:]*:31: Error: cannot use register index with PC-relative addressing -- `ldrb r0,\[r1,pc,LSL#2\]!'
17 [^:]*:32: Error: cannot use register index with PC-relative addressing -- `ldrb r0,\[r1\],pc,LSL#2'
18 [^:]*:33: Error: cannot use register index with PC-relative addressing -- `ldrb r0,\[pc,r1,LSL#2\]!'
19 [^:]*:34: Error: cannot use register index with PC-relative addressing -- `ldrb r0,\[pc\],r1,LSL#2'
20 [^:]*:37: Error: r15 not allowed here -- `ldrbt pc,\[r0\],#4'
21 [^:]*:38: Error: cannot use register index with PC-relative addressing -- `ldrbt r0,\[pc\],#4'
22 [^:]*:39: Error: r15 not allowed here -- `ldrbt pc,\[r0\],r1,LSL#4'
23 [^:]*:40: Error: cannot use register index with PC-relative addressing -- `ldrbt r0,\[pc\],r1,LSL#4'
24 [^:]*:41: Error: cannot use register index with PC-relative addressing -- `ldrbt r0,\[r1\],pc,LSL#4'
25 [^:]*:44: Error: r15 not allowed here -- `ldrd r0,pc,\[r1,#4\]'
26 [^:]*:45: Error: r15 not allowed here -- `ldrd r0,pc,\[r1\],#4'
27 [^:]*:46: Error: r15 not allowed here -- `ldrd r0,pc,\[r1,#4\]!'
28 [^:]*:49: Error: r15 not allowed here -- `ldrd r0,pc,label'
29 [^:]*:50: Error: r15 not allowed here -- `ldrd r0,pc,\[PC,#-0\]'
30 [^:]*:53: Error: r15 not allowed here -- `ldrd r0,pc,\[r1,r2\]'
31 [^:]*:54: Error: r15 not allowed here -- `ldrd r0,pc,\[r1,r2\]!'
32 [^:]*:55: Error: r15 not allowed here -- `ldrd r0,pc,\[r1\],r2'
33 [^:]*:56: Error: cannot use register index with PC-relative addressing -- `ldrd r0,r1,\[r2,pc\]'
34 [^:]*:57: Error: cannot use register index with PC-relative addressing -- `ldrd r0,r1,\[r2,pc\]!'
35 [^:]*:58: Error: cannot use register index with PC-relative addressing -- `ldrd r0,r1,\[r2\],pc'
36 [^:]*:59: Error: cannot use register index with PC-relative addressing -- `ldrd r0,r1,\[pc,r2\]!'
37 [^:]*:60: Error: cannot use register index with PC-relative addressing -- `ldrd r0,r1,\[pc\],r2'
38 [^:]*:63: Error: r15 not allowed here -- `ldrex pc,\[r0\]'
39 [^:]*:64: Error: instruction does not accept this addressing mode -- `ldrex r0,\[pc\]'
40 [^:]*:67: Error: r15 not allowed here -- `ldrexb pc,\[r0\]'
41 [^:]*:68: Error: r15 not allowed here -- `ldrexb r0,\[pc\]'
42 [^:]*:71: Error: r15 not allowed here -- `ldrexd r0,r1,\[pc\]'
43 [^:]*:74: Error: r15 not allowed here -- `ldrexh pc,\[r0\]'
44 [^:]*:75: Error: r15 not allowed here -- `ldrexh r0,\[pc\]'
45 [^:]*:78: Error: r15 not allowed here -- `ldrh pc,\[r0,#4\]'
46 [^:]*:79: Error: r15 not allowed here -- `ldrh pc,\[r0\],#4'
47 [^:]*:80: Error: r15 not allowed here -- `ldrh pc,\[r0,#4\]!'
48 [^:]*:83: Error: r15 not allowed here -- `ldrh pc,label'
49 [^:]*:84: Error: r15 not allowed here -- `ldrh pc,\[pc,#-0\]'
50 [^:]*:87: Error: r15 not allowed here -- `ldrh pc,\[r0,r1\]'
51 [^:]*:88: Error: r15 not allowed here -- `ldrh pc,\[r0,r1\]!'
52 [^:]*:89: Error: r15 not allowed here -- `ldrh pc,\[r0\],r1'
53 [^:]*:90: Error: cannot use register index with PC-relative addressing -- `ldrh r0,\[r1,pc\]'
54 [^:]*:91: Error: cannot use register index with PC-relative addressing -- `ldrh r0,\[r1,pc\]!'
55 [^:]*:92: Error: cannot use register index with PC-relative addressing -- `ldrh r0,\[r1\],pc'
56 [^:]*:93: Error: cannot use register index with PC-relative addressing -- `ldrh r0,\[pc,r1\]!'
57 [^:]*:94: Error: cannot use register index with PC-relative addressing -- `ldrh r0,\[pc\],r1'
58 [^:]*:97: Error: r15 not allowed here -- `ldrht pc,\[r0\],#4'
59 [^:]*:98: Error: cannot use writeback with PC-relative addressing -- `ldrht r0,\[pc\],#4'
60 [^:]*:99: Error: r15 not allowed here -- `ldrht pc,\[r0\],r1'
61 [^:]*:100: Error: cannot use register index with PC-relative addressing -- `ldrht r0,\[pc\],r1'
62 [^:]*:101: Error: cannot use register index with PC-relative addressing -- `ldrht r0,\[r1\],pc'
63 [^:]*:104: Error: r15 not allowed here -- `ldrsb pc,\[r0,#4\]'
64 [^:]*:105: Error: r15 not allowed here -- `ldrsb pc,\[r0\],#4'
65 [^:]*:106: Error: r15 not allowed here -- `ldrsb pc,\[r0,#4\]!'
66 [^:]*:109: Error: r15 not allowed here -- `ldrsb pc,label'
67 [^:]*:110: Error: r15 not allowed here -- `ldrsb pc,\[pc,#-0\]'
68 [^:]*:113: Error: r15 not allowed here -- `ldrsb pc,\[r0,r1\]'
69 [^:]*:114: Error: r15 not allowed here -- `ldrsb pc,\[r0,r1\]!'
70 [^:]*:115: Error: r15 not allowed here -- `ldrsb pc,\[r0\],r1'
71 [^:]*:116: Error: cannot use register index with PC-relative addressing -- `ldrsb r0,\[r1,pc\]'
72 [^:]*:117: Error: cannot use register index with PC-relative addressing -- `ldrsb r0,\[r1,pc\]!'
73 [^:]*:118: Error: cannot use register index with PC-relative addressing -- `ldrsb r0,\[r1\],pc'
74 [^:]*:119: Error: cannot use register index with PC-relative addressing -- `ldrsb r0,\[pc,r1\]!'
75 [^:]*:120: Error: cannot use register index with PC-relative addressing -- `ldrsb r0,\[pc\],r1'
76 [^:]*:123: Error: r15 not allowed here -- `ldrsbt pc,\[r0\],#4'
77 [^:]*:124: Error: cannot use writeback with PC-relative addressing -- `ldrsbt r0,\[pc\],#4'
78 [^:]*:125: Error: r15 not allowed here -- `ldrsbt pc,\[r0\],r1'
79 [^:]*:126: Error: cannot use register index with PC-relative addressing -- `ldrsbt r0,\[pc\],r1'
80 [^:]*:127: Error: cannot use register index with PC-relative addressing -- `ldrsbt r0,\[r1\],pc'
81 [^:]*:130: Error: r15 not allowed here -- `ldrsh pc,\[r0,#4\]'
82 [^:]*:131: Error: r15 not allowed here -- `ldrsh pc,\[r0\],#4'
83 [^:]*:132: Error: r15 not allowed here -- `ldrsh pc,\[r0,#4\]!'
84 [^:]*:135: Error: r15 not allowed here -- `ldrsh pc,label'
85 [^:]*:136: Error: r15 not allowed here -- `ldrsh pc,\[pc,#-0\]'
86 [^:]*:139: Error: r15 not allowed here -- `ldrsh pc,\[r0,r1\]'
87 [^:]*:140: Error: r15 not allowed here -- `ldrsh pc,\[r0,r1\]!'
88 [^:]*:141: Error: r15 not allowed here -- `ldrsh pc,\[r0\],r1'
89 [^:]*:142: Error: cannot use register index with PC-relative addressing -- `ldrsh r0,\[r1,pc\]'
90 [^:]*:143: Error: cannot use register index with PC-relative addressing -- `ldrsh r0,\[r1,pc\]!'
91 [^:]*:144: Error: cannot use register index with PC-relative addressing -- `ldrsh r0,\[r1\],pc'
92 [^:]*:145: Error: cannot use register index with PC-relative addressing -- `ldrsh r0,\[pc,r1\]!'
93 [^:]*:146: Error: cannot use register index with PC-relative addressing -- `ldrsh r0,\[pc\],r1'
94 [^:]*:149: Error: r15 not allowed here -- `ldrsht pc,\[r0\],#4'
95 [^:]*:150: Error: cannot use writeback with PC-relative addressing -- `ldrsht r0,\[pc\],#4'
96 [^:]*:151: Error: r15 not allowed here -- `ldrsht pc,\[r0\],r1'
97 [^:]*:152: Error: cannot use register index with PC-relative addressing -- `ldrsht r0,\[pc\],r1'
98 [^:]*:153: Error: cannot use register index with PC-relative addressing -- `ldrsht r0,\[r1\],pc'
99 [^:]*:156: Error: r15 not allowed here -- `ldrt pc,\[r0\],#4'
100 [^:]*:157: Error: cannot use register index with PC-relative addressing -- `ldrt r0,\[pc\],#4'
101 [^:]*:158: Error: r15 not allowed here -- `ldrt pc,\[r0\],r1,LSL#4'
102 [^:]*:159: Error: cannot use register index with PC-relative addressing -- `ldrt r0,\[pc\],r1,LSL#4'
103 [^:]*:160: Error: cannot use register index with PC-relative addressing -- `ldrt r0,\[r1\],pc,LSL#4'
104 [^:]*:165: Error: cannot use register index with PC-relative addressing -- `str r0,\[pc,#4\]'
105 [^:]*:166: Error: cannot use register index with PC-relative addressing -- `str r0,\[pc\],#4'
106 [^:]*:167: Error: cannot use register index with PC-relative addressing -- `str r0,\[pc,#4\]!'
107 [^:]*:170: Error: cannot use register index with PC-relative addressing -- `str r0,\[r1,pc,LSL#4\]'
108 [^:]*:171: Error: cannot use register index with PC-relative addressing -- `str r0,\[r1,pc,LSL#4\]!'
109 [^:]*:172: Error: cannot use register index with PC-relative addressing -- `str r0,\[r1\],pc,LSL#4'
110 [^:]*:175: Error: r15 not allowed here -- `strb pc,\[r0,#4\]'
111 [^:]*:176: Error: r15 not allowed here -- `strb pc,\[r0\],#4'
112 [^:]*:177: Error: r15 not allowed here -- `strb pc,\[r0,#4\]!'
113 [^:]*:178: Error: cannot use register index with PC-relative addressing -- `strb r0,\[pc\],#4'
114 [^:]*:179: Error: cannot use register index with PC-relative addressing -- `strb r0,\[pc,#4\]!'
115 [^:]*:182: Error: r15 not allowed here -- `strb pc,\[r0,r1,LSL#4\]'
116 [^:]*:183: Error: r15 not allowed here -- `strb pc,\[r0,r1,LSL#4\]!'
117 [^:]*:184: Error: r15 not allowed here -- `strb pc,\[r0\],r1,LSL#4'
118 [^:]*:185: Error: cannot use register index with PC-relative addressing -- `strb r1,\[r0,pc,LSL#4\]'
119 [^:]*:186: Error: cannot use register index with PC-relative addressing -- `strb r1,\[r0,pc,LSL#4\]!'
120 [^:]*:187: Error: cannot use register index with PC-relative addressing -- `strb r1,\[r0\],pc,LSL#4'
121 [^:]*:188: Error: cannot use register index with PC-relative addressing -- `strb r0,\[pc,r1,LSL#4\]!'
122 [^:]*:189: Error: cannot use register index with PC-relative addressing -- `strb r0,\[pc\],r1,LSL#4'
123 [^:]*:192: Error: r15 not allowed here -- `strbt pc,\[r0\],#4'
124 [^:]*:193: Error: cannot use register index with PC-relative addressing -- `strbt r0,\[pc\],#4'
125 [^:]*:194: Error: r15 not allowed here -- `strbt pc,\[r0\],r1,LSL#4'
126 [^:]*:195: Error: cannot use register index with PC-relative addressing -- `strbt r0,\[pc\],r1,LSL#4'
127 [^:]*:196: Error: cannot use register index with PC-relative addressing -- `strbt r0,\[r1\],pc,LSL#4'
128 [^:]*:199: Error: r15 not allowed here -- `strd r0,pc,\[r1,#4\]'
129 [^:]*:200: Error: r15 not allowed here -- `strd r0,pc,\[r1\],#4'
130 [^:]*:201: Error: r15 not allowed here -- `strd r0,pc,\[r1,#4\]!'
131 [^:]*:202: Error: cannot use writeback with PC-relative addressing -- `strd r0,r1,\[pc\],#4'
132 [^:]*:203: Error: cannot use writeback with PC-relative addressing -- `strd r0,r1,\[pc,#4\]!'
133 [^:]*:206: Error: r15 not allowed here -- `strd r0,pc,\[r1,r2\]'
134 [^:]*:207: Error: r15 not allowed here -- `strd r0,pc,\[r1,r2\]!'
135 [^:]*:208: Error: r15 not allowed here -- `strd r0,pc,\[r1\],r2'
136 [^:]*:209: Error: cannot use register index with PC-relative addressing -- `strd r0,r1,\[r2,pc\]'
137 [^:]*:210: Error: cannot use register index with PC-relative addressing -- `strd r0,r1,\[r2,pc\]!'
138 [^:]*:211: Error: cannot use register index with PC-relative addressing -- `strd r0,r1,\[r2\],pc'
139 [^:]*:212: Error: cannot use register index with PC-relative addressing -- `strd r0,r1,\[pc,r2\]!'
140 [^:]*:213: Error: cannot use register index with PC-relative addressing -- `strd r0,r1,\[pc\],r2'
141 [^:]*:216: Error: r15 not allowed here -- `strex pc,r0,\[r1\]'
142 [^:]*:217: Error: r15 not allowed here -- `strex r0,pc,\[r1\]'
143 [^:]*:218: Error: instruction does not accept this addressing mode -- `strex r0,r1,\[pc\]'
144 [^:]*:221: Error: r15 not allowed here -- `strexb pc,r0,\[r1\]'
145 [^:]*:222: Error: r15 not allowed here -- `strexb r0,pc,\[r1\]'
146 [^:]*:223: Error: instruction does not accept this addressing mode -- `strexb r0,r1,\[pc\]'
147 [^:]*:226: Error: r15 not allowed here -- `strexd pc,r0,r1,\[r2\]'
148 [^:]*:227: Error: r15 not allowed here -- `strexd r0,r1,r2,\[pc\]'
149 [^:]*:230: Error: r15 not allowed here -- `strexh pc,r0,\[r1\]'
150 [^:]*:231: Error: r15 not allowed here -- `strexh r0,pc,\[r1\]'
151 [^:]*:232: Error: instruction does not accept this addressing mode -- `strexh r0,r1,\[pc\]'
152 [^:]*:235: Error: r15 not allowed here -- `strh pc,\[r0,#4\]'
153 [^:]*:236: Error: r15 not allowed here -- `strh pc,\[r0\],#4'
154 [^:]*:237: Error: r15 not allowed here -- `strh pc,\[r0,#4\]!'
155 [^:]*:238: Error: cannot use writeback with PC-relative addressing -- `strh r0,\[pc\],#4'
156 [^:]*:239: Error: cannot use writeback with PC-relative addressing -- `strh r0,\[pc,#4\]!'
157 [^:]*:242: Error: r15 not allowed here -- `strh pc,\[r0,r1\]'
158 [^:]*:243: Error: r15 not allowed here -- `strh pc,\[r0,r1\]!'
159 [^:]*:244: Error: r15 not allowed here -- `strh pc,\[r0\],r1'
160 [^:]*:245: Error: cannot use register index with PC-relative addressing -- `strh r0,\[r1,pc\]'
161 [^:]*:246: Error: cannot use register index with PC-relative addressing -- `strh r0,\[r1,pc\]!'
162 [^:]*:247: Error: cannot use register index with PC-relative addressing -- `strh r0,\[r1\],pc'
163 [^:]*:248: Error: cannot use register index with PC-relative addressing -- `strh r0,\[pc,r1\]!'
164 [^:]*:249: Error: cannot use register index with PC-relative addressing -- `strh r0,\[pc\],r1'
165 [^:]*:252: Error: r15 not allowed here -- `strht pc,\[r0\],#4'
166 [^:]*:253: Error: cannot use writeback with PC-relative addressing -- `strht r0,\[pc\],#4'
167 [^:]*:254: Error: r15 not allowed here -- `strht pc,\[r0\],r1'
168 [^:]*:255: Error: cannot use register index with PC-relative addressing -- `strht r0,\[pc\],r1'
169 [^:]*:256: Error: cannot use register index with PC-relative addressing -- `strht r0,\[r1\],pc'
170 [^:]*:259: Error: cannot use register index with PC-relative addressing -- `strt r0,\[pc\],#4'
171 [^:]*:260: Error: cannot use register index with PC-relative addressing -- `strt r0,\[pc\],r1,LSL#4'
172 [^:]*:261: Error: cannot use register index with PC-relative addressing -- `strt r0,\[r1\],pc,LSL#4'