Re: ld plugin bfd_make_readable leak
[binutils-gdb.git] / gdb / testsuite / gdb.disasm / t02_mova.exp
blobc147eecdcb7791d533228d16f5a2ab99e66f0b04
1 # Copyright (C) 2003-2024 Free Software Foundation, Inc.
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 3 of the License, or
6 # (at your option) any later version.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
11 # GNU General Public License for more details.
13 # You should have received a copy of the GNU General Public License
14 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 # This file was written by Michael Snyder (msnyder@redhat.com)
18 require {istarget "h8300*-*-*"}
21 set testfile "t02_mova"
22 set srcfile ${srcdir}/${subdir}/${testfile}.s
23 set objfile ${objdir}/${subdir}/${testfile}.o
24 set binfile ${objdir}/${subdir}/${testfile}.x
26 set asm-flags ""
27 set link-flags "-m h8300sxelf"
30 if {[target_assemble $srcfile $objfile "${asm-flags}"] != ""} {
31      untested "failed to assemble"
32      return -1
35 if {[target_link $objfile $binfile "${link-flags}"] != ""} {
36      untested "failed to link"
37      return -1
40 gdb_start
41 gdb_reinitialize_dir $srcdir/$subdir
42 gdb_load $binfile
44 gdb_test "x /i start" "mova/b.l\t@\\(0x1234(:16|),r3l.b\\),er1" \
45         "mova/b.c @(0x1234:16,r3l.b),er1"
46 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),r3.w\\),er1" \
47         "mova/b.c @(0x1234:16,r3.w),er1"
48 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),r3l.b\\),er1" \
49         "mova/w.c @(0x1234:16,r3l.b),er1"
50 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),r3.w\\),er1" \
51         "mova/w.c @(0x1234:16,r3.w),er1"
52 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),r3l.b\\),er1" \
53         "mova/l.c @(0x1234:16,r3l.b),er1"
54 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),r3.w\\),er1" \
55         "mova/l.c @(0x1234:16,r3.w),er1"
56 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),r3l.b\\),er1" \
57         "mova/b.c @(0x12345678:32,r3l.b),er1"
58 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),r3.w\\),er1" \
59         "mova/b.c @(0x12345678:32,r3.w),er1"
60 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),r3l.b\\),er1" \
61         "mova/w.c @(0x12345678:32,r3l.b),er1"
62 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),r3.w\\),er1" \
63         "mova/w.c @(0x12345678:32,r3.w),er1"
64 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),r3l.b\\),er1" \
65         "mova/l.c @(0x12345678:32,r3l.b),er1"
66 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),r3.w\\),er1" \
67         "mova/l.c @(0x12345678:32,r3.w),er1"
68 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),r3l.b\\),er1" \
69         "mova/b.l @(0x1234:16,r3l.b),er1"
70 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),r3.w\\),er1" \
71         "mova/b.l @(0x1234:16,r3.w),er1"
72 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),r3l.b\\),er1" \
73         "mova/w.l @(0x1234:16,r3l.b),er1"
74 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),r3.w\\),er1" \
75         "mova/w.l @(0x1234:16,r3.w),er1"
76 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),r3l.b\\),er1" \
77         "mova/l.l @(0x1234:16,r3l.b),er1"
78 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),r3.w\\),er1" \
79         "mova/l.l @(0x1234:16,r3.w),er1"
80 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),r3l.b\\),er1" \
81         "mova/b.l @(0x12345678:32,r3l.b),er1"
82 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),r3.w\\),er1" \
83         "mova/b.l @(0x12345678:32,r3.w),er1"
84 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),r3l.b\\),er1" \
85         "mova/w.l @(0x12345678:32,r3l.b),er1"
86 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),r3.w\\),er1" \
87         "mova/w.l @(0x12345678:32,r3.w),er1"
88 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),r3l.b\\),er1" \
89         "mova/l.l @(0x12345678:32,r3l.b),er1"
90 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),r3.w\\),er1" \
91         "mova/l.l @(0x12345678:32,r3.w),er1"
92 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@er2.b\\),er1" \
93         "mova/b.l @(0x1234:16,@er2.b),er1"
94 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x1(:2|),er2\\).b\\),er1" \
95         "mova/b.l @(0x1234:16,@(0x1:2,er2).b),er1"
96 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@er2\\+.b\\),er1" \
97         "mova/b.l @(0x1234:16,@er2+.b),er1"
98 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@-er2.b\\),er1" \
99         "mova/b.l @(0x1234:16,@-er2.b),er1"
100 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\+er2.b\\),er1" \
101         "mova/b.l @(0x1234:16,@+er2.b),er1"
102 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@er2-.b\\),er1" \
103         "mova/b.l @(0x1234:16,@er2-.b),er1"
104 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2\\).b\\),er1" \
105         "mova/b.l @(0x1234:16,@(0x9abc:16,er2).b),er1"
106 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2\\).b\\),er1" \
107         "mova/b.l @(0x1234:16,@(0x9abcdef0:32,er2).b),er1"
108 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2l.b\\).b\\),er1" \
109         "mova/b.l @(0x1234:16,@(0x9abc:16,r2l.b).b),er1"
110 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2.w\\).b\\),er1" \
111         "mova/b.l @(0x1234:16,@(0x9abc:16,r2.w).b),er1"
112 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2.l\\).b\\),er1" \
113         "mova/b.l @(0x1234:16,@(0x9abc:16,er2.l).b),er1"
114 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2l.b\\).b\\),er1" \
115         "mova/b.l @(0x1234:16,@(0x9abcdef0:32,r2l.b).b),er1"
116 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2.w\\).b\\),er1" \
117         "mova/b.l @(0x1234:16,@(0x9abcdef0:32,r2.w).b),er1"
118 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2.l\\).b\\),er1" \
119         "mova/b.l @(0x1234:16,@(0x9abcdef0:32,er2.l).b),er1"
120 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@0x9abc(:16|).b\\),er1" \
121         "mova/b.l @(0x1234:16,@0x9abc:16.b),er1"
122 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@0x9abcdef0(:32|).b\\),er1" \
123         "mova/b.l @(0x1234:16,@0x9abcdef0:32.b),er1"
124 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@er2.w\\),er1" \
125         "mova/b.l @(0x1234:16,@er2.w),er1"
126 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x2(:2|),er2\\).w\\),er1" \
127         "mova/b.l @(0x1234:16,@(0x2:2,er2).w),er1"
128 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@er2\\+.w\\),er1" \
129         "mova/b.l @(0x1234:16,@er2+.w),er1"
130 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@-er2.w\\),er1" \
131         "mova/b.l @(0x1234:16,@-er2.w),er1"
132 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\+er2.w\\),er1" \
133         "mova/b.l @(0x1234:16,@+er2.w),er1"
134 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@er2-.w\\),er1" \
135         "mova/b.l @(0x1234:16,@er2-.w),er1"
136 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2\\).w\\),er1" \
137         "mova/b.l @(0x1234:16,@(0x9abc:16,er2).w),er1"
138 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2\\).w\\),er1" \
139         "mova/b.l @(0x1234:16,@(0x9abcdef0:32,er2).w),er1"
140 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2l.b\\).w\\),er1" \
141         "mova/b.l @(0x1234:16,@(0x9abc:16,r2l.b).w),er1"
142 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2.w\\).w\\),er1" \
143         "mova/b.l @(0x1234:16,@(0x9abc:16,r2.w).w),er1"
144 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2.l\\).w\\),er1" \
145         "mova/b.l @(0x1234:16,@(0x9abc:16,er2.l).w),er1"
146 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2l.b\\).w\\),er1" \
147         "mova/b.l @(0x1234:16,@(0x9abcdef0:32,r2l.b).w),er1"
148 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2.w\\).w\\),er1" \
149         "mova/b.l @(0x1234:16,@(0x9abcdef0:32,r2.w).w),er1"
150 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2.l\\).w\\),er1" \
151         "mova/b.l @(0x1234:16,@(0x9abcdef0:32,er2.l).w),er1"
152 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@0x9abc(:16|).w\\),er1" \
153         "mova/b.l @(0x1234:16,@0x9abc:16.w),er1"
154 gdb_test "x" "mova/b.l\t@\\(0x1234(:16|),@0x9abcdef0(:32|).w\\),er1" \
155         "mova/b.l @(0x1234:16,@0x9abcdef0:32.w),er1"
156 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@er2.b\\),er1" \
157         "mova/w.l @(0x1234:16,@er2.b),er1"
158 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x1(:2|),er2\\).b\\),er1" \
159         "mova/w.l @(0x1234:16,@(0x1:2,er2).b),er1"
160 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@er2\\+.b\\),er1" \
161         "mova/w.l @(0x1234:16,@er2+.b),er1"
162 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@-er2.b\\),er1" \
163         "mova/w.l @(0x1234:16,@-er2.b),er1"
164 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\+er2.b\\),er1" \
165         "mova/w.l @(0x1234:16,@+er2.b),er1"
166 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@er2-.b\\),er1" \
167         "mova/w.l @(0x1234:16,@er2-.b),er1"
168 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2\\).b\\),er1" \
169         "mova/w.l @(0x1234:16,@(0x9abc:16,er2).b),er1"
170 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2\\).b\\),er1" \
171         "mova/w.l @(0x1234:16,@(0x9abcdef0:32,er2).b),er1"
172 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2l.b\\).b\\),er1" \
173         "mova/w.l @(0x1234:16,@(0x9abc:16,r2l.b).b),er1"
174 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2.w\\).b\\),er1" \
175         "mova/w.l @(0x1234:16,@(0x9abc:16,r2.w).b),er1"
176 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2.l\\).b\\),er1" \
177         "mova/w.l @(0x1234:16,@(0x9abc:16,er2.l).b),er1"
178 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2l.b\\).b\\),er1" \
179         "mova/w.l @(0x1234:16,@(0x9abcdef0:32,r2l.b).b),er1"
180 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2.w\\).b\\),er1" \
181         "mova/w.l @(0x1234:16,@(0x9abcdef0:32,r2.w).b),er1"
182 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2.l\\).b\\),er1" \
183         "mova/w.l @(0x1234:16,@(0x9abcdef0:32,er2.l).b),er1"
184 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@0x9abc(:16|).b\\),er1" \
185         "mova/w.l @(0x1234:16,@0x9abc:16.b),er1"
186 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@0x9abcdef0(:32|).b\\),er1" \
187         "mova/w.l @(0x1234:16,@0x9abcdef0:32.b),er1"
188 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@er2.w\\),er1" \
189         "mova/w.l @(0x1234:16,@er2.w),er1"
190 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x2(:2|),er2\\).w\\),er1" \
191         "mova/w.l @(0x1234:16,@(0x2:2,er2).w),er1"
192 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@er2\\+.w\\),er1" \
193         "mova/w.l @(0x1234:16,@er2+.w),er1"
194 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@-er2.w\\),er1" \
195         "mova/w.l @(0x1234:16,@-er2.w),er1"
196 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\+er2.w\\),er1" \
197         "mova/w.l @(0x1234:16,@+er2.w),er1"
198 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@er2-.w\\),er1" \
199         "mova/w.l @(0x1234:16,@er2-.w),er1"
200 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2\\).w\\),er1" \
201         "mova/w.l @(0x1234:16,@(0x9abc:16,er2).w),er1"
202 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2\\).w\\),er1" \
203         "mova/w.l @(0x1234:16,@(0x9abcdef0:32,er2).w),er1"
204 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2l.b\\).w\\),er1" \
205         "mova/w.l @(0x1234:16,@(0x9abc:16,r2l.b).w),er1"
206 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2.w\\).w\\),er1" \
207         "mova/w.l @(0x1234:16,@(0x9abc:16,r2.w).w),er1"
208 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2.l\\).w\\),er1" \
209         "mova/w.l @(0x1234:16,@(0x9abc:16,er2.l).w),er1"
210 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2l.b\\).w\\),er1" \
211         "mova/w.l @(0x1234:16,@(0x9abcdef0:32,r2l.b).w),er1"
212 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2.w\\).w\\),er1" \
213         "mova/w.l @(0x1234:16,@(0x9abcdef0:32,r2.w).w),er1"
214 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2.l\\).w\\),er1" \
215         "mova/w.l @(0x1234:16,@(0x9abcdef0:32,er2.l).w),er1"
216 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@0x9abc(:16|).w\\),er1" \
217         "mova/w.l @(0x1234:16,@0x9abc:16.w),er1"
218 gdb_test "x" "mova/w.l\t@\\(0x1234(:16|),@0x9abcdef0(:32|).w\\),er1" \
219         "mova/w.l @(0x1234:16,@0x9abcdef0:32.w),er1"
220 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@er2.b\\),er1" \
221         "mova/l.l @(0x1234:16,@er2.b),er1"
222 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x1(:2|),er2\\).b\\),er1" \
223         "mova/l.l @(0x1234:16,@(0x1:2,er2).b),er1"
224 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@er2\\+.b\\),er1" \
225         "mova/l.l @(0x1234:16,@er2+.b),er1"
226 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@-er2.b\\),er1" \
227         "mova/l.l @(0x1234:16,@-er2.b),er1"
228 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\+er2.b\\),er1" \
229         "mova/l.l @(0x1234:16,@+er2.b),er1"
230 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@er2-.b\\),er1" \
231         "mova/l.l @(0x1234:16,@er2-.b),er1"
232 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2\\).b\\),er1" \
233         "mova/l.l @(0x1234:16,@(0x9abc:16,er2).b),er1"
234 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2\\).b\\),er1" \
235         "mova/l.l @(0x1234:16,@(0x9abcdef0:32,er2).b),er1"
236 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2l.b\\).b\\),er1" \
237         "mova/l.l @(0x1234:16,@(0x9abc:16,r2l.b).b),er1"
238 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2.w\\).b\\),er1" \
239         "mova/l.l @(0x1234:16,@(0x9abc:16,r2.w).b),er1"
240 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2.l\\).b\\),er1" \
241         "mova/l.l @(0x1234:16,@(0x9abc:16,er2.l).b),er1"
242 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2l.b\\).b\\),er1" \
243         "mova/l.l @(0x1234:16,@(0x9abcdef0:32,r2l.b).b),er1"
244 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2.w\\).b\\),er1" \
245         "mova/l.l @(0x1234:16,@(0x9abcdef0:32,r2.w).b),er1"
246 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2.l\\).b\\),er1" \
247         "mova/l.l @(0x1234:16,@(0x9abcdef0:32,er2.l).b),er1"
248 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@0x9abc(:16|).b\\),er1" \
249         "mova/l.l @(0x1234:16,@0x9abc:16.b),er1"
250 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@0x9abcdef0(:32|).b\\),er1" \
251         "mova/l.l @(0x1234:16,@0x9abcdef0:32.b),er1"
252 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@er2.w\\),er1" \
253         "mova/l.l @(0x1234:16,@er2.w),er1"
254 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x2(:2|),er2\\).w\\),er1" \
255         "mova/l.l @(0x1234:16,@(0x2:2,er2).w),er1"
256 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@er2\\+.w\\),er1" \
257         "mova/l.l @(0x1234:16,@er2+.w),er1"
258 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@-er2.w\\),er1" \
259         "mova/l.l @(0x1234:16,@-er2.w),er1"
260 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\+er2.w\\),er1" \
261         "mova/l.l @(0x1234:16,@+er2.w),er1"
262 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@er2-.w\\),er1" \
263         "mova/l.l @(0x1234:16,@er2-.w),er1"
264 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2\\).w\\),er1" \
265         "mova/l.l @(0x1234:16,@(0x9abc:16,er2).w),er1"
266 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2\\).w\\),er1" \
267         "mova/l.l @(0x1234:16,@(0x9abcdef0:32,er2).w),er1"
268 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2l.b\\).w\\),er1" \
269         "mova/l.l @(0x1234:16,@(0x9abc:16,r2l.b).w),er1"
270 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),r2.w\\).w\\),er1" \
271         "mova/l.l @(0x1234:16,@(0x9abc:16,r2.w).w),er1"
272 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abc(:16|),er2.l\\).w\\),er1" \
273         "mova/l.l @(0x1234:16,@(0x9abc:16,er2.l).w),er1"
274 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2l.b\\).w\\),er1" \
275         "mova/l.l @(0x1234:16,@(0x9abcdef0:32,r2l.b).w),er1"
276 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),r2.w\\).w\\),er1" \
277         "mova/l.l @(0x1234:16,@(0x9abcdef0:32,r2.w).w),er1"
278 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@\\(0x9abcdef0(:32|),er2.l\\).w\\),er1" \
279         "mova/l.l @(0x1234:16,@(0x9abcdef0:32,er2.l).w),er1"
280 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@0x9abc(:16|).w\\),er1" \
281         "mova/l.l @(0x1234:16,@0x9abc:16.w),er1"
282 gdb_test "x" "mova/l.l\t@\\(0x1234(:16|),@0x9abcdef0(:32|).w\\),er1" \
283         "mova/l.l @(0x1234:16,@0x9abcdef0:32.w),er1"
284 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@er2.b\\),er1" \
285         "mova/b.l @(0x12345678:32,@er2.b),er1"
286 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x1(:2|),er2\\).b\\),er1" \
287         "mova/b.l @(0x12345678:32,@(0x1:2,er2).b),er1"
288 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@er2\\+.b\\),er1" \
289         "mova/b.l @(0x12345678:32,@er2+.b),er1"
290 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@-er2.b\\),er1" \
291         "mova/b.l @(0x12345678:32,@-er2.b),er1"
292 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\+er2.b\\),er1" \
293         "mova/b.l @(0x12345678:32,@+er2.b),er1"
294 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@er2-.b\\),er1" \
295         "mova/b.l @(0x12345678:32,@er2-.b),er1"
296 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2\\).b\\),er1" \
297         "mova/b.l @(0x12345678:32,@(0x9abc:16,er2).b),er1"
298 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2\\).b\\),er1" \
299         "mova/b.l @(0x12345678:32,@(0x9abcdef0:32,er2).b),er1"
300 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2l.b\\).b\\),er1" \
301         "mova/b.l @(0x12345678:32,@(0x9abc:16,r2l.b).b),er1"
302 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2.w\\).b\\),er1" \
303         "mova/b.l @(0x12345678:32,@(0x9abc:16,r2.w).b),er1"
304 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2.l\\).b\\),er1" \
305         "mova/b.l @(0x12345678:32,@(0x9abc:16,er2.l).b),er1"
306 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2l.b\\).b\\),er1" \
307         "mova/b.l @(0x12345678:32,@(0x9abcdef0:32,r2l.b).b),er1"
308 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2.w\\).b\\),er1" \
309         "mova/b.l @(0x12345678:32,@(0x9abcdef0:32,r2.w).b),er1"
310 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2.l\\).b\\),er1" \
311         "mova/b.l @(0x12345678:32,@(0x9abcdef0:32,er2.l).b),er1"
312 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@0x9abc(:16|).b\\),er1" \
313         "mova/b.l @(0x12345678:32,@0x9abc:16.b),er1"
314 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@0x9abcdef0(:32|).b\\),er1" \
315         "mova/b.l @(0x12345678:32,@0x9abcdef0:32.b),er1"
316 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@er2.w\\),er1" \
317         "mova/b.l @(0x12345678:32,@er2.w),er1"
318 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x2(:2|),er2\\).w\\),er1" \
319         "mova/b.l @(0x12345678:32,@(0x2:2,er2).w),er1"
320 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@er2\\+.w\\),er1" \
321         "mova/b.l @(0x12345678:32,@er2+.w),er1"
322 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@-er2.w\\),er1" \
323         "mova/b.l @(0x12345678:32,@-er2.w),er1"
324 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\+er2.w\\),er1" \
325         "mova/b.l @(0x12345678:32,@+er2.w),er1"
326 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@er2-.w\\),er1" \
327         "mova/b.l @(0x12345678:32,@er2-.w),er1"
328 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2\\).w\\),er1" \
329         "mova/b.l @(0x12345678:32,@(0x9abc:16,er2).w),er1"
330 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2\\).w\\),er1" \
331         "mova/b.l @(0x12345678:32,@(0x9abcdef0:32,er2).w),er1"
332 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2l.b\\).w\\),er1" \
333         "mova/b.l @(0x12345678:32,@(0x9abc:16,r2l.b).w),er1"
334 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2.w\\).w\\),er1" \
335         "mova/b.l @(0x12345678:32,@(0x9abc:16,r2.w).w),er1"
336 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2.l\\).w\\),er1" \
337         "mova/b.l @(0x12345678:32,@(0x9abc:16,er2.l).w),er1"
338 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2l.b\\).w\\),er1" \
339         "mova/b.l @(0x12345678:32,@(0x9abcdef0:32,r2l.b).w),er1"
340 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2.w\\).w\\),er1" \
341         "mova/b.l @(0x12345678:32,@(0x9abcdef0:32,r2.w).w),er1"
342 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2.l\\).w\\),er1" \
343         "mova/b.l @(0x12345678:32,@(0x9abcdef0:32,er2.l).w),er1"
344 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@0x9abc(:16|).w\\),er1" \
345         "mova/b.l @(0x12345678:32,@0x9abc:16.w),er1"
346 gdb_test "x" "mova/b.l\t@\\(0x12345678(:32|),@0x9abcdef0(:32|).w\\),er1" \
347         "mova/b.l @(0x12345678:32,@0x9abcdef0:32.w),er1"
348 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@er2.b\\),er1" \
349         "mova/w.l @(0x12345678:32,@er2.b),er1"
350 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x1(:2|),er2\\).b\\),er1" \
351         "mova/w.l @(0x12345678:32,@(0x1:2,er2).b),er1"
352 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@er2\\+.b\\),er1" \
353         "mova/w.l @(0x12345678:32,@er2+.b),er1"
354 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@-er2.b\\),er1" \
355         "mova/w.l @(0x12345678:32,@-er2.b),er1"
356 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\+er2.b\\),er1" \
357         "mova/w.l @(0x12345678:32,@+er2.b),er1"
358 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@er2-.b\\),er1" \
359         "mova/w.l @(0x12345678:32,@er2-.b),er1"
360 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2\\).b\\),er1" \
361         "mova/w.l @(0x12345678:32,@(0x9abc:16,er2).b),er1"
362 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2\\).b\\),er1" \
363         "mova/w.l @(0x12345678:32,@(0x9abcdef0:32,er2).b),er1"
364 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2l.b\\).b\\),er1" \
365         "mova/w.l @(0x12345678:32,@(0x9abc:16,r2l.b).b),er1"
366 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2.w\\).b\\),er1" \
367         "mova/w.l @(0x12345678:32,@(0x9abc:16,r2.w).b),er1"
368 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2.l\\).b\\),er1" \
369         "mova/w.l @(0x12345678:32,@(0x9abc:16,er2.l).b),er1"
370 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2l.b\\).b\\),er1" \
371         "mova/w.l @(0x12345678:32,@(0x9abcdef0:32,r2l.b).b),er1"
372 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2.w\\).b\\),er1" \
373         "mova/w.l @(0x12345678:32,@(0x9abcdef0:32,r2.w).b),er1"
374 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2.l\\).b\\),er1" \
375         "mova/w.l @(0x12345678:32,@(0x9abcdef0:32,er2.l).b),er1"
376 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@0x9abc(:16|).b\\),er1" \
377         "mova/w.l @(0x12345678:32,@0x9abc:16.b),er1"
378 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@0x9abcdef0(:32|).b\\),er1" \
379         "mova/w.l @(0x12345678:32,@0x9abcdef0:32.b),er1"
380 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@er2.w\\),er1" \
381         "mova/w.l @(0x12345678:32,@er2.w),er1"
382 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x2(:2|),er2\\).w\\),er1" \
383         "mova/w.l @(0x12345678:32,@(0x2:2,er2).w),er1"
384 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@er2\\+.w\\),er1" \
385         "mova/w.l @(0x12345678:32,@er2+.w),er1"
386 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@-er2.w\\),er1" \
387         "mova/w.l @(0x12345678:32,@-er2.w),er1"
388 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\+er2.w\\),er1" \
389         "mova/w.l @(0x12345678:32,@+er2.w),er1"
390 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@er2-.w\\),er1" \
391         "mova/w.l @(0x12345678:32,@er2-.w),er1"
392 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2\\).w\\),er1" \
393         "mova/w.l @(0x12345678:32,@(0x9abc:16,er2).w),er1"
394 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2\\).w\\),er1" \
395         "mova/w.l @(0x12345678:32,@(0x9abcdef0:32,er2).w),er1"
396 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2l.b\\).w\\),er1" \
397         "mova/w.l @(0x12345678:32,@(0x9abc:16,r2l.b).w),er1"
398 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2.w\\).w\\),er1" \
399         "mova/w.l @(0x12345678:32,@(0x9abc:16,r2.w).w),er1"
400 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2.l\\).w\\),er1" \
401         "mova/w.l @(0x12345678:32,@(0x9abc:16,er2.l).w),er1"
402 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2l.b\\).w\\),er1" \
403         "mova/w.l @(0x12345678:32,@(0x9abcdef0:32,r2l.b).w),er1"
404 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2.w\\).w\\),er1" \
405         "mova/w.l @(0x12345678:32,@(0x9abcdef0:32,r2.w).w),er1"
406 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2.l\\).w\\),er1" \
407         "mova/w.l @(0x12345678:32,@(0x9abcdef0:32,er2.l).w),er1"
408 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@0x9abc(:16|).w\\),er1" \
409         "mova/w.l @(0x12345678:32,@0x9abc:16.w),er1"
410 gdb_test "x" "mova/w.l\t@\\(0x12345678(:32|),@0x9abcdef0(:32|).w\\),er1" \
411         "mova/w.l @(0x12345678:32,@0x9abcdef0:32.w),er1"
412 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@er2.b\\),er1" \
413         "mova/l.l @(0x12345678:32,@er2.b),er1"
414 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x1(:2|),er2\\).b\\),er1" \
415         "mova/l.l @(0x12345678:32,@(0x1:2,er2).b),er1"
416 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@er2\\+.b\\),er1" \
417         "mova/l.l @(0x12345678:32,@er2+.b),er1"
418 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@-er2.b\\),er1" \
419         "mova/l.l @(0x12345678:32,@-er2.b),er1"
420 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\+er2.b\\),er1" \
421         "mova/l.l @(0x12345678:32,@+er2.b),er1"
422 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@er2-.b\\),er1" \
423         "mova/l.l @(0x12345678:32,@er2-.b),er1"
424 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2\\).b\\),er1" \
425         "mova/l.l @(0x12345678:32,@(0x9abc:16,er2).b),er1"
426 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2\\).b\\),er1" \
427         "mova/l.l @(0x12345678:32,@(0x9abcdef0:32,er2).b),er1"
428 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2l.b\\).b\\),er1" \
429         "mova/l.l @(0x12345678:32,@(0x9abc:16,r2l.b).b),er1"
430 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2.w\\).b\\),er1" \
431         "mova/l.l @(0x12345678:32,@(0x9abc:16,r2.w).b),er1"
432 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2.l\\).b\\),er1" \
433         "mova/l.l @(0x12345678:32,@(0x9abc:16,er2.l).b),er1"
434 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2l.b\\).b\\),er1" \
435         "mova/l.l @(0x12345678:32,@(0x9abcdef0:32,r2l.b).b),er1"
436 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2.w\\).b\\),er1" \
437         "mova/l.l @(0x12345678:32,@(0x9abcdef0:32,r2.w).b),er1"
438 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2.l\\).b\\),er1" \
439         "mova/l.l @(0x12345678:32,@(0x9abcdef0:32,er2.l).b),er1"
440 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@0x9abc(:16|).b\\),er1" \
441         "mova/l.l @(0x12345678:32,@0x9abc:16.b),er1"
442 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@0x9abcdef0(:32|).b\\),er1" \
443         "mova/l.l @(0x12345678:32,@0x9abcdef0:32.b),er1"
444 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@er2.w\\),er1" \
445         "mova/l.l @(0x12345678:32,@er2.w),er1"
446 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x2(:2|),er2\\).w\\),er1" \
447         "mova/l.l @(0x12345678:32,@(0x2:2,er2).w),er1"
448 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@er2\\+.w\\),er1" \
449         "mova/l.l @(0x12345678:32,@er2+.w),er1"
450 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@-er2.w\\),er1" \
451         "mova/l.l @(0x12345678:32,@-er2.w),er1"
452 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\+er2.w\\),er1" \
453         "mova/l.l @(0x12345678:32,@+er2.w),er1"
454 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@er2-.w\\),er1" \
455         "mova/l.l @(0x12345678:32,@er2-.w),er1"
456 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2\\).w\\),er1" \
457         "mova/l.l @(0x12345678:32,@(0x9abc:16,er2).w),er1"
458 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2\\).w\\),er1" \
459         "mova/l.l @(0x12345678:32,@(0x9abcdef0:32,er2).w),er1"
460 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2l.b\\).w\\),er1" \
461         "mova/l.l @(0x12345678:32,@(0x9abc:16,r2l.b).w),er1"
462 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),r2.w\\).w\\),er1" \
463         "mova/l.l @(0x12345678:32,@(0x9abc:16,r2.w).w),er1"
464 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abc(:16|),er2.l\\).w\\),er1" \
465         "mova/l.l @(0x12345678:32,@(0x9abc:16,er2.l).w),er1"
466 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2l.b\\).w\\),er1" \
467         "mova/l.l @(0x12345678:32,@(0x9abcdef0:32,r2l.b).w),er1"
468 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),r2.w\\).w\\),er1" \
469         "mova/l.l @(0x12345678:32,@(0x9abcdef0:32,r2.w).w),er1"
470 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@\\(0x9abcdef0(:32|),er2.l\\).w\\),er1" \
471         "mova/l.l @(0x12345678:32,@(0x9abcdef0:32,er2.l).w),er1"
472 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@0x9abc(:16|).w\\),er1" \
473         "mova/l.l @(0x12345678:32,@0x9abc:16.w),er1"
474 gdb_test "x" "mova/l.l\t@\\(0x12345678(:32|),@0x9abcdef0(:32|).w\\),er1" \
475         "mova/l.l @(0x12345678:32,@0x9abcdef0:32.w),er1"