1b8021494Sopenharmony_ci// Copyright 2016, VIXL authors
2b8021494Sopenharmony_ci// All rights reserved.
3b8021494Sopenharmony_ci//
4b8021494Sopenharmony_ci// Redistribution and use in source and binary forms, with or without
5b8021494Sopenharmony_ci// modification, are permitted provided that the following conditions are met:
6b8021494Sopenharmony_ci//
7b8021494Sopenharmony_ci//   * Redistributions of source code must retain the above copyright notice,
8b8021494Sopenharmony_ci//     this list of conditions and the following disclaimer.
9b8021494Sopenharmony_ci//   * Redistributions in binary form must reproduce the above copyright notice,
10b8021494Sopenharmony_ci//     this list of conditions and the following disclaimer in the documentation
11b8021494Sopenharmony_ci//     and/or other materials provided with the distribution.
12b8021494Sopenharmony_ci//   * Neither the name of ARM Limited nor the names of its contributors may be
13b8021494Sopenharmony_ci//     used to endorse or promote products derived from this software without
14b8021494Sopenharmony_ci//     specific prior written permission.
15b8021494Sopenharmony_ci//
16b8021494Sopenharmony_ci// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS CONTRIBUTORS "AS IS" AND
17b8021494Sopenharmony_ci// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18b8021494Sopenharmony_ci// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19b8021494Sopenharmony_ci// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
20b8021494Sopenharmony_ci// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21b8021494Sopenharmony_ci// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22b8021494Sopenharmony_ci// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23b8021494Sopenharmony_ci// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24b8021494Sopenharmony_ci// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25b8021494Sopenharmony_ci// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26b8021494Sopenharmony_ci
27b8021494Sopenharmony_ci
28b8021494Sopenharmony_ci// -----------------------------------------------------------------------------
29b8021494Sopenharmony_ci// This file is auto generated from the
30b8021494Sopenharmony_ci// test/aarch32/config/template-simulator-aarch32.cc.in template file using
31b8021494Sopenharmony_ci// tools/generate_tests.py.
32b8021494Sopenharmony_ci//
33b8021494Sopenharmony_ci// PLEASE DO NOT EDIT.
34b8021494Sopenharmony_ci// -----------------------------------------------------------------------------
35b8021494Sopenharmony_ci
36b8021494Sopenharmony_ci
37b8021494Sopenharmony_ci#include "test-runner.h"
38b8021494Sopenharmony_ci
39b8021494Sopenharmony_ci#include "test-utils.h"
40b8021494Sopenharmony_ci#include "test-utils-aarch32.h"
41b8021494Sopenharmony_ci
42b8021494Sopenharmony_ci#include "aarch32/assembler-aarch32.h"
43b8021494Sopenharmony_ci#include "aarch32/disasm-aarch32.h"
44b8021494Sopenharmony_ci#include "aarch32/macro-assembler-aarch32.h"
45b8021494Sopenharmony_ci
46b8021494Sopenharmony_ci#define __ masm.
47b8021494Sopenharmony_ci#define BUF_SIZE (4096)
48b8021494Sopenharmony_ci
49b8021494Sopenharmony_ci#ifdef VIXL_INCLUDE_SIMULATOR_AARCH32
50b8021494Sopenharmony_ci// Run tests with the simulator.
51b8021494Sopenharmony_ci
52b8021494Sopenharmony_ci#define SETUP() MacroAssembler masm(BUF_SIZE)
53b8021494Sopenharmony_ci
54b8021494Sopenharmony_ci#define START() masm.GetBuffer()->Reset()
55b8021494Sopenharmony_ci
56b8021494Sopenharmony_ci#define END() \
57b8021494Sopenharmony_ci  __ Hlt(0);  \
58b8021494Sopenharmony_ci  __ FinalizeCode();
59b8021494Sopenharmony_ci
60b8021494Sopenharmony_ci// TODO: Run the tests in the simulator.
61b8021494Sopenharmony_ci#define RUN()
62b8021494Sopenharmony_ci
63b8021494Sopenharmony_ci#else  // ifdef VIXL_INCLUDE_SIMULATOR_AARCH32.
64b8021494Sopenharmony_ci
65b8021494Sopenharmony_ci#define SETUP()                  \
66b8021494Sopenharmony_ci  MacroAssembler masm(BUF_SIZE); \
67b8021494Sopenharmony_ci  UseScratchRegisterScope harness_scratch;
68b8021494Sopenharmony_ci
69b8021494Sopenharmony_ci#define START()                 \
70b8021494Sopenharmony_ci  harness_scratch.Open(&masm);  \
71b8021494Sopenharmony_ci  harness_scratch.ExcludeAll(); \
72b8021494Sopenharmony_ci  masm.GetBuffer()->Reset();    \
73b8021494Sopenharmony_ci  __ Push(r4);                  \
74b8021494Sopenharmony_ci  __ Push(r5);                  \
75b8021494Sopenharmony_ci  __ Push(r6);                  \
76b8021494Sopenharmony_ci  __ Push(r7);                  \
77b8021494Sopenharmony_ci  __ Push(r8);                  \
78b8021494Sopenharmony_ci  __ Push(r9);                  \
79b8021494Sopenharmony_ci  __ Push(r10);                 \
80b8021494Sopenharmony_ci  __ Push(r11);                 \
81b8021494Sopenharmony_ci  __ Push(lr);                  \
82b8021494Sopenharmony_ci  harness_scratch.Include(ip);
83b8021494Sopenharmony_ci
84b8021494Sopenharmony_ci#define END()                  \
85b8021494Sopenharmony_ci  harness_scratch.Exclude(ip); \
86b8021494Sopenharmony_ci  __ Pop(lr);                  \
87b8021494Sopenharmony_ci  __ Pop(r11);                 \
88b8021494Sopenharmony_ci  __ Pop(r10);                 \
89b8021494Sopenharmony_ci  __ Pop(r9);                  \
90b8021494Sopenharmony_ci  __ Pop(r8);                  \
91b8021494Sopenharmony_ci  __ Pop(r7);                  \
92b8021494Sopenharmony_ci  __ Pop(r6);                  \
93b8021494Sopenharmony_ci  __ Pop(r5);                  \
94b8021494Sopenharmony_ci  __ Pop(r4);                  \
95b8021494Sopenharmony_ci  __ Bx(lr);                   \
96b8021494Sopenharmony_ci  __ FinalizeCode();           \
97b8021494Sopenharmony_ci  harness_scratch.Close();
98b8021494Sopenharmony_ci
99b8021494Sopenharmony_ci#define RUN()                                                 \
100b8021494Sopenharmony_ci  {                                                           \
101b8021494Sopenharmony_ci    int pcs_offset = masm.IsUsingT32() ? 1 : 0;               \
102b8021494Sopenharmony_ci    masm.GetBuffer()->SetExecutable();                        \
103b8021494Sopenharmony_ci    ExecuteMemory(masm.GetBuffer()->GetStartAddress<byte*>(), \
104b8021494Sopenharmony_ci                  masm.GetSizeOfCodeGenerated(),              \
105b8021494Sopenharmony_ci                  pcs_offset);                                \
106b8021494Sopenharmony_ci    masm.GetBuffer()->SetWritable();                          \
107b8021494Sopenharmony_ci  }
108b8021494Sopenharmony_ci
109b8021494Sopenharmony_ci#endif  // ifdef VIXL_INCLUDE_SIMULATOR_AARCH32
110b8021494Sopenharmony_ci
111b8021494Sopenharmony_cinamespace vixl {
112b8021494Sopenharmony_cinamespace aarch32 {
113b8021494Sopenharmony_ci
114b8021494Sopenharmony_ci// List of instruction encodings:
115b8021494Sopenharmony_ci#define FOREACH_INSTRUCTION(M) \
116b8021494Sopenharmony_ci  M(Cmp)                       \
117b8021494Sopenharmony_ci  M(Mov)                       \
118b8021494Sopenharmony_ci  M(Movs)
119b8021494Sopenharmony_ci
120b8021494Sopenharmony_ci
121b8021494Sopenharmony_ci// The following definitions are defined again in each generated test, therefore
122b8021494Sopenharmony_ci// we need to place them in an anonymous namespace. It expresses that they are
123b8021494Sopenharmony_ci// local to this file only, and the compiler is not allowed to share these types
124b8021494Sopenharmony_ci// across test files during template instantiation. Specifically, `Operands` and
125b8021494Sopenharmony_ci// `Inputs` have various layouts across generated tests so they absolutely
126b8021494Sopenharmony_ci// cannot be shared.
127b8021494Sopenharmony_ci
128b8021494Sopenharmony_ci#ifdef VIXL_INCLUDE_TARGET_T32
129b8021494Sopenharmony_cinamespace {
130b8021494Sopenharmony_ci
131b8021494Sopenharmony_ci// Values to be passed to the assembler to produce the instruction under test.
132b8021494Sopenharmony_cistruct Operands {
133b8021494Sopenharmony_ci  Condition cond;
134b8021494Sopenharmony_ci  Register rd;
135b8021494Sopenharmony_ci  int32_t immediate;
136b8021494Sopenharmony_ci};
137b8021494Sopenharmony_ci
138b8021494Sopenharmony_ci// Input data to feed to the instruction.
139b8021494Sopenharmony_cistruct Inputs {
140b8021494Sopenharmony_ci  uint32_t apsr;
141b8021494Sopenharmony_ci  uint32_t rd;
142b8021494Sopenharmony_ci};
143b8021494Sopenharmony_ci
144b8021494Sopenharmony_ci// This structure contains all input data needed to test one specific encoding.
145b8021494Sopenharmony_ci// It used to generate a loop over an instruction.
146b8021494Sopenharmony_cistruct TestLoopData {
147b8021494Sopenharmony_ci  // The `operands` fields represents the values to pass to the assembler to
148b8021494Sopenharmony_ci  // produce the instruction.
149b8021494Sopenharmony_ci  Operands operands;
150b8021494Sopenharmony_ci  // Description of the operands, used for error reporting.
151b8021494Sopenharmony_ci  const char* operands_description;
152b8021494Sopenharmony_ci  // Unique identifier, used for generating traces.
153b8021494Sopenharmony_ci  const char* identifier;
154b8021494Sopenharmony_ci  // Array of values to be fed to the instruction.
155b8021494Sopenharmony_ci  size_t input_size;
156b8021494Sopenharmony_ci  const Inputs* inputs;
157b8021494Sopenharmony_ci};
158b8021494Sopenharmony_ci
159b8021494Sopenharmony_cistatic const Inputs kCondition[] = {{NFlag, 0xabababab},
160b8021494Sopenharmony_ci                                    {ZFlag, 0xabababab},
161b8021494Sopenharmony_ci                                    {CFlag, 0xabababab},
162b8021494Sopenharmony_ci                                    {VFlag, 0xabababab},
163b8021494Sopenharmony_ci                                    {NZFlag, 0xabababab},
164b8021494Sopenharmony_ci                                    {NCFlag, 0xabababab},
165b8021494Sopenharmony_ci                                    {NVFlag, 0xabababab},
166b8021494Sopenharmony_ci                                    {ZCFlag, 0xabababab},
167b8021494Sopenharmony_ci                                    {ZVFlag, 0xabababab},
168b8021494Sopenharmony_ci                                    {CVFlag, 0xabababab},
169b8021494Sopenharmony_ci                                    {NZCFlag, 0xabababab},
170b8021494Sopenharmony_ci                                    {NZVFlag, 0xabababab},
171b8021494Sopenharmony_ci                                    {NCVFlag, 0xabababab},
172b8021494Sopenharmony_ci                                    {ZCVFlag, 0xabababab},
173b8021494Sopenharmony_ci                                    {NZCVFlag, 0xabababab}};
174b8021494Sopenharmony_ci
175b8021494Sopenharmony_cistatic const Inputs kModifiedImmediate[] =
176b8021494Sopenharmony_ci    {{NoFlag, 0x00000000}, {NoFlag, 0x00000001}, {NoFlag, 0x00000002},
177b8021494Sopenharmony_ci     {NoFlag, 0x00000020}, {NoFlag, 0x0000007d}, {NoFlag, 0x0000007e},
178b8021494Sopenharmony_ci     {NoFlag, 0x0000007f}, {NoFlag, 0x00007ffd}, {NoFlag, 0x00007ffe},
179b8021494Sopenharmony_ci     {NoFlag, 0x00007fff}, {NoFlag, 0x33333333}, {NoFlag, 0x55555555},
180b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd}, {NoFlag, 0x7ffffffe}, {NoFlag, 0x7fffffff},
181b8021494Sopenharmony_ci     {NoFlag, 0x80000000}, {NoFlag, 0x80000001}, {NoFlag, 0xaaaaaaaa},
182b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc}, {NoFlag, 0xffff8000}, {NoFlag, 0xffff8001},
183b8021494Sopenharmony_ci     {NoFlag, 0xffff8002}, {NoFlag, 0xffff8003}, {NoFlag, 0xffffff80},
184b8021494Sopenharmony_ci     {NoFlag, 0xffffff81}, {NoFlag, 0xffffff82}, {NoFlag, 0xffffff83},
185b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0}, {NoFlag, 0xfffffffd}, {NoFlag, 0xfffffffe},
186b8021494Sopenharmony_ci     {NoFlag, 0xffffffff}};
187b8021494Sopenharmony_ci
188b8021494Sopenharmony_ci
189b8021494Sopenharmony_ci// A loop will be generated for each element of this array.
190b8021494Sopenharmony_ciconst TestLoopData kTests[] = {{{eq, r0, 0},
191b8021494Sopenharmony_ci                                "eq r0 0",
192b8021494Sopenharmony_ci                                "Condition_eq_r0_0",
193b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
194b8021494Sopenharmony_ci                                kCondition},
195b8021494Sopenharmony_ci                               {{ne, r0, 0},
196b8021494Sopenharmony_ci                                "ne r0 0",
197b8021494Sopenharmony_ci                                "Condition_ne_r0_0",
198b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
199b8021494Sopenharmony_ci                                kCondition},
200b8021494Sopenharmony_ci                               {{cs, r0, 0},
201b8021494Sopenharmony_ci                                "cs r0 0",
202b8021494Sopenharmony_ci                                "Condition_cs_r0_0",
203b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
204b8021494Sopenharmony_ci                                kCondition},
205b8021494Sopenharmony_ci                               {{cc, r0, 0},
206b8021494Sopenharmony_ci                                "cc r0 0",
207b8021494Sopenharmony_ci                                "Condition_cc_r0_0",
208b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
209b8021494Sopenharmony_ci                                kCondition},
210b8021494Sopenharmony_ci                               {{mi, r0, 0},
211b8021494Sopenharmony_ci                                "mi r0 0",
212b8021494Sopenharmony_ci                                "Condition_mi_r0_0",
213b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
214b8021494Sopenharmony_ci                                kCondition},
215b8021494Sopenharmony_ci                               {{pl, r0, 0},
216b8021494Sopenharmony_ci                                "pl r0 0",
217b8021494Sopenharmony_ci                                "Condition_pl_r0_0",
218b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
219b8021494Sopenharmony_ci                                kCondition},
220b8021494Sopenharmony_ci                               {{vs, r0, 0},
221b8021494Sopenharmony_ci                                "vs r0 0",
222b8021494Sopenharmony_ci                                "Condition_vs_r0_0",
223b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
224b8021494Sopenharmony_ci                                kCondition},
225b8021494Sopenharmony_ci                               {{vc, r0, 0},
226b8021494Sopenharmony_ci                                "vc r0 0",
227b8021494Sopenharmony_ci                                "Condition_vc_r0_0",
228b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
229b8021494Sopenharmony_ci                                kCondition},
230b8021494Sopenharmony_ci                               {{hi, r0, 0},
231b8021494Sopenharmony_ci                                "hi r0 0",
232b8021494Sopenharmony_ci                                "Condition_hi_r0_0",
233b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
234b8021494Sopenharmony_ci                                kCondition},
235b8021494Sopenharmony_ci                               {{ls, r0, 0},
236b8021494Sopenharmony_ci                                "ls r0 0",
237b8021494Sopenharmony_ci                                "Condition_ls_r0_0",
238b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
239b8021494Sopenharmony_ci                                kCondition},
240b8021494Sopenharmony_ci                               {{ge, r0, 0},
241b8021494Sopenharmony_ci                                "ge r0 0",
242b8021494Sopenharmony_ci                                "Condition_ge_r0_0",
243b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
244b8021494Sopenharmony_ci                                kCondition},
245b8021494Sopenharmony_ci                               {{lt, r0, 0},
246b8021494Sopenharmony_ci                                "lt r0 0",
247b8021494Sopenharmony_ci                                "Condition_lt_r0_0",
248b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
249b8021494Sopenharmony_ci                                kCondition},
250b8021494Sopenharmony_ci                               {{gt, r0, 0},
251b8021494Sopenharmony_ci                                "gt r0 0",
252b8021494Sopenharmony_ci                                "Condition_gt_r0_0",
253b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
254b8021494Sopenharmony_ci                                kCondition},
255b8021494Sopenharmony_ci                               {{le, r0, 0},
256b8021494Sopenharmony_ci                                "le r0 0",
257b8021494Sopenharmony_ci                                "Condition_le_r0_0",
258b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
259b8021494Sopenharmony_ci                                kCondition},
260b8021494Sopenharmony_ci                               {{al, r0, 0},
261b8021494Sopenharmony_ci                                "al r0 0",
262b8021494Sopenharmony_ci                                "Condition_al_r0_0",
263b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
264b8021494Sopenharmony_ci                                kCondition},
265b8021494Sopenharmony_ci                               {{al, r0, 0},
266b8021494Sopenharmony_ci                                "al r0 0",
267b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_0",
268b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
269b8021494Sopenharmony_ci                                kModifiedImmediate},
270b8021494Sopenharmony_ci                               {{al, r0, 1},
271b8021494Sopenharmony_ci                                "al r0 1",
272b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_1",
273b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
274b8021494Sopenharmony_ci                                kModifiedImmediate},
275b8021494Sopenharmony_ci                               {{al, r0, 2},
276b8021494Sopenharmony_ci                                "al r0 2",
277b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_2",
278b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
279b8021494Sopenharmony_ci                                kModifiedImmediate},
280b8021494Sopenharmony_ci                               {{al, r0, 3},
281b8021494Sopenharmony_ci                                "al r0 3",
282b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_3",
283b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
284b8021494Sopenharmony_ci                                kModifiedImmediate},
285b8021494Sopenharmony_ci                               {{al, r0, 4},
286b8021494Sopenharmony_ci                                "al r0 4",
287b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_4",
288b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
289b8021494Sopenharmony_ci                                kModifiedImmediate},
290b8021494Sopenharmony_ci                               {{al, r0, 5},
291b8021494Sopenharmony_ci                                "al r0 5",
292b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_5",
293b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
294b8021494Sopenharmony_ci                                kModifiedImmediate},
295b8021494Sopenharmony_ci                               {{al, r0, 6},
296b8021494Sopenharmony_ci                                "al r0 6",
297b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_6",
298b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
299b8021494Sopenharmony_ci                                kModifiedImmediate},
300b8021494Sopenharmony_ci                               {{al, r0, 7},
301b8021494Sopenharmony_ci                                "al r0 7",
302b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_7",
303b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
304b8021494Sopenharmony_ci                                kModifiedImmediate},
305b8021494Sopenharmony_ci                               {{al, r0, 8},
306b8021494Sopenharmony_ci                                "al r0 8",
307b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_8",
308b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
309b8021494Sopenharmony_ci                                kModifiedImmediate},
310b8021494Sopenharmony_ci                               {{al, r0, 9},
311b8021494Sopenharmony_ci                                "al r0 9",
312b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_9",
313b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
314b8021494Sopenharmony_ci                                kModifiedImmediate},
315b8021494Sopenharmony_ci                               {{al, r0, 10},
316b8021494Sopenharmony_ci                                "al r0 10",
317b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_10",
318b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
319b8021494Sopenharmony_ci                                kModifiedImmediate},
320b8021494Sopenharmony_ci                               {{al, r0, 11},
321b8021494Sopenharmony_ci                                "al r0 11",
322b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_11",
323b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
324b8021494Sopenharmony_ci                                kModifiedImmediate},
325b8021494Sopenharmony_ci                               {{al, r0, 12},
326b8021494Sopenharmony_ci                                "al r0 12",
327b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_12",
328b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
329b8021494Sopenharmony_ci                                kModifiedImmediate},
330b8021494Sopenharmony_ci                               {{al, r0, 13},
331b8021494Sopenharmony_ci                                "al r0 13",
332b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_13",
333b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
334b8021494Sopenharmony_ci                                kModifiedImmediate},
335b8021494Sopenharmony_ci                               {{al, r0, 14},
336b8021494Sopenharmony_ci                                "al r0 14",
337b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_14",
338b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
339b8021494Sopenharmony_ci                                kModifiedImmediate},
340b8021494Sopenharmony_ci                               {{al, r0, 15},
341b8021494Sopenharmony_ci                                "al r0 15",
342b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_15",
343b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
344b8021494Sopenharmony_ci                                kModifiedImmediate},
345b8021494Sopenharmony_ci                               {{al, r0, 16},
346b8021494Sopenharmony_ci                                "al r0 16",
347b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_16",
348b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
349b8021494Sopenharmony_ci                                kModifiedImmediate},
350b8021494Sopenharmony_ci                               {{al, r0, 17},
351b8021494Sopenharmony_ci                                "al r0 17",
352b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_17",
353b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
354b8021494Sopenharmony_ci                                kModifiedImmediate},
355b8021494Sopenharmony_ci                               {{al, r0, 18},
356b8021494Sopenharmony_ci                                "al r0 18",
357b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_18",
358b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
359b8021494Sopenharmony_ci                                kModifiedImmediate},
360b8021494Sopenharmony_ci                               {{al, r0, 19},
361b8021494Sopenharmony_ci                                "al r0 19",
362b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_19",
363b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
364b8021494Sopenharmony_ci                                kModifiedImmediate},
365b8021494Sopenharmony_ci                               {{al, r0, 20},
366b8021494Sopenharmony_ci                                "al r0 20",
367b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_20",
368b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
369b8021494Sopenharmony_ci                                kModifiedImmediate},
370b8021494Sopenharmony_ci                               {{al, r0, 21},
371b8021494Sopenharmony_ci                                "al r0 21",
372b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_21",
373b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
374b8021494Sopenharmony_ci                                kModifiedImmediate},
375b8021494Sopenharmony_ci                               {{al, r0, 22},
376b8021494Sopenharmony_ci                                "al r0 22",
377b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_22",
378b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
379b8021494Sopenharmony_ci                                kModifiedImmediate},
380b8021494Sopenharmony_ci                               {{al, r0, 23},
381b8021494Sopenharmony_ci                                "al r0 23",
382b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_23",
383b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
384b8021494Sopenharmony_ci                                kModifiedImmediate},
385b8021494Sopenharmony_ci                               {{al, r0, 24},
386b8021494Sopenharmony_ci                                "al r0 24",
387b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_24",
388b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
389b8021494Sopenharmony_ci                                kModifiedImmediate},
390b8021494Sopenharmony_ci                               {{al, r0, 25},
391b8021494Sopenharmony_ci                                "al r0 25",
392b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_25",
393b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
394b8021494Sopenharmony_ci                                kModifiedImmediate},
395b8021494Sopenharmony_ci                               {{al, r0, 26},
396b8021494Sopenharmony_ci                                "al r0 26",
397b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_26",
398b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
399b8021494Sopenharmony_ci                                kModifiedImmediate},
400b8021494Sopenharmony_ci                               {{al, r0, 27},
401b8021494Sopenharmony_ci                                "al r0 27",
402b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_27",
403b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
404b8021494Sopenharmony_ci                                kModifiedImmediate},
405b8021494Sopenharmony_ci                               {{al, r0, 28},
406b8021494Sopenharmony_ci                                "al r0 28",
407b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_28",
408b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
409b8021494Sopenharmony_ci                                kModifiedImmediate},
410b8021494Sopenharmony_ci                               {{al, r0, 29},
411b8021494Sopenharmony_ci                                "al r0 29",
412b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_29",
413b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
414b8021494Sopenharmony_ci                                kModifiedImmediate},
415b8021494Sopenharmony_ci                               {{al, r0, 30},
416b8021494Sopenharmony_ci                                "al r0 30",
417b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_30",
418b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
419b8021494Sopenharmony_ci                                kModifiedImmediate},
420b8021494Sopenharmony_ci                               {{al, r0, 31},
421b8021494Sopenharmony_ci                                "al r0 31",
422b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_31",
423b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
424b8021494Sopenharmony_ci                                kModifiedImmediate},
425b8021494Sopenharmony_ci                               {{al, r0, 32},
426b8021494Sopenharmony_ci                                "al r0 32",
427b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_32",
428b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
429b8021494Sopenharmony_ci                                kModifiedImmediate},
430b8021494Sopenharmony_ci                               {{al, r0, 33},
431b8021494Sopenharmony_ci                                "al r0 33",
432b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_33",
433b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
434b8021494Sopenharmony_ci                                kModifiedImmediate},
435b8021494Sopenharmony_ci                               {{al, r0, 34},
436b8021494Sopenharmony_ci                                "al r0 34",
437b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_34",
438b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
439b8021494Sopenharmony_ci                                kModifiedImmediate},
440b8021494Sopenharmony_ci                               {{al, r0, 35},
441b8021494Sopenharmony_ci                                "al r0 35",
442b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_35",
443b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
444b8021494Sopenharmony_ci                                kModifiedImmediate},
445b8021494Sopenharmony_ci                               {{al, r0, 36},
446b8021494Sopenharmony_ci                                "al r0 36",
447b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_36",
448b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
449b8021494Sopenharmony_ci                                kModifiedImmediate},
450b8021494Sopenharmony_ci                               {{al, r0, 37},
451b8021494Sopenharmony_ci                                "al r0 37",
452b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_37",
453b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
454b8021494Sopenharmony_ci                                kModifiedImmediate},
455b8021494Sopenharmony_ci                               {{al, r0, 38},
456b8021494Sopenharmony_ci                                "al r0 38",
457b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_38",
458b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
459b8021494Sopenharmony_ci                                kModifiedImmediate},
460b8021494Sopenharmony_ci                               {{al, r0, 39},
461b8021494Sopenharmony_ci                                "al r0 39",
462b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_39",
463b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
464b8021494Sopenharmony_ci                                kModifiedImmediate},
465b8021494Sopenharmony_ci                               {{al, r0, 40},
466b8021494Sopenharmony_ci                                "al r0 40",
467b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_40",
468b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
469b8021494Sopenharmony_ci                                kModifiedImmediate},
470b8021494Sopenharmony_ci                               {{al, r0, 41},
471b8021494Sopenharmony_ci                                "al r0 41",
472b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_41",
473b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
474b8021494Sopenharmony_ci                                kModifiedImmediate},
475b8021494Sopenharmony_ci                               {{al, r0, 42},
476b8021494Sopenharmony_ci                                "al r0 42",
477b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_42",
478b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
479b8021494Sopenharmony_ci                                kModifiedImmediate},
480b8021494Sopenharmony_ci                               {{al, r0, 43},
481b8021494Sopenharmony_ci                                "al r0 43",
482b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_43",
483b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
484b8021494Sopenharmony_ci                                kModifiedImmediate},
485b8021494Sopenharmony_ci                               {{al, r0, 44},
486b8021494Sopenharmony_ci                                "al r0 44",
487b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_44",
488b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
489b8021494Sopenharmony_ci                                kModifiedImmediate},
490b8021494Sopenharmony_ci                               {{al, r0, 45},
491b8021494Sopenharmony_ci                                "al r0 45",
492b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_45",
493b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
494b8021494Sopenharmony_ci                                kModifiedImmediate},
495b8021494Sopenharmony_ci                               {{al, r0, 46},
496b8021494Sopenharmony_ci                                "al r0 46",
497b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_46",
498b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
499b8021494Sopenharmony_ci                                kModifiedImmediate},
500b8021494Sopenharmony_ci                               {{al, r0, 47},
501b8021494Sopenharmony_ci                                "al r0 47",
502b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_47",
503b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
504b8021494Sopenharmony_ci                                kModifiedImmediate},
505b8021494Sopenharmony_ci                               {{al, r0, 48},
506b8021494Sopenharmony_ci                                "al r0 48",
507b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_48",
508b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
509b8021494Sopenharmony_ci                                kModifiedImmediate},
510b8021494Sopenharmony_ci                               {{al, r0, 49},
511b8021494Sopenharmony_ci                                "al r0 49",
512b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_49",
513b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
514b8021494Sopenharmony_ci                                kModifiedImmediate},
515b8021494Sopenharmony_ci                               {{al, r0, 50},
516b8021494Sopenharmony_ci                                "al r0 50",
517b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_50",
518b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
519b8021494Sopenharmony_ci                                kModifiedImmediate},
520b8021494Sopenharmony_ci                               {{al, r0, 51},
521b8021494Sopenharmony_ci                                "al r0 51",
522b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_51",
523b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
524b8021494Sopenharmony_ci                                kModifiedImmediate},
525b8021494Sopenharmony_ci                               {{al, r0, 52},
526b8021494Sopenharmony_ci                                "al r0 52",
527b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_52",
528b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
529b8021494Sopenharmony_ci                                kModifiedImmediate},
530b8021494Sopenharmony_ci                               {{al, r0, 53},
531b8021494Sopenharmony_ci                                "al r0 53",
532b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_53",
533b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
534b8021494Sopenharmony_ci                                kModifiedImmediate},
535b8021494Sopenharmony_ci                               {{al, r0, 54},
536b8021494Sopenharmony_ci                                "al r0 54",
537b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_54",
538b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
539b8021494Sopenharmony_ci                                kModifiedImmediate},
540b8021494Sopenharmony_ci                               {{al, r0, 55},
541b8021494Sopenharmony_ci                                "al r0 55",
542b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_55",
543b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
544b8021494Sopenharmony_ci                                kModifiedImmediate},
545b8021494Sopenharmony_ci                               {{al, r0, 56},
546b8021494Sopenharmony_ci                                "al r0 56",
547b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_56",
548b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
549b8021494Sopenharmony_ci                                kModifiedImmediate},
550b8021494Sopenharmony_ci                               {{al, r0, 57},
551b8021494Sopenharmony_ci                                "al r0 57",
552b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_57",
553b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
554b8021494Sopenharmony_ci                                kModifiedImmediate},
555b8021494Sopenharmony_ci                               {{al, r0, 58},
556b8021494Sopenharmony_ci                                "al r0 58",
557b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_58",
558b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
559b8021494Sopenharmony_ci                                kModifiedImmediate},
560b8021494Sopenharmony_ci                               {{al, r0, 59},
561b8021494Sopenharmony_ci                                "al r0 59",
562b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_59",
563b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
564b8021494Sopenharmony_ci                                kModifiedImmediate},
565b8021494Sopenharmony_ci                               {{al, r0, 60},
566b8021494Sopenharmony_ci                                "al r0 60",
567b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_60",
568b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
569b8021494Sopenharmony_ci                                kModifiedImmediate},
570b8021494Sopenharmony_ci                               {{al, r0, 61},
571b8021494Sopenharmony_ci                                "al r0 61",
572b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_61",
573b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
574b8021494Sopenharmony_ci                                kModifiedImmediate},
575b8021494Sopenharmony_ci                               {{al, r0, 62},
576b8021494Sopenharmony_ci                                "al r0 62",
577b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_62",
578b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
579b8021494Sopenharmony_ci                                kModifiedImmediate},
580b8021494Sopenharmony_ci                               {{al, r0, 63},
581b8021494Sopenharmony_ci                                "al r0 63",
582b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_63",
583b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
584b8021494Sopenharmony_ci                                kModifiedImmediate},
585b8021494Sopenharmony_ci                               {{al, r0, 64},
586b8021494Sopenharmony_ci                                "al r0 64",
587b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_64",
588b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
589b8021494Sopenharmony_ci                                kModifiedImmediate},
590b8021494Sopenharmony_ci                               {{al, r0, 65},
591b8021494Sopenharmony_ci                                "al r0 65",
592b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_65",
593b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
594b8021494Sopenharmony_ci                                kModifiedImmediate},
595b8021494Sopenharmony_ci                               {{al, r0, 66},
596b8021494Sopenharmony_ci                                "al r0 66",
597b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_66",
598b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
599b8021494Sopenharmony_ci                                kModifiedImmediate},
600b8021494Sopenharmony_ci                               {{al, r0, 67},
601b8021494Sopenharmony_ci                                "al r0 67",
602b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_67",
603b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
604b8021494Sopenharmony_ci                                kModifiedImmediate},
605b8021494Sopenharmony_ci                               {{al, r0, 68},
606b8021494Sopenharmony_ci                                "al r0 68",
607b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_68",
608b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
609b8021494Sopenharmony_ci                                kModifiedImmediate},
610b8021494Sopenharmony_ci                               {{al, r0, 69},
611b8021494Sopenharmony_ci                                "al r0 69",
612b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_69",
613b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
614b8021494Sopenharmony_ci                                kModifiedImmediate},
615b8021494Sopenharmony_ci                               {{al, r0, 70},
616b8021494Sopenharmony_ci                                "al r0 70",
617b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_70",
618b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
619b8021494Sopenharmony_ci                                kModifiedImmediate},
620b8021494Sopenharmony_ci                               {{al, r0, 71},
621b8021494Sopenharmony_ci                                "al r0 71",
622b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_71",
623b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
624b8021494Sopenharmony_ci                                kModifiedImmediate},
625b8021494Sopenharmony_ci                               {{al, r0, 72},
626b8021494Sopenharmony_ci                                "al r0 72",
627b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_72",
628b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
629b8021494Sopenharmony_ci                                kModifiedImmediate},
630b8021494Sopenharmony_ci                               {{al, r0, 73},
631b8021494Sopenharmony_ci                                "al r0 73",
632b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_73",
633b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
634b8021494Sopenharmony_ci                                kModifiedImmediate},
635b8021494Sopenharmony_ci                               {{al, r0, 74},
636b8021494Sopenharmony_ci                                "al r0 74",
637b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_74",
638b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
639b8021494Sopenharmony_ci                                kModifiedImmediate},
640b8021494Sopenharmony_ci                               {{al, r0, 75},
641b8021494Sopenharmony_ci                                "al r0 75",
642b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_75",
643b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
644b8021494Sopenharmony_ci                                kModifiedImmediate},
645b8021494Sopenharmony_ci                               {{al, r0, 76},
646b8021494Sopenharmony_ci                                "al r0 76",
647b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_76",
648b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
649b8021494Sopenharmony_ci                                kModifiedImmediate},
650b8021494Sopenharmony_ci                               {{al, r0, 77},
651b8021494Sopenharmony_ci                                "al r0 77",
652b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_77",
653b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
654b8021494Sopenharmony_ci                                kModifiedImmediate},
655b8021494Sopenharmony_ci                               {{al, r0, 78},
656b8021494Sopenharmony_ci                                "al r0 78",
657b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_78",
658b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
659b8021494Sopenharmony_ci                                kModifiedImmediate},
660b8021494Sopenharmony_ci                               {{al, r0, 79},
661b8021494Sopenharmony_ci                                "al r0 79",
662b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_79",
663b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
664b8021494Sopenharmony_ci                                kModifiedImmediate},
665b8021494Sopenharmony_ci                               {{al, r0, 80},
666b8021494Sopenharmony_ci                                "al r0 80",
667b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_80",
668b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
669b8021494Sopenharmony_ci                                kModifiedImmediate},
670b8021494Sopenharmony_ci                               {{al, r0, 81},
671b8021494Sopenharmony_ci                                "al r0 81",
672b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_81",
673b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
674b8021494Sopenharmony_ci                                kModifiedImmediate},
675b8021494Sopenharmony_ci                               {{al, r0, 82},
676b8021494Sopenharmony_ci                                "al r0 82",
677b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_82",
678b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
679b8021494Sopenharmony_ci                                kModifiedImmediate},
680b8021494Sopenharmony_ci                               {{al, r0, 83},
681b8021494Sopenharmony_ci                                "al r0 83",
682b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_83",
683b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
684b8021494Sopenharmony_ci                                kModifiedImmediate},
685b8021494Sopenharmony_ci                               {{al, r0, 84},
686b8021494Sopenharmony_ci                                "al r0 84",
687b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_84",
688b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
689b8021494Sopenharmony_ci                                kModifiedImmediate},
690b8021494Sopenharmony_ci                               {{al, r0, 85},
691b8021494Sopenharmony_ci                                "al r0 85",
692b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_85",
693b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
694b8021494Sopenharmony_ci                                kModifiedImmediate},
695b8021494Sopenharmony_ci                               {{al, r0, 86},
696b8021494Sopenharmony_ci                                "al r0 86",
697b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_86",
698b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
699b8021494Sopenharmony_ci                                kModifiedImmediate},
700b8021494Sopenharmony_ci                               {{al, r0, 87},
701b8021494Sopenharmony_ci                                "al r0 87",
702b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_87",
703b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
704b8021494Sopenharmony_ci                                kModifiedImmediate},
705b8021494Sopenharmony_ci                               {{al, r0, 88},
706b8021494Sopenharmony_ci                                "al r0 88",
707b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_88",
708b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
709b8021494Sopenharmony_ci                                kModifiedImmediate},
710b8021494Sopenharmony_ci                               {{al, r0, 89},
711b8021494Sopenharmony_ci                                "al r0 89",
712b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_89",
713b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
714b8021494Sopenharmony_ci                                kModifiedImmediate},
715b8021494Sopenharmony_ci                               {{al, r0, 90},
716b8021494Sopenharmony_ci                                "al r0 90",
717b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_90",
718b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
719b8021494Sopenharmony_ci                                kModifiedImmediate},
720b8021494Sopenharmony_ci                               {{al, r0, 91},
721b8021494Sopenharmony_ci                                "al r0 91",
722b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_91",
723b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
724b8021494Sopenharmony_ci                                kModifiedImmediate},
725b8021494Sopenharmony_ci                               {{al, r0, 92},
726b8021494Sopenharmony_ci                                "al r0 92",
727b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_92",
728b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
729b8021494Sopenharmony_ci                                kModifiedImmediate},
730b8021494Sopenharmony_ci                               {{al, r0, 93},
731b8021494Sopenharmony_ci                                "al r0 93",
732b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_93",
733b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
734b8021494Sopenharmony_ci                                kModifiedImmediate},
735b8021494Sopenharmony_ci                               {{al, r0, 94},
736b8021494Sopenharmony_ci                                "al r0 94",
737b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_94",
738b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
739b8021494Sopenharmony_ci                                kModifiedImmediate},
740b8021494Sopenharmony_ci                               {{al, r0, 95},
741b8021494Sopenharmony_ci                                "al r0 95",
742b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_95",
743b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
744b8021494Sopenharmony_ci                                kModifiedImmediate},
745b8021494Sopenharmony_ci                               {{al, r0, 96},
746b8021494Sopenharmony_ci                                "al r0 96",
747b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_96",
748b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
749b8021494Sopenharmony_ci                                kModifiedImmediate},
750b8021494Sopenharmony_ci                               {{al, r0, 97},
751b8021494Sopenharmony_ci                                "al r0 97",
752b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_97",
753b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
754b8021494Sopenharmony_ci                                kModifiedImmediate},
755b8021494Sopenharmony_ci                               {{al, r0, 98},
756b8021494Sopenharmony_ci                                "al r0 98",
757b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_98",
758b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
759b8021494Sopenharmony_ci                                kModifiedImmediate},
760b8021494Sopenharmony_ci                               {{al, r0, 99},
761b8021494Sopenharmony_ci                                "al r0 99",
762b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_99",
763b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
764b8021494Sopenharmony_ci                                kModifiedImmediate},
765b8021494Sopenharmony_ci                               {{al, r0, 100},
766b8021494Sopenharmony_ci                                "al r0 100",
767b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_100",
768b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
769b8021494Sopenharmony_ci                                kModifiedImmediate},
770b8021494Sopenharmony_ci                               {{al, r0, 101},
771b8021494Sopenharmony_ci                                "al r0 101",
772b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_101",
773b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
774b8021494Sopenharmony_ci                                kModifiedImmediate},
775b8021494Sopenharmony_ci                               {{al, r0, 102},
776b8021494Sopenharmony_ci                                "al r0 102",
777b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_102",
778b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
779b8021494Sopenharmony_ci                                kModifiedImmediate},
780b8021494Sopenharmony_ci                               {{al, r0, 103},
781b8021494Sopenharmony_ci                                "al r0 103",
782b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_103",
783b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
784b8021494Sopenharmony_ci                                kModifiedImmediate},
785b8021494Sopenharmony_ci                               {{al, r0, 104},
786b8021494Sopenharmony_ci                                "al r0 104",
787b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_104",
788b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
789b8021494Sopenharmony_ci                                kModifiedImmediate},
790b8021494Sopenharmony_ci                               {{al, r0, 105},
791b8021494Sopenharmony_ci                                "al r0 105",
792b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_105",
793b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
794b8021494Sopenharmony_ci                                kModifiedImmediate},
795b8021494Sopenharmony_ci                               {{al, r0, 106},
796b8021494Sopenharmony_ci                                "al r0 106",
797b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_106",
798b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
799b8021494Sopenharmony_ci                                kModifiedImmediate},
800b8021494Sopenharmony_ci                               {{al, r0, 107},
801b8021494Sopenharmony_ci                                "al r0 107",
802b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_107",
803b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
804b8021494Sopenharmony_ci                                kModifiedImmediate},
805b8021494Sopenharmony_ci                               {{al, r0, 108},
806b8021494Sopenharmony_ci                                "al r0 108",
807b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_108",
808b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
809b8021494Sopenharmony_ci                                kModifiedImmediate},
810b8021494Sopenharmony_ci                               {{al, r0, 109},
811b8021494Sopenharmony_ci                                "al r0 109",
812b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_109",
813b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
814b8021494Sopenharmony_ci                                kModifiedImmediate},
815b8021494Sopenharmony_ci                               {{al, r0, 110},
816b8021494Sopenharmony_ci                                "al r0 110",
817b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_110",
818b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
819b8021494Sopenharmony_ci                                kModifiedImmediate},
820b8021494Sopenharmony_ci                               {{al, r0, 111},
821b8021494Sopenharmony_ci                                "al r0 111",
822b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_111",
823b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
824b8021494Sopenharmony_ci                                kModifiedImmediate},
825b8021494Sopenharmony_ci                               {{al, r0, 112},
826b8021494Sopenharmony_ci                                "al r0 112",
827b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_112",
828b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
829b8021494Sopenharmony_ci                                kModifiedImmediate},
830b8021494Sopenharmony_ci                               {{al, r0, 113},
831b8021494Sopenharmony_ci                                "al r0 113",
832b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_113",
833b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
834b8021494Sopenharmony_ci                                kModifiedImmediate},
835b8021494Sopenharmony_ci                               {{al, r0, 114},
836b8021494Sopenharmony_ci                                "al r0 114",
837b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_114",
838b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
839b8021494Sopenharmony_ci                                kModifiedImmediate},
840b8021494Sopenharmony_ci                               {{al, r0, 115},
841b8021494Sopenharmony_ci                                "al r0 115",
842b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_115",
843b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
844b8021494Sopenharmony_ci                                kModifiedImmediate},
845b8021494Sopenharmony_ci                               {{al, r0, 116},
846b8021494Sopenharmony_ci                                "al r0 116",
847b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_116",
848b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
849b8021494Sopenharmony_ci                                kModifiedImmediate},
850b8021494Sopenharmony_ci                               {{al, r0, 117},
851b8021494Sopenharmony_ci                                "al r0 117",
852b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_117",
853b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
854b8021494Sopenharmony_ci                                kModifiedImmediate},
855b8021494Sopenharmony_ci                               {{al, r0, 118},
856b8021494Sopenharmony_ci                                "al r0 118",
857b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_118",
858b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
859b8021494Sopenharmony_ci                                kModifiedImmediate},
860b8021494Sopenharmony_ci                               {{al, r0, 119},
861b8021494Sopenharmony_ci                                "al r0 119",
862b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_119",
863b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
864b8021494Sopenharmony_ci                                kModifiedImmediate},
865b8021494Sopenharmony_ci                               {{al, r0, 120},
866b8021494Sopenharmony_ci                                "al r0 120",
867b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_120",
868b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
869b8021494Sopenharmony_ci                                kModifiedImmediate},
870b8021494Sopenharmony_ci                               {{al, r0, 121},
871b8021494Sopenharmony_ci                                "al r0 121",
872b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_121",
873b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
874b8021494Sopenharmony_ci                                kModifiedImmediate},
875b8021494Sopenharmony_ci                               {{al, r0, 122},
876b8021494Sopenharmony_ci                                "al r0 122",
877b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_122",
878b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
879b8021494Sopenharmony_ci                                kModifiedImmediate},
880b8021494Sopenharmony_ci                               {{al, r0, 123},
881b8021494Sopenharmony_ci                                "al r0 123",
882b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_123",
883b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
884b8021494Sopenharmony_ci                                kModifiedImmediate},
885b8021494Sopenharmony_ci                               {{al, r0, 124},
886b8021494Sopenharmony_ci                                "al r0 124",
887b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_124",
888b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
889b8021494Sopenharmony_ci                                kModifiedImmediate},
890b8021494Sopenharmony_ci                               {{al, r0, 125},
891b8021494Sopenharmony_ci                                "al r0 125",
892b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_125",
893b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
894b8021494Sopenharmony_ci                                kModifiedImmediate},
895b8021494Sopenharmony_ci                               {{al, r0, 126},
896b8021494Sopenharmony_ci                                "al r0 126",
897b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_126",
898b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
899b8021494Sopenharmony_ci                                kModifiedImmediate},
900b8021494Sopenharmony_ci                               {{al, r0, 127},
901b8021494Sopenharmony_ci                                "al r0 127",
902b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_127",
903b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
904b8021494Sopenharmony_ci                                kModifiedImmediate},
905b8021494Sopenharmony_ci                               {{al, r0, 128},
906b8021494Sopenharmony_ci                                "al r0 128",
907b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_128",
908b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
909b8021494Sopenharmony_ci                                kModifiedImmediate},
910b8021494Sopenharmony_ci                               {{al, r0, 129},
911b8021494Sopenharmony_ci                                "al r0 129",
912b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_129",
913b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
914b8021494Sopenharmony_ci                                kModifiedImmediate},
915b8021494Sopenharmony_ci                               {{al, r0, 130},
916b8021494Sopenharmony_ci                                "al r0 130",
917b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_130",
918b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
919b8021494Sopenharmony_ci                                kModifiedImmediate},
920b8021494Sopenharmony_ci                               {{al, r0, 131},
921b8021494Sopenharmony_ci                                "al r0 131",
922b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_131",
923b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
924b8021494Sopenharmony_ci                                kModifiedImmediate},
925b8021494Sopenharmony_ci                               {{al, r0, 132},
926b8021494Sopenharmony_ci                                "al r0 132",
927b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_132",
928b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
929b8021494Sopenharmony_ci                                kModifiedImmediate},
930b8021494Sopenharmony_ci                               {{al, r0, 133},
931b8021494Sopenharmony_ci                                "al r0 133",
932b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_133",
933b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
934b8021494Sopenharmony_ci                                kModifiedImmediate},
935b8021494Sopenharmony_ci                               {{al, r0, 134},
936b8021494Sopenharmony_ci                                "al r0 134",
937b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_134",
938b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
939b8021494Sopenharmony_ci                                kModifiedImmediate},
940b8021494Sopenharmony_ci                               {{al, r0, 135},
941b8021494Sopenharmony_ci                                "al r0 135",
942b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_135",
943b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
944b8021494Sopenharmony_ci                                kModifiedImmediate},
945b8021494Sopenharmony_ci                               {{al, r0, 136},
946b8021494Sopenharmony_ci                                "al r0 136",
947b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_136",
948b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
949b8021494Sopenharmony_ci                                kModifiedImmediate},
950b8021494Sopenharmony_ci                               {{al, r0, 137},
951b8021494Sopenharmony_ci                                "al r0 137",
952b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_137",
953b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
954b8021494Sopenharmony_ci                                kModifiedImmediate},
955b8021494Sopenharmony_ci                               {{al, r0, 138},
956b8021494Sopenharmony_ci                                "al r0 138",
957b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_138",
958b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
959b8021494Sopenharmony_ci                                kModifiedImmediate},
960b8021494Sopenharmony_ci                               {{al, r0, 139},
961b8021494Sopenharmony_ci                                "al r0 139",
962b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_139",
963b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
964b8021494Sopenharmony_ci                                kModifiedImmediate},
965b8021494Sopenharmony_ci                               {{al, r0, 140},
966b8021494Sopenharmony_ci                                "al r0 140",
967b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_140",
968b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
969b8021494Sopenharmony_ci                                kModifiedImmediate},
970b8021494Sopenharmony_ci                               {{al, r0, 141},
971b8021494Sopenharmony_ci                                "al r0 141",
972b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_141",
973b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
974b8021494Sopenharmony_ci                                kModifiedImmediate},
975b8021494Sopenharmony_ci                               {{al, r0, 142},
976b8021494Sopenharmony_ci                                "al r0 142",
977b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_142",
978b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
979b8021494Sopenharmony_ci                                kModifiedImmediate},
980b8021494Sopenharmony_ci                               {{al, r0, 143},
981b8021494Sopenharmony_ci                                "al r0 143",
982b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_143",
983b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
984b8021494Sopenharmony_ci                                kModifiedImmediate},
985b8021494Sopenharmony_ci                               {{al, r0, 144},
986b8021494Sopenharmony_ci                                "al r0 144",
987b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_144",
988b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
989b8021494Sopenharmony_ci                                kModifiedImmediate},
990b8021494Sopenharmony_ci                               {{al, r0, 145},
991b8021494Sopenharmony_ci                                "al r0 145",
992b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_145",
993b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
994b8021494Sopenharmony_ci                                kModifiedImmediate},
995b8021494Sopenharmony_ci                               {{al, r0, 146},
996b8021494Sopenharmony_ci                                "al r0 146",
997b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_146",
998b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
999b8021494Sopenharmony_ci                                kModifiedImmediate},
1000b8021494Sopenharmony_ci                               {{al, r0, 147},
1001b8021494Sopenharmony_ci                                "al r0 147",
1002b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_147",
1003b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1004b8021494Sopenharmony_ci                                kModifiedImmediate},
1005b8021494Sopenharmony_ci                               {{al, r0, 148},
1006b8021494Sopenharmony_ci                                "al r0 148",
1007b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_148",
1008b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1009b8021494Sopenharmony_ci                                kModifiedImmediate},
1010b8021494Sopenharmony_ci                               {{al, r0, 149},
1011b8021494Sopenharmony_ci                                "al r0 149",
1012b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_149",
1013b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1014b8021494Sopenharmony_ci                                kModifiedImmediate},
1015b8021494Sopenharmony_ci                               {{al, r0, 150},
1016b8021494Sopenharmony_ci                                "al r0 150",
1017b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_150",
1018b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1019b8021494Sopenharmony_ci                                kModifiedImmediate},
1020b8021494Sopenharmony_ci                               {{al, r0, 151},
1021b8021494Sopenharmony_ci                                "al r0 151",
1022b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_151",
1023b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1024b8021494Sopenharmony_ci                                kModifiedImmediate},
1025b8021494Sopenharmony_ci                               {{al, r0, 152},
1026b8021494Sopenharmony_ci                                "al r0 152",
1027b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_152",
1028b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1029b8021494Sopenharmony_ci                                kModifiedImmediate},
1030b8021494Sopenharmony_ci                               {{al, r0, 153},
1031b8021494Sopenharmony_ci                                "al r0 153",
1032b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_153",
1033b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1034b8021494Sopenharmony_ci                                kModifiedImmediate},
1035b8021494Sopenharmony_ci                               {{al, r0, 154},
1036b8021494Sopenharmony_ci                                "al r0 154",
1037b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_154",
1038b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1039b8021494Sopenharmony_ci                                kModifiedImmediate},
1040b8021494Sopenharmony_ci                               {{al, r0, 155},
1041b8021494Sopenharmony_ci                                "al r0 155",
1042b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_155",
1043b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1044b8021494Sopenharmony_ci                                kModifiedImmediate},
1045b8021494Sopenharmony_ci                               {{al, r0, 156},
1046b8021494Sopenharmony_ci                                "al r0 156",
1047b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_156",
1048b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1049b8021494Sopenharmony_ci                                kModifiedImmediate},
1050b8021494Sopenharmony_ci                               {{al, r0, 157},
1051b8021494Sopenharmony_ci                                "al r0 157",
1052b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_157",
1053b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1054b8021494Sopenharmony_ci                                kModifiedImmediate},
1055b8021494Sopenharmony_ci                               {{al, r0, 158},
1056b8021494Sopenharmony_ci                                "al r0 158",
1057b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_158",
1058b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1059b8021494Sopenharmony_ci                                kModifiedImmediate},
1060b8021494Sopenharmony_ci                               {{al, r0, 159},
1061b8021494Sopenharmony_ci                                "al r0 159",
1062b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_159",
1063b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1064b8021494Sopenharmony_ci                                kModifiedImmediate},
1065b8021494Sopenharmony_ci                               {{al, r0, 160},
1066b8021494Sopenharmony_ci                                "al r0 160",
1067b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_160",
1068b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1069b8021494Sopenharmony_ci                                kModifiedImmediate},
1070b8021494Sopenharmony_ci                               {{al, r0, 161},
1071b8021494Sopenharmony_ci                                "al r0 161",
1072b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_161",
1073b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1074b8021494Sopenharmony_ci                                kModifiedImmediate},
1075b8021494Sopenharmony_ci                               {{al, r0, 162},
1076b8021494Sopenharmony_ci                                "al r0 162",
1077b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_162",
1078b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1079b8021494Sopenharmony_ci                                kModifiedImmediate},
1080b8021494Sopenharmony_ci                               {{al, r0, 163},
1081b8021494Sopenharmony_ci                                "al r0 163",
1082b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_163",
1083b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1084b8021494Sopenharmony_ci                                kModifiedImmediate},
1085b8021494Sopenharmony_ci                               {{al, r0, 164},
1086b8021494Sopenharmony_ci                                "al r0 164",
1087b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_164",
1088b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1089b8021494Sopenharmony_ci                                kModifiedImmediate},
1090b8021494Sopenharmony_ci                               {{al, r0, 165},
1091b8021494Sopenharmony_ci                                "al r0 165",
1092b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_165",
1093b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1094b8021494Sopenharmony_ci                                kModifiedImmediate},
1095b8021494Sopenharmony_ci                               {{al, r0, 166},
1096b8021494Sopenharmony_ci                                "al r0 166",
1097b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_166",
1098b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1099b8021494Sopenharmony_ci                                kModifiedImmediate},
1100b8021494Sopenharmony_ci                               {{al, r0, 167},
1101b8021494Sopenharmony_ci                                "al r0 167",
1102b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_167",
1103b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1104b8021494Sopenharmony_ci                                kModifiedImmediate},
1105b8021494Sopenharmony_ci                               {{al, r0, 168},
1106b8021494Sopenharmony_ci                                "al r0 168",
1107b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_168",
1108b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1109b8021494Sopenharmony_ci                                kModifiedImmediate},
1110b8021494Sopenharmony_ci                               {{al, r0, 169},
1111b8021494Sopenharmony_ci                                "al r0 169",
1112b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_169",
1113b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1114b8021494Sopenharmony_ci                                kModifiedImmediate},
1115b8021494Sopenharmony_ci                               {{al, r0, 170},
1116b8021494Sopenharmony_ci                                "al r0 170",
1117b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_170",
1118b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1119b8021494Sopenharmony_ci                                kModifiedImmediate},
1120b8021494Sopenharmony_ci                               {{al, r0, 171},
1121b8021494Sopenharmony_ci                                "al r0 171",
1122b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_171",
1123b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1124b8021494Sopenharmony_ci                                kModifiedImmediate},
1125b8021494Sopenharmony_ci                               {{al, r0, 172},
1126b8021494Sopenharmony_ci                                "al r0 172",
1127b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_172",
1128b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1129b8021494Sopenharmony_ci                                kModifiedImmediate},
1130b8021494Sopenharmony_ci                               {{al, r0, 173},
1131b8021494Sopenharmony_ci                                "al r0 173",
1132b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_173",
1133b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1134b8021494Sopenharmony_ci                                kModifiedImmediate},
1135b8021494Sopenharmony_ci                               {{al, r0, 174},
1136b8021494Sopenharmony_ci                                "al r0 174",
1137b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_174",
1138b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1139b8021494Sopenharmony_ci                                kModifiedImmediate},
1140b8021494Sopenharmony_ci                               {{al, r0, 175},
1141b8021494Sopenharmony_ci                                "al r0 175",
1142b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_175",
1143b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1144b8021494Sopenharmony_ci                                kModifiedImmediate},
1145b8021494Sopenharmony_ci                               {{al, r0, 176},
1146b8021494Sopenharmony_ci                                "al r0 176",
1147b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_176",
1148b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1149b8021494Sopenharmony_ci                                kModifiedImmediate},
1150b8021494Sopenharmony_ci                               {{al, r0, 177},
1151b8021494Sopenharmony_ci                                "al r0 177",
1152b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_177",
1153b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1154b8021494Sopenharmony_ci                                kModifiedImmediate},
1155b8021494Sopenharmony_ci                               {{al, r0, 178},
1156b8021494Sopenharmony_ci                                "al r0 178",
1157b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_178",
1158b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1159b8021494Sopenharmony_ci                                kModifiedImmediate},
1160b8021494Sopenharmony_ci                               {{al, r0, 179},
1161b8021494Sopenharmony_ci                                "al r0 179",
1162b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_179",
1163b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1164b8021494Sopenharmony_ci                                kModifiedImmediate},
1165b8021494Sopenharmony_ci                               {{al, r0, 180},
1166b8021494Sopenharmony_ci                                "al r0 180",
1167b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_180",
1168b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1169b8021494Sopenharmony_ci                                kModifiedImmediate},
1170b8021494Sopenharmony_ci                               {{al, r0, 181},
1171b8021494Sopenharmony_ci                                "al r0 181",
1172b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_181",
1173b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1174b8021494Sopenharmony_ci                                kModifiedImmediate},
1175b8021494Sopenharmony_ci                               {{al, r0, 182},
1176b8021494Sopenharmony_ci                                "al r0 182",
1177b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_182",
1178b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1179b8021494Sopenharmony_ci                                kModifiedImmediate},
1180b8021494Sopenharmony_ci                               {{al, r0, 183},
1181b8021494Sopenharmony_ci                                "al r0 183",
1182b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_183",
1183b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1184b8021494Sopenharmony_ci                                kModifiedImmediate},
1185b8021494Sopenharmony_ci                               {{al, r0, 184},
1186b8021494Sopenharmony_ci                                "al r0 184",
1187b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_184",
1188b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1189b8021494Sopenharmony_ci                                kModifiedImmediate},
1190b8021494Sopenharmony_ci                               {{al, r0, 185},
1191b8021494Sopenharmony_ci                                "al r0 185",
1192b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_185",
1193b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1194b8021494Sopenharmony_ci                                kModifiedImmediate},
1195b8021494Sopenharmony_ci                               {{al, r0, 186},
1196b8021494Sopenharmony_ci                                "al r0 186",
1197b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_186",
1198b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1199b8021494Sopenharmony_ci                                kModifiedImmediate},
1200b8021494Sopenharmony_ci                               {{al, r0, 187},
1201b8021494Sopenharmony_ci                                "al r0 187",
1202b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_187",
1203b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1204b8021494Sopenharmony_ci                                kModifiedImmediate},
1205b8021494Sopenharmony_ci                               {{al, r0, 188},
1206b8021494Sopenharmony_ci                                "al r0 188",
1207b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_188",
1208b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1209b8021494Sopenharmony_ci                                kModifiedImmediate},
1210b8021494Sopenharmony_ci                               {{al, r0, 189},
1211b8021494Sopenharmony_ci                                "al r0 189",
1212b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_189",
1213b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1214b8021494Sopenharmony_ci                                kModifiedImmediate},
1215b8021494Sopenharmony_ci                               {{al, r0, 190},
1216b8021494Sopenharmony_ci                                "al r0 190",
1217b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_190",
1218b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1219b8021494Sopenharmony_ci                                kModifiedImmediate},
1220b8021494Sopenharmony_ci                               {{al, r0, 191},
1221b8021494Sopenharmony_ci                                "al r0 191",
1222b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_191",
1223b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1224b8021494Sopenharmony_ci                                kModifiedImmediate},
1225b8021494Sopenharmony_ci                               {{al, r0, 192},
1226b8021494Sopenharmony_ci                                "al r0 192",
1227b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_192",
1228b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1229b8021494Sopenharmony_ci                                kModifiedImmediate},
1230b8021494Sopenharmony_ci                               {{al, r0, 193},
1231b8021494Sopenharmony_ci                                "al r0 193",
1232b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_193",
1233b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1234b8021494Sopenharmony_ci                                kModifiedImmediate},
1235b8021494Sopenharmony_ci                               {{al, r0, 194},
1236b8021494Sopenharmony_ci                                "al r0 194",
1237b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_194",
1238b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1239b8021494Sopenharmony_ci                                kModifiedImmediate},
1240b8021494Sopenharmony_ci                               {{al, r0, 195},
1241b8021494Sopenharmony_ci                                "al r0 195",
1242b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_195",
1243b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1244b8021494Sopenharmony_ci                                kModifiedImmediate},
1245b8021494Sopenharmony_ci                               {{al, r0, 196},
1246b8021494Sopenharmony_ci                                "al r0 196",
1247b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_196",
1248b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1249b8021494Sopenharmony_ci                                kModifiedImmediate},
1250b8021494Sopenharmony_ci                               {{al, r0, 197},
1251b8021494Sopenharmony_ci                                "al r0 197",
1252b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_197",
1253b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1254b8021494Sopenharmony_ci                                kModifiedImmediate},
1255b8021494Sopenharmony_ci                               {{al, r0, 198},
1256b8021494Sopenharmony_ci                                "al r0 198",
1257b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_198",
1258b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1259b8021494Sopenharmony_ci                                kModifiedImmediate},
1260b8021494Sopenharmony_ci                               {{al, r0, 199},
1261b8021494Sopenharmony_ci                                "al r0 199",
1262b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_199",
1263b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1264b8021494Sopenharmony_ci                                kModifiedImmediate},
1265b8021494Sopenharmony_ci                               {{al, r0, 200},
1266b8021494Sopenharmony_ci                                "al r0 200",
1267b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_200",
1268b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1269b8021494Sopenharmony_ci                                kModifiedImmediate},
1270b8021494Sopenharmony_ci                               {{al, r0, 201},
1271b8021494Sopenharmony_ci                                "al r0 201",
1272b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_201",
1273b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1274b8021494Sopenharmony_ci                                kModifiedImmediate},
1275b8021494Sopenharmony_ci                               {{al, r0, 202},
1276b8021494Sopenharmony_ci                                "al r0 202",
1277b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_202",
1278b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1279b8021494Sopenharmony_ci                                kModifiedImmediate},
1280b8021494Sopenharmony_ci                               {{al, r0, 203},
1281b8021494Sopenharmony_ci                                "al r0 203",
1282b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_203",
1283b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1284b8021494Sopenharmony_ci                                kModifiedImmediate},
1285b8021494Sopenharmony_ci                               {{al, r0, 204},
1286b8021494Sopenharmony_ci                                "al r0 204",
1287b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_204",
1288b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1289b8021494Sopenharmony_ci                                kModifiedImmediate},
1290b8021494Sopenharmony_ci                               {{al, r0, 205},
1291b8021494Sopenharmony_ci                                "al r0 205",
1292b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_205",
1293b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1294b8021494Sopenharmony_ci                                kModifiedImmediate},
1295b8021494Sopenharmony_ci                               {{al, r0, 206},
1296b8021494Sopenharmony_ci                                "al r0 206",
1297b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_206",
1298b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1299b8021494Sopenharmony_ci                                kModifiedImmediate},
1300b8021494Sopenharmony_ci                               {{al, r0, 207},
1301b8021494Sopenharmony_ci                                "al r0 207",
1302b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_207",
1303b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1304b8021494Sopenharmony_ci                                kModifiedImmediate},
1305b8021494Sopenharmony_ci                               {{al, r0, 208},
1306b8021494Sopenharmony_ci                                "al r0 208",
1307b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_208",
1308b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1309b8021494Sopenharmony_ci                                kModifiedImmediate},
1310b8021494Sopenharmony_ci                               {{al, r0, 209},
1311b8021494Sopenharmony_ci                                "al r0 209",
1312b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_209",
1313b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1314b8021494Sopenharmony_ci                                kModifiedImmediate},
1315b8021494Sopenharmony_ci                               {{al, r0, 210},
1316b8021494Sopenharmony_ci                                "al r0 210",
1317b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_210",
1318b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1319b8021494Sopenharmony_ci                                kModifiedImmediate},
1320b8021494Sopenharmony_ci                               {{al, r0, 211},
1321b8021494Sopenharmony_ci                                "al r0 211",
1322b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_211",
1323b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1324b8021494Sopenharmony_ci                                kModifiedImmediate},
1325b8021494Sopenharmony_ci                               {{al, r0, 212},
1326b8021494Sopenharmony_ci                                "al r0 212",
1327b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_212",
1328b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1329b8021494Sopenharmony_ci                                kModifiedImmediate},
1330b8021494Sopenharmony_ci                               {{al, r0, 213},
1331b8021494Sopenharmony_ci                                "al r0 213",
1332b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_213",
1333b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1334b8021494Sopenharmony_ci                                kModifiedImmediate},
1335b8021494Sopenharmony_ci                               {{al, r0, 214},
1336b8021494Sopenharmony_ci                                "al r0 214",
1337b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_214",
1338b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1339b8021494Sopenharmony_ci                                kModifiedImmediate},
1340b8021494Sopenharmony_ci                               {{al, r0, 215},
1341b8021494Sopenharmony_ci                                "al r0 215",
1342b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_215",
1343b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1344b8021494Sopenharmony_ci                                kModifiedImmediate},
1345b8021494Sopenharmony_ci                               {{al, r0, 216},
1346b8021494Sopenharmony_ci                                "al r0 216",
1347b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_216",
1348b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1349b8021494Sopenharmony_ci                                kModifiedImmediate},
1350b8021494Sopenharmony_ci                               {{al, r0, 217},
1351b8021494Sopenharmony_ci                                "al r0 217",
1352b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_217",
1353b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1354b8021494Sopenharmony_ci                                kModifiedImmediate},
1355b8021494Sopenharmony_ci                               {{al, r0, 218},
1356b8021494Sopenharmony_ci                                "al r0 218",
1357b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_218",
1358b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1359b8021494Sopenharmony_ci                                kModifiedImmediate},
1360b8021494Sopenharmony_ci                               {{al, r0, 219},
1361b8021494Sopenharmony_ci                                "al r0 219",
1362b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_219",
1363b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1364b8021494Sopenharmony_ci                                kModifiedImmediate},
1365b8021494Sopenharmony_ci                               {{al, r0, 220},
1366b8021494Sopenharmony_ci                                "al r0 220",
1367b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_220",
1368b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1369b8021494Sopenharmony_ci                                kModifiedImmediate},
1370b8021494Sopenharmony_ci                               {{al, r0, 221},
1371b8021494Sopenharmony_ci                                "al r0 221",
1372b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_221",
1373b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1374b8021494Sopenharmony_ci                                kModifiedImmediate},
1375b8021494Sopenharmony_ci                               {{al, r0, 222},
1376b8021494Sopenharmony_ci                                "al r0 222",
1377b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_222",
1378b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1379b8021494Sopenharmony_ci                                kModifiedImmediate},
1380b8021494Sopenharmony_ci                               {{al, r0, 223},
1381b8021494Sopenharmony_ci                                "al r0 223",
1382b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_223",
1383b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1384b8021494Sopenharmony_ci                                kModifiedImmediate},
1385b8021494Sopenharmony_ci                               {{al, r0, 224},
1386b8021494Sopenharmony_ci                                "al r0 224",
1387b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_224",
1388b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1389b8021494Sopenharmony_ci                                kModifiedImmediate},
1390b8021494Sopenharmony_ci                               {{al, r0, 225},
1391b8021494Sopenharmony_ci                                "al r0 225",
1392b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_225",
1393b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1394b8021494Sopenharmony_ci                                kModifiedImmediate},
1395b8021494Sopenharmony_ci                               {{al, r0, 226},
1396b8021494Sopenharmony_ci                                "al r0 226",
1397b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_226",
1398b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1399b8021494Sopenharmony_ci                                kModifiedImmediate},
1400b8021494Sopenharmony_ci                               {{al, r0, 227},
1401b8021494Sopenharmony_ci                                "al r0 227",
1402b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_227",
1403b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1404b8021494Sopenharmony_ci                                kModifiedImmediate},
1405b8021494Sopenharmony_ci                               {{al, r0, 228},
1406b8021494Sopenharmony_ci                                "al r0 228",
1407b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_228",
1408b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1409b8021494Sopenharmony_ci                                kModifiedImmediate},
1410b8021494Sopenharmony_ci                               {{al, r0, 229},
1411b8021494Sopenharmony_ci                                "al r0 229",
1412b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_229",
1413b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1414b8021494Sopenharmony_ci                                kModifiedImmediate},
1415b8021494Sopenharmony_ci                               {{al, r0, 230},
1416b8021494Sopenharmony_ci                                "al r0 230",
1417b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_230",
1418b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1419b8021494Sopenharmony_ci                                kModifiedImmediate},
1420b8021494Sopenharmony_ci                               {{al, r0, 231},
1421b8021494Sopenharmony_ci                                "al r0 231",
1422b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_231",
1423b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1424b8021494Sopenharmony_ci                                kModifiedImmediate},
1425b8021494Sopenharmony_ci                               {{al, r0, 232},
1426b8021494Sopenharmony_ci                                "al r0 232",
1427b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_232",
1428b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1429b8021494Sopenharmony_ci                                kModifiedImmediate},
1430b8021494Sopenharmony_ci                               {{al, r0, 233},
1431b8021494Sopenharmony_ci                                "al r0 233",
1432b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_233",
1433b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1434b8021494Sopenharmony_ci                                kModifiedImmediate},
1435b8021494Sopenharmony_ci                               {{al, r0, 234},
1436b8021494Sopenharmony_ci                                "al r0 234",
1437b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_234",
1438b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1439b8021494Sopenharmony_ci                                kModifiedImmediate},
1440b8021494Sopenharmony_ci                               {{al, r0, 235},
1441b8021494Sopenharmony_ci                                "al r0 235",
1442b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_235",
1443b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1444b8021494Sopenharmony_ci                                kModifiedImmediate},
1445b8021494Sopenharmony_ci                               {{al, r0, 236},
1446b8021494Sopenharmony_ci                                "al r0 236",
1447b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_236",
1448b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1449b8021494Sopenharmony_ci                                kModifiedImmediate},
1450b8021494Sopenharmony_ci                               {{al, r0, 237},
1451b8021494Sopenharmony_ci                                "al r0 237",
1452b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_237",
1453b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1454b8021494Sopenharmony_ci                                kModifiedImmediate},
1455b8021494Sopenharmony_ci                               {{al, r0, 238},
1456b8021494Sopenharmony_ci                                "al r0 238",
1457b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_238",
1458b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1459b8021494Sopenharmony_ci                                kModifiedImmediate},
1460b8021494Sopenharmony_ci                               {{al, r0, 239},
1461b8021494Sopenharmony_ci                                "al r0 239",
1462b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_239",
1463b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1464b8021494Sopenharmony_ci                                kModifiedImmediate},
1465b8021494Sopenharmony_ci                               {{al, r0, 240},
1466b8021494Sopenharmony_ci                                "al r0 240",
1467b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_240",
1468b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1469b8021494Sopenharmony_ci                                kModifiedImmediate},
1470b8021494Sopenharmony_ci                               {{al, r0, 241},
1471b8021494Sopenharmony_ci                                "al r0 241",
1472b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_241",
1473b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1474b8021494Sopenharmony_ci                                kModifiedImmediate},
1475b8021494Sopenharmony_ci                               {{al, r0, 242},
1476b8021494Sopenharmony_ci                                "al r0 242",
1477b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_242",
1478b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1479b8021494Sopenharmony_ci                                kModifiedImmediate},
1480b8021494Sopenharmony_ci                               {{al, r0, 243},
1481b8021494Sopenharmony_ci                                "al r0 243",
1482b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_243",
1483b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1484b8021494Sopenharmony_ci                                kModifiedImmediate},
1485b8021494Sopenharmony_ci                               {{al, r0, 244},
1486b8021494Sopenharmony_ci                                "al r0 244",
1487b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_244",
1488b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1489b8021494Sopenharmony_ci                                kModifiedImmediate},
1490b8021494Sopenharmony_ci                               {{al, r0, 245},
1491b8021494Sopenharmony_ci                                "al r0 245",
1492b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_245",
1493b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1494b8021494Sopenharmony_ci                                kModifiedImmediate},
1495b8021494Sopenharmony_ci                               {{al, r0, 246},
1496b8021494Sopenharmony_ci                                "al r0 246",
1497b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_246",
1498b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1499b8021494Sopenharmony_ci                                kModifiedImmediate},
1500b8021494Sopenharmony_ci                               {{al, r0, 247},
1501b8021494Sopenharmony_ci                                "al r0 247",
1502b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_247",
1503b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1504b8021494Sopenharmony_ci                                kModifiedImmediate},
1505b8021494Sopenharmony_ci                               {{al, r0, 248},
1506b8021494Sopenharmony_ci                                "al r0 248",
1507b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_248",
1508b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1509b8021494Sopenharmony_ci                                kModifiedImmediate},
1510b8021494Sopenharmony_ci                               {{al, r0, 249},
1511b8021494Sopenharmony_ci                                "al r0 249",
1512b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_249",
1513b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1514b8021494Sopenharmony_ci                                kModifiedImmediate},
1515b8021494Sopenharmony_ci                               {{al, r0, 250},
1516b8021494Sopenharmony_ci                                "al r0 250",
1517b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_250",
1518b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1519b8021494Sopenharmony_ci                                kModifiedImmediate},
1520b8021494Sopenharmony_ci                               {{al, r0, 251},
1521b8021494Sopenharmony_ci                                "al r0 251",
1522b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_251",
1523b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1524b8021494Sopenharmony_ci                                kModifiedImmediate},
1525b8021494Sopenharmony_ci                               {{al, r0, 252},
1526b8021494Sopenharmony_ci                                "al r0 252",
1527b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_252",
1528b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1529b8021494Sopenharmony_ci                                kModifiedImmediate},
1530b8021494Sopenharmony_ci                               {{al, r0, 253},
1531b8021494Sopenharmony_ci                                "al r0 253",
1532b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_253",
1533b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1534b8021494Sopenharmony_ci                                kModifiedImmediate},
1535b8021494Sopenharmony_ci                               {{al, r0, 254},
1536b8021494Sopenharmony_ci                                "al r0 254",
1537b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_254",
1538b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1539b8021494Sopenharmony_ci                                kModifiedImmediate},
1540b8021494Sopenharmony_ci                               {{al, r0, 255},
1541b8021494Sopenharmony_ci                                "al r0 255",
1542b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_255",
1543b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1544b8021494Sopenharmony_ci                                kModifiedImmediate}};
1545b8021494Sopenharmony_ci
1546b8021494Sopenharmony_ci// We record all inputs to the instructions as outputs. This way, we also check
1547b8021494Sopenharmony_ci// that what shouldn't change didn't change.
1548b8021494Sopenharmony_cistruct TestResult {
1549b8021494Sopenharmony_ci  size_t output_size;
1550b8021494Sopenharmony_ci  const Inputs* outputs;
1551b8021494Sopenharmony_ci};
1552b8021494Sopenharmony_ci
1553b8021494Sopenharmony_ci// These headers each contain an array of `TestResult` with the reference output
1554b8021494Sopenharmony_ci// values. The reference arrays are names `kReference{mnemonic}`.
1555b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rdlow-operand-imm8-cmp-t32.h"
1556b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rdlow-operand-imm8-mov-t32.h"
1557b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rdlow-operand-imm8-movs-t32.h"
1558b8021494Sopenharmony_ci
1559b8021494Sopenharmony_ci
1560b8021494Sopenharmony_ci// The maximum number of errors to report in detail for each test.
1561b8021494Sopenharmony_ciconst unsigned kErrorReportLimit = 8;
1562b8021494Sopenharmony_ci
1563b8021494Sopenharmony_citypedef void (MacroAssembler::*Fn)(Condition cond,
1564b8021494Sopenharmony_ci                                   Register rd,
1565b8021494Sopenharmony_ci                                   const Operand& op);
1566b8021494Sopenharmony_ci
1567b8021494Sopenharmony_civoid TestHelper(Fn instruction,
1568b8021494Sopenharmony_ci                const char* mnemonic,
1569b8021494Sopenharmony_ci                const TestResult reference[]) {
1570b8021494Sopenharmony_ci  SETUP();
1571b8021494Sopenharmony_ci  masm.UseT32();
1572b8021494Sopenharmony_ci  START();
1573b8021494Sopenharmony_ci
1574b8021494Sopenharmony_ci  // Data to compare to `reference`.
1575b8021494Sopenharmony_ci  TestResult* results[ARRAY_SIZE(kTests)];
1576b8021494Sopenharmony_ci
1577b8021494Sopenharmony_ci  // Test cases for memory bound instructions may allocate a buffer and save its
1578b8021494Sopenharmony_ci  // address in this array.
1579b8021494Sopenharmony_ci  byte* scratch_memory_buffers[ARRAY_SIZE(kTests)];
1580b8021494Sopenharmony_ci
1581b8021494Sopenharmony_ci  // Generate a loop for each element in `kTests`. Each loop tests one specific
1582b8021494Sopenharmony_ci  // instruction.
1583b8021494Sopenharmony_ci  for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) {
1584b8021494Sopenharmony_ci    // Allocate results on the heap for this test.
1585b8021494Sopenharmony_ci    results[i] = new TestResult;
1586b8021494Sopenharmony_ci    results[i]->outputs = new Inputs[kTests[i].input_size];
1587b8021494Sopenharmony_ci    results[i]->output_size = kTests[i].input_size;
1588b8021494Sopenharmony_ci
1589b8021494Sopenharmony_ci    size_t input_stride = sizeof(kTests[i].inputs[0]) * kTests[i].input_size;
1590b8021494Sopenharmony_ci    VIXL_ASSERT(IsUint32(input_stride));
1591b8021494Sopenharmony_ci
1592b8021494Sopenharmony_ci    scratch_memory_buffers[i] = NULL;
1593b8021494Sopenharmony_ci
1594b8021494Sopenharmony_ci    Label loop;
1595b8021494Sopenharmony_ci    UseScratchRegisterScope scratch_registers(&masm);
1596b8021494Sopenharmony_ci    // Include all registers from r0 ro r12.
1597b8021494Sopenharmony_ci    scratch_registers.Include(RegisterList(0x1fff));
1598b8021494Sopenharmony_ci
1599b8021494Sopenharmony_ci    // Values to pass to the macro-assembler.
1600b8021494Sopenharmony_ci    Condition cond = kTests[i].operands.cond;
1601b8021494Sopenharmony_ci    Register rd = kTests[i].operands.rd;
1602b8021494Sopenharmony_ci    int32_t immediate = kTests[i].operands.immediate;
1603b8021494Sopenharmony_ci    Operand op(immediate);
1604b8021494Sopenharmony_ci    scratch_registers.Exclude(rd);
1605b8021494Sopenharmony_ci
1606b8021494Sopenharmony_ci    // Allocate reserved registers for our own use.
1607b8021494Sopenharmony_ci    Register input_ptr = scratch_registers.Acquire();
1608b8021494Sopenharmony_ci    Register input_end = scratch_registers.Acquire();
1609b8021494Sopenharmony_ci    Register result_ptr = scratch_registers.Acquire();
1610b8021494Sopenharmony_ci
1611b8021494Sopenharmony_ci    // Initialize `input_ptr` to the first element and `input_end` the address
1612b8021494Sopenharmony_ci    // after the array.
1613b8021494Sopenharmony_ci    __ Mov(input_ptr, Operand::From(kTests[i].inputs));
1614b8021494Sopenharmony_ci    __ Add(input_end, input_ptr, static_cast<uint32_t>(input_stride));
1615b8021494Sopenharmony_ci    __ Mov(result_ptr, Operand::From(results[i]->outputs));
1616b8021494Sopenharmony_ci    __ Bind(&loop);
1617b8021494Sopenharmony_ci
1618b8021494Sopenharmony_ci    {
1619b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1620b8021494Sopenharmony_ci      Register nzcv_bits = temp_registers.Acquire();
1621b8021494Sopenharmony_ci      Register saved_q_bit = temp_registers.Acquire();
1622b8021494Sopenharmony_ci      // Save the `Q` bit flag.
1623b8021494Sopenharmony_ci      __ Mrs(saved_q_bit, APSR);
1624b8021494Sopenharmony_ci      __ And(saved_q_bit, saved_q_bit, QFlag);
1625b8021494Sopenharmony_ci      // Set the `NZCV` and `Q` flags together.
1626b8021494Sopenharmony_ci      __ Ldr(nzcv_bits, MemOperand(input_ptr, offsetof(Inputs, apsr)));
1627b8021494Sopenharmony_ci      __ Orr(nzcv_bits, nzcv_bits, saved_q_bit);
1628b8021494Sopenharmony_ci      __ Msr(APSR_nzcvq, nzcv_bits);
1629b8021494Sopenharmony_ci    }
1630b8021494Sopenharmony_ci    __ Ldr(rd, MemOperand(input_ptr, offsetof(Inputs, rd)));
1631b8021494Sopenharmony_ci
1632b8021494Sopenharmony_ci    (masm.*instruction)(cond, rd, op);
1633b8021494Sopenharmony_ci
1634b8021494Sopenharmony_ci    {
1635b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1636b8021494Sopenharmony_ci      Register nzcv_bits = temp_registers.Acquire();
1637b8021494Sopenharmony_ci      __ Mrs(nzcv_bits, APSR);
1638b8021494Sopenharmony_ci      // Only record the NZCV bits.
1639b8021494Sopenharmony_ci      __ And(nzcv_bits, nzcv_bits, NZCVFlag);
1640b8021494Sopenharmony_ci      __ Str(nzcv_bits, MemOperand(result_ptr, offsetof(Inputs, apsr)));
1641b8021494Sopenharmony_ci    }
1642b8021494Sopenharmony_ci    __ Str(rd, MemOperand(result_ptr, offsetof(Inputs, rd)));
1643b8021494Sopenharmony_ci
1644b8021494Sopenharmony_ci    // Advance the result pointer.
1645b8021494Sopenharmony_ci    __ Add(result_ptr, result_ptr, Operand::From(sizeof(kTests[i].inputs[0])));
1646b8021494Sopenharmony_ci    // Loop back until `input_ptr` is lower than `input_base`.
1647b8021494Sopenharmony_ci    __ Add(input_ptr, input_ptr, Operand::From(sizeof(kTests[i].inputs[0])));
1648b8021494Sopenharmony_ci    __ Cmp(input_ptr, input_end);
1649b8021494Sopenharmony_ci    __ B(ne, &loop);
1650b8021494Sopenharmony_ci  }
1651b8021494Sopenharmony_ci
1652b8021494Sopenharmony_ci  END();
1653b8021494Sopenharmony_ci
1654b8021494Sopenharmony_ci  RUN();
1655b8021494Sopenharmony_ci
1656b8021494Sopenharmony_ci  if (Test::generate_test_trace()) {
1657b8021494Sopenharmony_ci    // Print the results.
1658b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1659b8021494Sopenharmony_ci      printf("const Inputs kOutputs_%s_%s[] = {\n",
1660b8021494Sopenharmony_ci             mnemonic,
1661b8021494Sopenharmony_ci             kTests[i].identifier);
1662b8021494Sopenharmony_ci      for (size_t j = 0; j < results[i]->output_size; j++) {
1663b8021494Sopenharmony_ci        printf("  { ");
1664b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].apsr);
1665b8021494Sopenharmony_ci        printf(", ");
1666b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].rd);
1667b8021494Sopenharmony_ci        printf(" },\n");
1668b8021494Sopenharmony_ci      }
1669b8021494Sopenharmony_ci      printf("};\n");
1670b8021494Sopenharmony_ci    }
1671b8021494Sopenharmony_ci    printf("const TestResult kReference%s[] = {\n", mnemonic);
1672b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1673b8021494Sopenharmony_ci      printf("  {\n");
1674b8021494Sopenharmony_ci      printf("    ARRAY_SIZE(kOutputs_%s_%s),\n",
1675b8021494Sopenharmony_ci             mnemonic,
1676b8021494Sopenharmony_ci             kTests[i].identifier);
1677b8021494Sopenharmony_ci      printf("    kOutputs_%s_%s,\n", mnemonic, kTests[i].identifier);
1678b8021494Sopenharmony_ci      printf("  },\n");
1679b8021494Sopenharmony_ci    }
1680b8021494Sopenharmony_ci    printf("};\n");
1681b8021494Sopenharmony_ci  } else if (kCheckSimulatorTestResults) {
1682b8021494Sopenharmony_ci    // Check the results.
1683b8021494Sopenharmony_ci    unsigned total_error_count = 0;
1684b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1685b8021494Sopenharmony_ci      bool instruction_has_errors = false;
1686b8021494Sopenharmony_ci      for (size_t j = 0; j < kTests[i].input_size; j++) {
1687b8021494Sopenharmony_ci        uint32_t apsr = results[i]->outputs[j].apsr;
1688b8021494Sopenharmony_ci        uint32_t rd = results[i]->outputs[j].rd;
1689b8021494Sopenharmony_ci        uint32_t apsr_input = kTests[i].inputs[j].apsr;
1690b8021494Sopenharmony_ci        uint32_t rd_input = kTests[i].inputs[j].rd;
1691b8021494Sopenharmony_ci        uint32_t apsr_ref = reference[i].outputs[j].apsr;
1692b8021494Sopenharmony_ci        uint32_t rd_ref = reference[i].outputs[j].rd;
1693b8021494Sopenharmony_ci
1694b8021494Sopenharmony_ci        if (((apsr != apsr_ref) || (rd != rd_ref)) &&
1695b8021494Sopenharmony_ci            (++total_error_count <= kErrorReportLimit)) {
1696b8021494Sopenharmony_ci          // Print the instruction once even if it triggered multiple failures.
1697b8021494Sopenharmony_ci          if (!instruction_has_errors) {
1698b8021494Sopenharmony_ci            printf("Error(s) when testing \"%s %s\":\n",
1699b8021494Sopenharmony_ci                   mnemonic,
1700b8021494Sopenharmony_ci                   kTests[i].operands_description);
1701b8021494Sopenharmony_ci            instruction_has_errors = true;
1702b8021494Sopenharmony_ci          }
1703b8021494Sopenharmony_ci          // Print subsequent errors.
1704b8021494Sopenharmony_ci          printf("  Input:    ");
1705b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr_input);
1706b8021494Sopenharmony_ci          printf(", ");
1707b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd_input);
1708b8021494Sopenharmony_ci          printf("\n");
1709b8021494Sopenharmony_ci          printf("  Expected: ");
1710b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr_ref);
1711b8021494Sopenharmony_ci          printf(", ");
1712b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd_ref);
1713b8021494Sopenharmony_ci          printf("\n");
1714b8021494Sopenharmony_ci          printf("  Found:    ");
1715b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr);
1716b8021494Sopenharmony_ci          printf(", ");
1717b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd);
1718b8021494Sopenharmony_ci          printf("\n\n");
1719b8021494Sopenharmony_ci        }
1720b8021494Sopenharmony_ci      }
1721b8021494Sopenharmony_ci    }
1722b8021494Sopenharmony_ci
1723b8021494Sopenharmony_ci    if (total_error_count > kErrorReportLimit) {
1724b8021494Sopenharmony_ci      printf("%u other errors follow.\n",
1725b8021494Sopenharmony_ci             total_error_count - kErrorReportLimit);
1726b8021494Sopenharmony_ci    }
1727b8021494Sopenharmony_ci    VIXL_CHECK(total_error_count == 0);
1728b8021494Sopenharmony_ci  } else {
1729b8021494Sopenharmony_ci    VIXL_WARNING("Assembled the code, but did not run anything.\n");
1730b8021494Sopenharmony_ci  }
1731b8021494Sopenharmony_ci
1732b8021494Sopenharmony_ci  for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1733b8021494Sopenharmony_ci    delete[] results[i]->outputs;
1734b8021494Sopenharmony_ci    delete results[i];
1735b8021494Sopenharmony_ci    delete[] scratch_memory_buffers[i];
1736b8021494Sopenharmony_ci  }
1737b8021494Sopenharmony_ci}
1738b8021494Sopenharmony_ci
1739b8021494Sopenharmony_ci// Instantiate tests for each instruction in the list.
1740b8021494Sopenharmony_ci// TODO: Remove this limitation by having a sandboxing mechanism.
1741b8021494Sopenharmony_ci#if defined(VIXL_HOST_POINTER_32)
1742b8021494Sopenharmony_ci#define TEST(mnemonic)                                                        \
1743b8021494Sopenharmony_ci  void Test_##mnemonic() {                                                    \
1744b8021494Sopenharmony_ci    TestHelper(&MacroAssembler::mnemonic, #mnemonic, kReference##mnemonic);   \
1745b8021494Sopenharmony_ci  }                                                                           \
1746b8021494Sopenharmony_ci  Test test_##mnemonic("AARCH32_SIMULATOR_COND_RDLOW_OPERAND_IMM8_" #mnemonic \
1747b8021494Sopenharmony_ci                       "_T32",                                                \
1748b8021494Sopenharmony_ci                       &Test_##mnemonic);
1749b8021494Sopenharmony_ci#else
1750b8021494Sopenharmony_ci#define TEST(mnemonic)                                                        \
1751b8021494Sopenharmony_ci  void Test_##mnemonic() {                                                    \
1752b8021494Sopenharmony_ci    VIXL_WARNING("This test can only run on a 32-bit host.\n");               \
1753b8021494Sopenharmony_ci    USE(TestHelper);                                                          \
1754b8021494Sopenharmony_ci  }                                                                           \
1755b8021494Sopenharmony_ci  Test test_##mnemonic("AARCH32_SIMULATOR_COND_RDLOW_OPERAND_IMM8_" #mnemonic \
1756b8021494Sopenharmony_ci                       "_T32",                                                \
1757b8021494Sopenharmony_ci                       &Test_##mnemonic);
1758b8021494Sopenharmony_ci#endif
1759b8021494Sopenharmony_ci
1760b8021494Sopenharmony_ciFOREACH_INSTRUCTION(TEST)
1761b8021494Sopenharmony_ci#undef TEST
1762b8021494Sopenharmony_ci
1763b8021494Sopenharmony_ci}  // namespace
1764b8021494Sopenharmony_ci#endif
1765b8021494Sopenharmony_ci
1766b8021494Sopenharmony_ci}  // namespace aarch32
1767b8021494Sopenharmony_ci}  // namespace vixl
1768