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(Adc)                       \
117b8021494Sopenharmony_ci  M(Adcs)                      \
118b8021494Sopenharmony_ci  M(Add)                       \
119b8021494Sopenharmony_ci  M(Adds)                      \
120b8021494Sopenharmony_ci  M(And)                       \
121b8021494Sopenharmony_ci  M(Ands)                      \
122b8021494Sopenharmony_ci  M(Bic)                       \
123b8021494Sopenharmony_ci  M(Bics)                      \
124b8021494Sopenharmony_ci  M(Eor)                       \
125b8021494Sopenharmony_ci  M(Eors)                      \
126b8021494Sopenharmony_ci  M(Orn)                       \
127b8021494Sopenharmony_ci  M(Orns)                      \
128b8021494Sopenharmony_ci  M(Orr)                       \
129b8021494Sopenharmony_ci  M(Orrs)                      \
130b8021494Sopenharmony_ci  M(Rsb)                       \
131b8021494Sopenharmony_ci  M(Rsbs)                      \
132b8021494Sopenharmony_ci  M(Sbc)                       \
133b8021494Sopenharmony_ci  M(Sbcs)                      \
134b8021494Sopenharmony_ci  M(Sub)                       \
135b8021494Sopenharmony_ci  M(Subs)
136b8021494Sopenharmony_ci
137b8021494Sopenharmony_ci
138b8021494Sopenharmony_ci// The following definitions are defined again in each generated test, therefore
139b8021494Sopenharmony_ci// we need to place them in an anonymous namespace. It expresses that they are
140b8021494Sopenharmony_ci// local to this file only, and the compiler is not allowed to share these types
141b8021494Sopenharmony_ci// across test files during template instantiation. Specifically, `Operands` and
142b8021494Sopenharmony_ci// `Inputs` have various layouts across generated tests so they absolutely
143b8021494Sopenharmony_ci// cannot be shared.
144b8021494Sopenharmony_ci
145b8021494Sopenharmony_ci#ifdef VIXL_INCLUDE_TARGET_T32
146b8021494Sopenharmony_cinamespace {
147b8021494Sopenharmony_ci
148b8021494Sopenharmony_ci// Values to be passed to the assembler to produce the instruction under test.
149b8021494Sopenharmony_cistruct Operands {
150b8021494Sopenharmony_ci  Condition cond;
151b8021494Sopenharmony_ci  Register rd;
152b8021494Sopenharmony_ci  Register rn;
153b8021494Sopenharmony_ci  uint32_t immediate;
154b8021494Sopenharmony_ci};
155b8021494Sopenharmony_ci
156b8021494Sopenharmony_ci// Input data to feed to the instruction.
157b8021494Sopenharmony_cistruct Inputs {
158b8021494Sopenharmony_ci  uint32_t apsr;
159b8021494Sopenharmony_ci  uint32_t rd;
160b8021494Sopenharmony_ci  uint32_t rn;
161b8021494Sopenharmony_ci};
162b8021494Sopenharmony_ci
163b8021494Sopenharmony_ci// This structure contains all input data needed to test one specific encoding.
164b8021494Sopenharmony_ci// It used to generate a loop over an instruction.
165b8021494Sopenharmony_cistruct TestLoopData {
166b8021494Sopenharmony_ci  // The `operands` fields represents the values to pass to the assembler to
167b8021494Sopenharmony_ci  // produce the instruction.
168b8021494Sopenharmony_ci  Operands operands;
169b8021494Sopenharmony_ci  // Description of the operands, used for error reporting.
170b8021494Sopenharmony_ci  const char* operands_description;
171b8021494Sopenharmony_ci  // Unique identifier, used for generating traces.
172b8021494Sopenharmony_ci  const char* identifier;
173b8021494Sopenharmony_ci  // Array of values to be fed to the instruction.
174b8021494Sopenharmony_ci  size_t input_size;
175b8021494Sopenharmony_ci  const Inputs* inputs;
176b8021494Sopenharmony_ci};
177b8021494Sopenharmony_ci
178b8021494Sopenharmony_cistatic const Inputs kRdIsRn[] =
179b8021494Sopenharmony_ci    {{NoFlag, 0x00000000, 0x00000000}, {NoFlag, 0x00000001, 0x00000001},
180b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0x00000002}, {NoFlag, 0x00000020, 0x00000020},
181b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0x0000007d}, {NoFlag, 0x0000007e, 0x0000007e},
182b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0x0000007f}, {NoFlag, 0x00007ffd, 0x00007ffd},
183b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0x00007ffe}, {NoFlag, 0x00007fff, 0x00007fff},
184b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0x33333333}, {NoFlag, 0x55555555, 0x55555555},
185b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0x7ffffffd}, {NoFlag, 0x7ffffffe, 0x7ffffffe},
186b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0x7fffffff}, {NoFlag, 0x80000000, 0x80000000},
187b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0x80000001}, {NoFlag, 0xaaaaaaaa, 0xaaaaaaaa},
188b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0xcccccccc}, {NoFlag, 0xffff8000, 0xffff8000},
189b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0xffff8001}, {NoFlag, 0xffff8002, 0xffff8002},
190b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0xffff8003}, {NoFlag, 0xffffff80, 0xffffff80},
191b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0xffffff81}, {NoFlag, 0xffffff82, 0xffffff82},
192b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0xffffff83}, {NoFlag, 0xffffffe0, 0xffffffe0},
193b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0xfffffffd}, {NoFlag, 0xfffffffe, 0xfffffffe},
194b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0xffffffff}};
195b8021494Sopenharmony_ci
196b8021494Sopenharmony_cistatic const Inputs kRdIsNotRn[] =
197b8021494Sopenharmony_ci    {{NoFlag, 0x00000000, 0x00000000}, {NoFlag, 0x00000000, 0x00000001},
198b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0x00000002}, {NoFlag, 0x00000000, 0x00000020},
199b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0x0000007d}, {NoFlag, 0x00000000, 0x0000007e},
200b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0x0000007f}, {NoFlag, 0x00000000, 0x00007ffd},
201b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0x00007ffe}, {NoFlag, 0x00000000, 0x00007fff},
202b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0x33333333}, {NoFlag, 0x00000000, 0x55555555},
203b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0x7ffffffd}, {NoFlag, 0x00000000, 0x7ffffffe},
204b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0x7fffffff}, {NoFlag, 0x00000000, 0x80000000},
205b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0x80000001}, {NoFlag, 0x00000000, 0xaaaaaaaa},
206b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0xcccccccc}, {NoFlag, 0x00000000, 0xffff8000},
207b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0xffff8001}, {NoFlag, 0x00000000, 0xffff8002},
208b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0xffff8003}, {NoFlag, 0x00000000, 0xffffff80},
209b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0xffffff81}, {NoFlag, 0x00000000, 0xffffff82},
210b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0xffffff83}, {NoFlag, 0x00000000, 0xffffffe0},
211b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0xfffffffd}, {NoFlag, 0x00000000, 0xfffffffe},
212b8021494Sopenharmony_ci     {NoFlag, 0x00000000, 0xffffffff}, {NoFlag, 0x00000001, 0x00000000},
213b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0x00000001}, {NoFlag, 0x00000001, 0x00000002},
214b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0x00000020}, {NoFlag, 0x00000001, 0x0000007d},
215b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0x0000007e}, {NoFlag, 0x00000001, 0x0000007f},
216b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0x00007ffd}, {NoFlag, 0x00000001, 0x00007ffe},
217b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0x00007fff}, {NoFlag, 0x00000001, 0x33333333},
218b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0x55555555}, {NoFlag, 0x00000001, 0x7ffffffd},
219b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0x7ffffffe}, {NoFlag, 0x00000001, 0x7fffffff},
220b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0x80000000}, {NoFlag, 0x00000001, 0x80000001},
221b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0xaaaaaaaa}, {NoFlag, 0x00000001, 0xcccccccc},
222b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0xffff8000}, {NoFlag, 0x00000001, 0xffff8001},
223b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0xffff8002}, {NoFlag, 0x00000001, 0xffff8003},
224b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0xffffff80}, {NoFlag, 0x00000001, 0xffffff81},
225b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0xffffff82}, {NoFlag, 0x00000001, 0xffffff83},
226b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0xffffffe0}, {NoFlag, 0x00000001, 0xfffffffd},
227b8021494Sopenharmony_ci     {NoFlag, 0x00000001, 0xfffffffe}, {NoFlag, 0x00000001, 0xffffffff},
228b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0x00000000}, {NoFlag, 0x00000002, 0x00000001},
229b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0x00000002}, {NoFlag, 0x00000002, 0x00000020},
230b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0x0000007d}, {NoFlag, 0x00000002, 0x0000007e},
231b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0x0000007f}, {NoFlag, 0x00000002, 0x00007ffd},
232b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0x00007ffe}, {NoFlag, 0x00000002, 0x00007fff},
233b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0x33333333}, {NoFlag, 0x00000002, 0x55555555},
234b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0x7ffffffd}, {NoFlag, 0x00000002, 0x7ffffffe},
235b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0x7fffffff}, {NoFlag, 0x00000002, 0x80000000},
236b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0x80000001}, {NoFlag, 0x00000002, 0xaaaaaaaa},
237b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0xcccccccc}, {NoFlag, 0x00000002, 0xffff8000},
238b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0xffff8001}, {NoFlag, 0x00000002, 0xffff8002},
239b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0xffff8003}, {NoFlag, 0x00000002, 0xffffff80},
240b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0xffffff81}, {NoFlag, 0x00000002, 0xffffff82},
241b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0xffffff83}, {NoFlag, 0x00000002, 0xffffffe0},
242b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0xfffffffd}, {NoFlag, 0x00000002, 0xfffffffe},
243b8021494Sopenharmony_ci     {NoFlag, 0x00000002, 0xffffffff}, {NoFlag, 0x00000020, 0x00000000},
244b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0x00000001}, {NoFlag, 0x00000020, 0x00000002},
245b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0x00000020}, {NoFlag, 0x00000020, 0x0000007d},
246b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0x0000007e}, {NoFlag, 0x00000020, 0x0000007f},
247b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0x00007ffd}, {NoFlag, 0x00000020, 0x00007ffe},
248b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0x00007fff}, {NoFlag, 0x00000020, 0x33333333},
249b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0x55555555}, {NoFlag, 0x00000020, 0x7ffffffd},
250b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0x7ffffffe}, {NoFlag, 0x00000020, 0x7fffffff},
251b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0x80000000}, {NoFlag, 0x00000020, 0x80000001},
252b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0xaaaaaaaa}, {NoFlag, 0x00000020, 0xcccccccc},
253b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0xffff8000}, {NoFlag, 0x00000020, 0xffff8001},
254b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0xffff8002}, {NoFlag, 0x00000020, 0xffff8003},
255b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0xffffff80}, {NoFlag, 0x00000020, 0xffffff81},
256b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0xffffff82}, {NoFlag, 0x00000020, 0xffffff83},
257b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0xffffffe0}, {NoFlag, 0x00000020, 0xfffffffd},
258b8021494Sopenharmony_ci     {NoFlag, 0x00000020, 0xfffffffe}, {NoFlag, 0x00000020, 0xffffffff},
259b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0x00000000}, {NoFlag, 0x0000007d, 0x00000001},
260b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0x00000002}, {NoFlag, 0x0000007d, 0x00000020},
261b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0x0000007d}, {NoFlag, 0x0000007d, 0x0000007e},
262b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0x0000007f}, {NoFlag, 0x0000007d, 0x00007ffd},
263b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0x00007ffe}, {NoFlag, 0x0000007d, 0x00007fff},
264b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0x33333333}, {NoFlag, 0x0000007d, 0x55555555},
265b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0x7ffffffd}, {NoFlag, 0x0000007d, 0x7ffffffe},
266b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0x7fffffff}, {NoFlag, 0x0000007d, 0x80000000},
267b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0x80000001}, {NoFlag, 0x0000007d, 0xaaaaaaaa},
268b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0xcccccccc}, {NoFlag, 0x0000007d, 0xffff8000},
269b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0xffff8001}, {NoFlag, 0x0000007d, 0xffff8002},
270b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0xffff8003}, {NoFlag, 0x0000007d, 0xffffff80},
271b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0xffffff81}, {NoFlag, 0x0000007d, 0xffffff82},
272b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0xffffff83}, {NoFlag, 0x0000007d, 0xffffffe0},
273b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0xfffffffd}, {NoFlag, 0x0000007d, 0xfffffffe},
274b8021494Sopenharmony_ci     {NoFlag, 0x0000007d, 0xffffffff}, {NoFlag, 0x0000007e, 0x00000000},
275b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0x00000001}, {NoFlag, 0x0000007e, 0x00000002},
276b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0x00000020}, {NoFlag, 0x0000007e, 0x0000007d},
277b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0x0000007e}, {NoFlag, 0x0000007e, 0x0000007f},
278b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0x00007ffd}, {NoFlag, 0x0000007e, 0x00007ffe},
279b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0x00007fff}, {NoFlag, 0x0000007e, 0x33333333},
280b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0x55555555}, {NoFlag, 0x0000007e, 0x7ffffffd},
281b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0x7ffffffe}, {NoFlag, 0x0000007e, 0x7fffffff},
282b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0x80000000}, {NoFlag, 0x0000007e, 0x80000001},
283b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0xaaaaaaaa}, {NoFlag, 0x0000007e, 0xcccccccc},
284b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0xffff8000}, {NoFlag, 0x0000007e, 0xffff8001},
285b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0xffff8002}, {NoFlag, 0x0000007e, 0xffff8003},
286b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0xffffff80}, {NoFlag, 0x0000007e, 0xffffff81},
287b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0xffffff82}, {NoFlag, 0x0000007e, 0xffffff83},
288b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0xffffffe0}, {NoFlag, 0x0000007e, 0xfffffffd},
289b8021494Sopenharmony_ci     {NoFlag, 0x0000007e, 0xfffffffe}, {NoFlag, 0x0000007e, 0xffffffff},
290b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0x00000000}, {NoFlag, 0x0000007f, 0x00000001},
291b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0x00000002}, {NoFlag, 0x0000007f, 0x00000020},
292b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0x0000007d}, {NoFlag, 0x0000007f, 0x0000007e},
293b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0x0000007f}, {NoFlag, 0x0000007f, 0x00007ffd},
294b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0x00007ffe}, {NoFlag, 0x0000007f, 0x00007fff},
295b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0x33333333}, {NoFlag, 0x0000007f, 0x55555555},
296b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0x7ffffffd}, {NoFlag, 0x0000007f, 0x7ffffffe},
297b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0x7fffffff}, {NoFlag, 0x0000007f, 0x80000000},
298b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0x80000001}, {NoFlag, 0x0000007f, 0xaaaaaaaa},
299b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0xcccccccc}, {NoFlag, 0x0000007f, 0xffff8000},
300b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0xffff8001}, {NoFlag, 0x0000007f, 0xffff8002},
301b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0xffff8003}, {NoFlag, 0x0000007f, 0xffffff80},
302b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0xffffff81}, {NoFlag, 0x0000007f, 0xffffff82},
303b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0xffffff83}, {NoFlag, 0x0000007f, 0xffffffe0},
304b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0xfffffffd}, {NoFlag, 0x0000007f, 0xfffffffe},
305b8021494Sopenharmony_ci     {NoFlag, 0x0000007f, 0xffffffff}, {NoFlag, 0x00007ffd, 0x00000000},
306b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0x00000001}, {NoFlag, 0x00007ffd, 0x00000002},
307b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0x00000020}, {NoFlag, 0x00007ffd, 0x0000007d},
308b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0x0000007e}, {NoFlag, 0x00007ffd, 0x0000007f},
309b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0x00007ffd}, {NoFlag, 0x00007ffd, 0x00007ffe},
310b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0x00007fff}, {NoFlag, 0x00007ffd, 0x33333333},
311b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0x55555555}, {NoFlag, 0x00007ffd, 0x7ffffffd},
312b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0x7ffffffe}, {NoFlag, 0x00007ffd, 0x7fffffff},
313b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0x80000000}, {NoFlag, 0x00007ffd, 0x80000001},
314b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0xaaaaaaaa}, {NoFlag, 0x00007ffd, 0xcccccccc},
315b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0xffff8000}, {NoFlag, 0x00007ffd, 0xffff8001},
316b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0xffff8002}, {NoFlag, 0x00007ffd, 0xffff8003},
317b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0xffffff80}, {NoFlag, 0x00007ffd, 0xffffff81},
318b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0xffffff82}, {NoFlag, 0x00007ffd, 0xffffff83},
319b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0xffffffe0}, {NoFlag, 0x00007ffd, 0xfffffffd},
320b8021494Sopenharmony_ci     {NoFlag, 0x00007ffd, 0xfffffffe}, {NoFlag, 0x00007ffd, 0xffffffff},
321b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0x00000000}, {NoFlag, 0x00007ffe, 0x00000001},
322b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0x00000002}, {NoFlag, 0x00007ffe, 0x00000020},
323b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0x0000007d}, {NoFlag, 0x00007ffe, 0x0000007e},
324b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0x0000007f}, {NoFlag, 0x00007ffe, 0x00007ffd},
325b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0x00007ffe}, {NoFlag, 0x00007ffe, 0x00007fff},
326b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0x33333333}, {NoFlag, 0x00007ffe, 0x55555555},
327b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0x7ffffffd}, {NoFlag, 0x00007ffe, 0x7ffffffe},
328b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0x7fffffff}, {NoFlag, 0x00007ffe, 0x80000000},
329b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0x80000001}, {NoFlag, 0x00007ffe, 0xaaaaaaaa},
330b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0xcccccccc}, {NoFlag, 0x00007ffe, 0xffff8000},
331b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0xffff8001}, {NoFlag, 0x00007ffe, 0xffff8002},
332b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0xffff8003}, {NoFlag, 0x00007ffe, 0xffffff80},
333b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0xffffff81}, {NoFlag, 0x00007ffe, 0xffffff82},
334b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0xffffff83}, {NoFlag, 0x00007ffe, 0xffffffe0},
335b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0xfffffffd}, {NoFlag, 0x00007ffe, 0xfffffffe},
336b8021494Sopenharmony_ci     {NoFlag, 0x00007ffe, 0xffffffff}, {NoFlag, 0x00007fff, 0x00000000},
337b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0x00000001}, {NoFlag, 0x00007fff, 0x00000002},
338b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0x00000020}, {NoFlag, 0x00007fff, 0x0000007d},
339b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0x0000007e}, {NoFlag, 0x00007fff, 0x0000007f},
340b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0x00007ffd}, {NoFlag, 0x00007fff, 0x00007ffe},
341b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0x00007fff}, {NoFlag, 0x00007fff, 0x33333333},
342b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0x55555555}, {NoFlag, 0x00007fff, 0x7ffffffd},
343b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0x7ffffffe}, {NoFlag, 0x00007fff, 0x7fffffff},
344b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0x80000000}, {NoFlag, 0x00007fff, 0x80000001},
345b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0xaaaaaaaa}, {NoFlag, 0x00007fff, 0xcccccccc},
346b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0xffff8000}, {NoFlag, 0x00007fff, 0xffff8001},
347b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0xffff8002}, {NoFlag, 0x00007fff, 0xffff8003},
348b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0xffffff80}, {NoFlag, 0x00007fff, 0xffffff81},
349b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0xffffff82}, {NoFlag, 0x00007fff, 0xffffff83},
350b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0xffffffe0}, {NoFlag, 0x00007fff, 0xfffffffd},
351b8021494Sopenharmony_ci     {NoFlag, 0x00007fff, 0xfffffffe}, {NoFlag, 0x00007fff, 0xffffffff},
352b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0x00000000}, {NoFlag, 0x33333333, 0x00000001},
353b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0x00000002}, {NoFlag, 0x33333333, 0x00000020},
354b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0x0000007d}, {NoFlag, 0x33333333, 0x0000007e},
355b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0x0000007f}, {NoFlag, 0x33333333, 0x00007ffd},
356b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0x00007ffe}, {NoFlag, 0x33333333, 0x00007fff},
357b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0x33333333}, {NoFlag, 0x33333333, 0x55555555},
358b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0x7ffffffd}, {NoFlag, 0x33333333, 0x7ffffffe},
359b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0x7fffffff}, {NoFlag, 0x33333333, 0x80000000},
360b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0x80000001}, {NoFlag, 0x33333333, 0xaaaaaaaa},
361b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0xcccccccc}, {NoFlag, 0x33333333, 0xffff8000},
362b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0xffff8001}, {NoFlag, 0x33333333, 0xffff8002},
363b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0xffff8003}, {NoFlag, 0x33333333, 0xffffff80},
364b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0xffffff81}, {NoFlag, 0x33333333, 0xffffff82},
365b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0xffffff83}, {NoFlag, 0x33333333, 0xffffffe0},
366b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0xfffffffd}, {NoFlag, 0x33333333, 0xfffffffe},
367b8021494Sopenharmony_ci     {NoFlag, 0x33333333, 0xffffffff}, {NoFlag, 0x55555555, 0x00000000},
368b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0x00000001}, {NoFlag, 0x55555555, 0x00000002},
369b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0x00000020}, {NoFlag, 0x55555555, 0x0000007d},
370b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0x0000007e}, {NoFlag, 0x55555555, 0x0000007f},
371b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0x00007ffd}, {NoFlag, 0x55555555, 0x00007ffe},
372b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0x00007fff}, {NoFlag, 0x55555555, 0x33333333},
373b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0x55555555}, {NoFlag, 0x55555555, 0x7ffffffd},
374b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0x7ffffffe}, {NoFlag, 0x55555555, 0x7fffffff},
375b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0x80000000}, {NoFlag, 0x55555555, 0x80000001},
376b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0xaaaaaaaa}, {NoFlag, 0x55555555, 0xcccccccc},
377b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0xffff8000}, {NoFlag, 0x55555555, 0xffff8001},
378b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0xffff8002}, {NoFlag, 0x55555555, 0xffff8003},
379b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0xffffff80}, {NoFlag, 0x55555555, 0xffffff81},
380b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0xffffff82}, {NoFlag, 0x55555555, 0xffffff83},
381b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0xffffffe0}, {NoFlag, 0x55555555, 0xfffffffd},
382b8021494Sopenharmony_ci     {NoFlag, 0x55555555, 0xfffffffe}, {NoFlag, 0x55555555, 0xffffffff},
383b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0x00000000}, {NoFlag, 0x7ffffffd, 0x00000001},
384b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0x00000002}, {NoFlag, 0x7ffffffd, 0x00000020},
385b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0x0000007d}, {NoFlag, 0x7ffffffd, 0x0000007e},
386b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0x0000007f}, {NoFlag, 0x7ffffffd, 0x00007ffd},
387b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0x00007ffe}, {NoFlag, 0x7ffffffd, 0x00007fff},
388b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0x33333333}, {NoFlag, 0x7ffffffd, 0x55555555},
389b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0x7ffffffd}, {NoFlag, 0x7ffffffd, 0x7ffffffe},
390b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0x7fffffff}, {NoFlag, 0x7ffffffd, 0x80000000},
391b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0x80000001}, {NoFlag, 0x7ffffffd, 0xaaaaaaaa},
392b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0xcccccccc}, {NoFlag, 0x7ffffffd, 0xffff8000},
393b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0xffff8001}, {NoFlag, 0x7ffffffd, 0xffff8002},
394b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0xffff8003}, {NoFlag, 0x7ffffffd, 0xffffff80},
395b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0xffffff81}, {NoFlag, 0x7ffffffd, 0xffffff82},
396b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0xffffff83}, {NoFlag, 0x7ffffffd, 0xffffffe0},
397b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0xfffffffd}, {NoFlag, 0x7ffffffd, 0xfffffffe},
398b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffd, 0xffffffff}, {NoFlag, 0x7ffffffe, 0x00000000},
399b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0x00000001}, {NoFlag, 0x7ffffffe, 0x00000002},
400b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0x00000020}, {NoFlag, 0x7ffffffe, 0x0000007d},
401b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0x0000007e}, {NoFlag, 0x7ffffffe, 0x0000007f},
402b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0x00007ffd}, {NoFlag, 0x7ffffffe, 0x00007ffe},
403b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0x00007fff}, {NoFlag, 0x7ffffffe, 0x33333333},
404b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0x55555555}, {NoFlag, 0x7ffffffe, 0x7ffffffd},
405b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0x7ffffffe}, {NoFlag, 0x7ffffffe, 0x7fffffff},
406b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0x80000000}, {NoFlag, 0x7ffffffe, 0x80000001},
407b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0xaaaaaaaa}, {NoFlag, 0x7ffffffe, 0xcccccccc},
408b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0xffff8000}, {NoFlag, 0x7ffffffe, 0xffff8001},
409b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0xffff8002}, {NoFlag, 0x7ffffffe, 0xffff8003},
410b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0xffffff80}, {NoFlag, 0x7ffffffe, 0xffffff81},
411b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0xffffff82}, {NoFlag, 0x7ffffffe, 0xffffff83},
412b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0xffffffe0}, {NoFlag, 0x7ffffffe, 0xfffffffd},
413b8021494Sopenharmony_ci     {NoFlag, 0x7ffffffe, 0xfffffffe}, {NoFlag, 0x7ffffffe, 0xffffffff},
414b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0x00000000}, {NoFlag, 0x7fffffff, 0x00000001},
415b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0x00000002}, {NoFlag, 0x7fffffff, 0x00000020},
416b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0x0000007d}, {NoFlag, 0x7fffffff, 0x0000007e},
417b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0x0000007f}, {NoFlag, 0x7fffffff, 0x00007ffd},
418b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0x00007ffe}, {NoFlag, 0x7fffffff, 0x00007fff},
419b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0x33333333}, {NoFlag, 0x7fffffff, 0x55555555},
420b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0x7ffffffd}, {NoFlag, 0x7fffffff, 0x7ffffffe},
421b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0x7fffffff}, {NoFlag, 0x7fffffff, 0x80000000},
422b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0x80000001}, {NoFlag, 0x7fffffff, 0xaaaaaaaa},
423b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0xcccccccc}, {NoFlag, 0x7fffffff, 0xffff8000},
424b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0xffff8001}, {NoFlag, 0x7fffffff, 0xffff8002},
425b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0xffff8003}, {NoFlag, 0x7fffffff, 0xffffff80},
426b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0xffffff81}, {NoFlag, 0x7fffffff, 0xffffff82},
427b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0xffffff83}, {NoFlag, 0x7fffffff, 0xffffffe0},
428b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0xfffffffd}, {NoFlag, 0x7fffffff, 0xfffffffe},
429b8021494Sopenharmony_ci     {NoFlag, 0x7fffffff, 0xffffffff}, {NoFlag, 0x80000000, 0x00000000},
430b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0x00000001}, {NoFlag, 0x80000000, 0x00000002},
431b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0x00000020}, {NoFlag, 0x80000000, 0x0000007d},
432b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0x0000007e}, {NoFlag, 0x80000000, 0x0000007f},
433b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0x00007ffd}, {NoFlag, 0x80000000, 0x00007ffe},
434b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0x00007fff}, {NoFlag, 0x80000000, 0x33333333},
435b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0x55555555}, {NoFlag, 0x80000000, 0x7ffffffd},
436b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0x7ffffffe}, {NoFlag, 0x80000000, 0x7fffffff},
437b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0x80000000}, {NoFlag, 0x80000000, 0x80000001},
438b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0xaaaaaaaa}, {NoFlag, 0x80000000, 0xcccccccc},
439b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0xffff8000}, {NoFlag, 0x80000000, 0xffff8001},
440b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0xffff8002}, {NoFlag, 0x80000000, 0xffff8003},
441b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0xffffff80}, {NoFlag, 0x80000000, 0xffffff81},
442b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0xffffff82}, {NoFlag, 0x80000000, 0xffffff83},
443b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0xffffffe0}, {NoFlag, 0x80000000, 0xfffffffd},
444b8021494Sopenharmony_ci     {NoFlag, 0x80000000, 0xfffffffe}, {NoFlag, 0x80000000, 0xffffffff},
445b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0x00000000}, {NoFlag, 0x80000001, 0x00000001},
446b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0x00000002}, {NoFlag, 0x80000001, 0x00000020},
447b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0x0000007d}, {NoFlag, 0x80000001, 0x0000007e},
448b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0x0000007f}, {NoFlag, 0x80000001, 0x00007ffd},
449b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0x00007ffe}, {NoFlag, 0x80000001, 0x00007fff},
450b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0x33333333}, {NoFlag, 0x80000001, 0x55555555},
451b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0x7ffffffd}, {NoFlag, 0x80000001, 0x7ffffffe},
452b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0x7fffffff}, {NoFlag, 0x80000001, 0x80000000},
453b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0x80000001}, {NoFlag, 0x80000001, 0xaaaaaaaa},
454b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0xcccccccc}, {NoFlag, 0x80000001, 0xffff8000},
455b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0xffff8001}, {NoFlag, 0x80000001, 0xffff8002},
456b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0xffff8003}, {NoFlag, 0x80000001, 0xffffff80},
457b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0xffffff81}, {NoFlag, 0x80000001, 0xffffff82},
458b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0xffffff83}, {NoFlag, 0x80000001, 0xffffffe0},
459b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0xfffffffd}, {NoFlag, 0x80000001, 0xfffffffe},
460b8021494Sopenharmony_ci     {NoFlag, 0x80000001, 0xffffffff}, {NoFlag, 0xaaaaaaaa, 0x00000000},
461b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0x00000001}, {NoFlag, 0xaaaaaaaa, 0x00000002},
462b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0x00000020}, {NoFlag, 0xaaaaaaaa, 0x0000007d},
463b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0x0000007e}, {NoFlag, 0xaaaaaaaa, 0x0000007f},
464b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0x00007ffd}, {NoFlag, 0xaaaaaaaa, 0x00007ffe},
465b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0x00007fff}, {NoFlag, 0xaaaaaaaa, 0x33333333},
466b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0x55555555}, {NoFlag, 0xaaaaaaaa, 0x7ffffffd},
467b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0x7ffffffe}, {NoFlag, 0xaaaaaaaa, 0x7fffffff},
468b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0x80000000}, {NoFlag, 0xaaaaaaaa, 0x80000001},
469b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0xaaaaaaaa}, {NoFlag, 0xaaaaaaaa, 0xcccccccc},
470b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0xffff8000}, {NoFlag, 0xaaaaaaaa, 0xffff8001},
471b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0xffff8002}, {NoFlag, 0xaaaaaaaa, 0xffff8003},
472b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0xffffff80}, {NoFlag, 0xaaaaaaaa, 0xffffff81},
473b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0xffffff82}, {NoFlag, 0xaaaaaaaa, 0xffffff83},
474b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0xffffffe0}, {NoFlag, 0xaaaaaaaa, 0xfffffffd},
475b8021494Sopenharmony_ci     {NoFlag, 0xaaaaaaaa, 0xfffffffe}, {NoFlag, 0xaaaaaaaa, 0xffffffff},
476b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0x00000000}, {NoFlag, 0xcccccccc, 0x00000001},
477b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0x00000002}, {NoFlag, 0xcccccccc, 0x00000020},
478b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0x0000007d}, {NoFlag, 0xcccccccc, 0x0000007e},
479b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0x0000007f}, {NoFlag, 0xcccccccc, 0x00007ffd},
480b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0x00007ffe}, {NoFlag, 0xcccccccc, 0x00007fff},
481b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0x33333333}, {NoFlag, 0xcccccccc, 0x55555555},
482b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0x7ffffffd}, {NoFlag, 0xcccccccc, 0x7ffffffe},
483b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0x7fffffff}, {NoFlag, 0xcccccccc, 0x80000000},
484b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0x80000001}, {NoFlag, 0xcccccccc, 0xaaaaaaaa},
485b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0xcccccccc}, {NoFlag, 0xcccccccc, 0xffff8000},
486b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0xffff8001}, {NoFlag, 0xcccccccc, 0xffff8002},
487b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0xffff8003}, {NoFlag, 0xcccccccc, 0xffffff80},
488b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0xffffff81}, {NoFlag, 0xcccccccc, 0xffffff82},
489b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0xffffff83}, {NoFlag, 0xcccccccc, 0xffffffe0},
490b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0xfffffffd}, {NoFlag, 0xcccccccc, 0xfffffffe},
491b8021494Sopenharmony_ci     {NoFlag, 0xcccccccc, 0xffffffff}, {NoFlag, 0xffff8000, 0x00000000},
492b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0x00000001}, {NoFlag, 0xffff8000, 0x00000002},
493b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0x00000020}, {NoFlag, 0xffff8000, 0x0000007d},
494b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0x0000007e}, {NoFlag, 0xffff8000, 0x0000007f},
495b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0x00007ffd}, {NoFlag, 0xffff8000, 0x00007ffe},
496b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0x00007fff}, {NoFlag, 0xffff8000, 0x33333333},
497b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0x55555555}, {NoFlag, 0xffff8000, 0x7ffffffd},
498b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0x7ffffffe}, {NoFlag, 0xffff8000, 0x7fffffff},
499b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0x80000000}, {NoFlag, 0xffff8000, 0x80000001},
500b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0xaaaaaaaa}, {NoFlag, 0xffff8000, 0xcccccccc},
501b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0xffff8000}, {NoFlag, 0xffff8000, 0xffff8001},
502b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0xffff8002}, {NoFlag, 0xffff8000, 0xffff8003},
503b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0xffffff80}, {NoFlag, 0xffff8000, 0xffffff81},
504b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0xffffff82}, {NoFlag, 0xffff8000, 0xffffff83},
505b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0xffffffe0}, {NoFlag, 0xffff8000, 0xfffffffd},
506b8021494Sopenharmony_ci     {NoFlag, 0xffff8000, 0xfffffffe}, {NoFlag, 0xffff8000, 0xffffffff},
507b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0x00000000}, {NoFlag, 0xffff8001, 0x00000001},
508b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0x00000002}, {NoFlag, 0xffff8001, 0x00000020},
509b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0x0000007d}, {NoFlag, 0xffff8001, 0x0000007e},
510b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0x0000007f}, {NoFlag, 0xffff8001, 0x00007ffd},
511b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0x00007ffe}, {NoFlag, 0xffff8001, 0x00007fff},
512b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0x33333333}, {NoFlag, 0xffff8001, 0x55555555},
513b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0x7ffffffd}, {NoFlag, 0xffff8001, 0x7ffffffe},
514b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0x7fffffff}, {NoFlag, 0xffff8001, 0x80000000},
515b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0x80000001}, {NoFlag, 0xffff8001, 0xaaaaaaaa},
516b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0xcccccccc}, {NoFlag, 0xffff8001, 0xffff8000},
517b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0xffff8001}, {NoFlag, 0xffff8001, 0xffff8002},
518b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0xffff8003}, {NoFlag, 0xffff8001, 0xffffff80},
519b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0xffffff81}, {NoFlag, 0xffff8001, 0xffffff82},
520b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0xffffff83}, {NoFlag, 0xffff8001, 0xffffffe0},
521b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0xfffffffd}, {NoFlag, 0xffff8001, 0xfffffffe},
522b8021494Sopenharmony_ci     {NoFlag, 0xffff8001, 0xffffffff}, {NoFlag, 0xffff8002, 0x00000000},
523b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0x00000001}, {NoFlag, 0xffff8002, 0x00000002},
524b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0x00000020}, {NoFlag, 0xffff8002, 0x0000007d},
525b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0x0000007e}, {NoFlag, 0xffff8002, 0x0000007f},
526b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0x00007ffd}, {NoFlag, 0xffff8002, 0x00007ffe},
527b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0x00007fff}, {NoFlag, 0xffff8002, 0x33333333},
528b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0x55555555}, {NoFlag, 0xffff8002, 0x7ffffffd},
529b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0x7ffffffe}, {NoFlag, 0xffff8002, 0x7fffffff},
530b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0x80000000}, {NoFlag, 0xffff8002, 0x80000001},
531b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0xaaaaaaaa}, {NoFlag, 0xffff8002, 0xcccccccc},
532b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0xffff8000}, {NoFlag, 0xffff8002, 0xffff8001},
533b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0xffff8002}, {NoFlag, 0xffff8002, 0xffff8003},
534b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0xffffff80}, {NoFlag, 0xffff8002, 0xffffff81},
535b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0xffffff82}, {NoFlag, 0xffff8002, 0xffffff83},
536b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0xffffffe0}, {NoFlag, 0xffff8002, 0xfffffffd},
537b8021494Sopenharmony_ci     {NoFlag, 0xffff8002, 0xfffffffe}, {NoFlag, 0xffff8002, 0xffffffff},
538b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0x00000000}, {NoFlag, 0xffff8003, 0x00000001},
539b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0x00000002}, {NoFlag, 0xffff8003, 0x00000020},
540b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0x0000007d}, {NoFlag, 0xffff8003, 0x0000007e},
541b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0x0000007f}, {NoFlag, 0xffff8003, 0x00007ffd},
542b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0x00007ffe}, {NoFlag, 0xffff8003, 0x00007fff},
543b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0x33333333}, {NoFlag, 0xffff8003, 0x55555555},
544b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0x7ffffffd}, {NoFlag, 0xffff8003, 0x7ffffffe},
545b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0x7fffffff}, {NoFlag, 0xffff8003, 0x80000000},
546b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0x80000001}, {NoFlag, 0xffff8003, 0xaaaaaaaa},
547b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0xcccccccc}, {NoFlag, 0xffff8003, 0xffff8000},
548b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0xffff8001}, {NoFlag, 0xffff8003, 0xffff8002},
549b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0xffff8003}, {NoFlag, 0xffff8003, 0xffffff80},
550b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0xffffff81}, {NoFlag, 0xffff8003, 0xffffff82},
551b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0xffffff83}, {NoFlag, 0xffff8003, 0xffffffe0},
552b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0xfffffffd}, {NoFlag, 0xffff8003, 0xfffffffe},
553b8021494Sopenharmony_ci     {NoFlag, 0xffff8003, 0xffffffff}, {NoFlag, 0xffffff80, 0x00000000},
554b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0x00000001}, {NoFlag, 0xffffff80, 0x00000002},
555b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0x00000020}, {NoFlag, 0xffffff80, 0x0000007d},
556b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0x0000007e}, {NoFlag, 0xffffff80, 0x0000007f},
557b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0x00007ffd}, {NoFlag, 0xffffff80, 0x00007ffe},
558b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0x00007fff}, {NoFlag, 0xffffff80, 0x33333333},
559b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0x55555555}, {NoFlag, 0xffffff80, 0x7ffffffd},
560b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0x7ffffffe}, {NoFlag, 0xffffff80, 0x7fffffff},
561b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0x80000000}, {NoFlag, 0xffffff80, 0x80000001},
562b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0xaaaaaaaa}, {NoFlag, 0xffffff80, 0xcccccccc},
563b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0xffff8000}, {NoFlag, 0xffffff80, 0xffff8001},
564b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0xffff8002}, {NoFlag, 0xffffff80, 0xffff8003},
565b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0xffffff80}, {NoFlag, 0xffffff80, 0xffffff81},
566b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0xffffff82}, {NoFlag, 0xffffff80, 0xffffff83},
567b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0xffffffe0}, {NoFlag, 0xffffff80, 0xfffffffd},
568b8021494Sopenharmony_ci     {NoFlag, 0xffffff80, 0xfffffffe}, {NoFlag, 0xffffff80, 0xffffffff},
569b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0x00000000}, {NoFlag, 0xffffff81, 0x00000001},
570b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0x00000002}, {NoFlag, 0xffffff81, 0x00000020},
571b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0x0000007d}, {NoFlag, 0xffffff81, 0x0000007e},
572b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0x0000007f}, {NoFlag, 0xffffff81, 0x00007ffd},
573b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0x00007ffe}, {NoFlag, 0xffffff81, 0x00007fff},
574b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0x33333333}, {NoFlag, 0xffffff81, 0x55555555},
575b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0x7ffffffd}, {NoFlag, 0xffffff81, 0x7ffffffe},
576b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0x7fffffff}, {NoFlag, 0xffffff81, 0x80000000},
577b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0x80000001}, {NoFlag, 0xffffff81, 0xaaaaaaaa},
578b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0xcccccccc}, {NoFlag, 0xffffff81, 0xffff8000},
579b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0xffff8001}, {NoFlag, 0xffffff81, 0xffff8002},
580b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0xffff8003}, {NoFlag, 0xffffff81, 0xffffff80},
581b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0xffffff81}, {NoFlag, 0xffffff81, 0xffffff82},
582b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0xffffff83}, {NoFlag, 0xffffff81, 0xffffffe0},
583b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0xfffffffd}, {NoFlag, 0xffffff81, 0xfffffffe},
584b8021494Sopenharmony_ci     {NoFlag, 0xffffff81, 0xffffffff}, {NoFlag, 0xffffff82, 0x00000000},
585b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0x00000001}, {NoFlag, 0xffffff82, 0x00000002},
586b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0x00000020}, {NoFlag, 0xffffff82, 0x0000007d},
587b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0x0000007e}, {NoFlag, 0xffffff82, 0x0000007f},
588b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0x00007ffd}, {NoFlag, 0xffffff82, 0x00007ffe},
589b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0x00007fff}, {NoFlag, 0xffffff82, 0x33333333},
590b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0x55555555}, {NoFlag, 0xffffff82, 0x7ffffffd},
591b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0x7ffffffe}, {NoFlag, 0xffffff82, 0x7fffffff},
592b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0x80000000}, {NoFlag, 0xffffff82, 0x80000001},
593b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0xaaaaaaaa}, {NoFlag, 0xffffff82, 0xcccccccc},
594b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0xffff8000}, {NoFlag, 0xffffff82, 0xffff8001},
595b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0xffff8002}, {NoFlag, 0xffffff82, 0xffff8003},
596b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0xffffff80}, {NoFlag, 0xffffff82, 0xffffff81},
597b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0xffffff82}, {NoFlag, 0xffffff82, 0xffffff83},
598b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0xffffffe0}, {NoFlag, 0xffffff82, 0xfffffffd},
599b8021494Sopenharmony_ci     {NoFlag, 0xffffff82, 0xfffffffe}, {NoFlag, 0xffffff82, 0xffffffff},
600b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0x00000000}, {NoFlag, 0xffffff83, 0x00000001},
601b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0x00000002}, {NoFlag, 0xffffff83, 0x00000020},
602b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0x0000007d}, {NoFlag, 0xffffff83, 0x0000007e},
603b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0x0000007f}, {NoFlag, 0xffffff83, 0x00007ffd},
604b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0x00007ffe}, {NoFlag, 0xffffff83, 0x00007fff},
605b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0x33333333}, {NoFlag, 0xffffff83, 0x55555555},
606b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0x7ffffffd}, {NoFlag, 0xffffff83, 0x7ffffffe},
607b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0x7fffffff}, {NoFlag, 0xffffff83, 0x80000000},
608b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0x80000001}, {NoFlag, 0xffffff83, 0xaaaaaaaa},
609b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0xcccccccc}, {NoFlag, 0xffffff83, 0xffff8000},
610b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0xffff8001}, {NoFlag, 0xffffff83, 0xffff8002},
611b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0xffff8003}, {NoFlag, 0xffffff83, 0xffffff80},
612b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0xffffff81}, {NoFlag, 0xffffff83, 0xffffff82},
613b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0xffffff83}, {NoFlag, 0xffffff83, 0xffffffe0},
614b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0xfffffffd}, {NoFlag, 0xffffff83, 0xfffffffe},
615b8021494Sopenharmony_ci     {NoFlag, 0xffffff83, 0xffffffff}, {NoFlag, 0xffffffe0, 0x00000000},
616b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0x00000001}, {NoFlag, 0xffffffe0, 0x00000002},
617b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0x00000020}, {NoFlag, 0xffffffe0, 0x0000007d},
618b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0x0000007e}, {NoFlag, 0xffffffe0, 0x0000007f},
619b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0x00007ffd}, {NoFlag, 0xffffffe0, 0x00007ffe},
620b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0x00007fff}, {NoFlag, 0xffffffe0, 0x33333333},
621b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0x55555555}, {NoFlag, 0xffffffe0, 0x7ffffffd},
622b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0x7ffffffe}, {NoFlag, 0xffffffe0, 0x7fffffff},
623b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0x80000000}, {NoFlag, 0xffffffe0, 0x80000001},
624b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0xaaaaaaaa}, {NoFlag, 0xffffffe0, 0xcccccccc},
625b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0xffff8000}, {NoFlag, 0xffffffe0, 0xffff8001},
626b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0xffff8002}, {NoFlag, 0xffffffe0, 0xffff8003},
627b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0xffffff80}, {NoFlag, 0xffffffe0, 0xffffff81},
628b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0xffffff82}, {NoFlag, 0xffffffe0, 0xffffff83},
629b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0xffffffe0}, {NoFlag, 0xffffffe0, 0xfffffffd},
630b8021494Sopenharmony_ci     {NoFlag, 0xffffffe0, 0xfffffffe}, {NoFlag, 0xffffffe0, 0xffffffff},
631b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0x00000000}, {NoFlag, 0xfffffffd, 0x00000001},
632b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0x00000002}, {NoFlag, 0xfffffffd, 0x00000020},
633b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0x0000007d}, {NoFlag, 0xfffffffd, 0x0000007e},
634b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0x0000007f}, {NoFlag, 0xfffffffd, 0x00007ffd},
635b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0x00007ffe}, {NoFlag, 0xfffffffd, 0x00007fff},
636b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0x33333333}, {NoFlag, 0xfffffffd, 0x55555555},
637b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0x7ffffffd}, {NoFlag, 0xfffffffd, 0x7ffffffe},
638b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0x7fffffff}, {NoFlag, 0xfffffffd, 0x80000000},
639b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0x80000001}, {NoFlag, 0xfffffffd, 0xaaaaaaaa},
640b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0xcccccccc}, {NoFlag, 0xfffffffd, 0xffff8000},
641b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0xffff8001}, {NoFlag, 0xfffffffd, 0xffff8002},
642b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0xffff8003}, {NoFlag, 0xfffffffd, 0xffffff80},
643b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0xffffff81}, {NoFlag, 0xfffffffd, 0xffffff82},
644b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0xffffff83}, {NoFlag, 0xfffffffd, 0xffffffe0},
645b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0xfffffffd}, {NoFlag, 0xfffffffd, 0xfffffffe},
646b8021494Sopenharmony_ci     {NoFlag, 0xfffffffd, 0xffffffff}, {NoFlag, 0xfffffffe, 0x00000000},
647b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0x00000001}, {NoFlag, 0xfffffffe, 0x00000002},
648b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0x00000020}, {NoFlag, 0xfffffffe, 0x0000007d},
649b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0x0000007e}, {NoFlag, 0xfffffffe, 0x0000007f},
650b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0x00007ffd}, {NoFlag, 0xfffffffe, 0x00007ffe},
651b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0x00007fff}, {NoFlag, 0xfffffffe, 0x33333333},
652b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0x55555555}, {NoFlag, 0xfffffffe, 0x7ffffffd},
653b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0x7ffffffe}, {NoFlag, 0xfffffffe, 0x7fffffff},
654b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0x80000000}, {NoFlag, 0xfffffffe, 0x80000001},
655b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0xaaaaaaaa}, {NoFlag, 0xfffffffe, 0xcccccccc},
656b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0xffff8000}, {NoFlag, 0xfffffffe, 0xffff8001},
657b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0xffff8002}, {NoFlag, 0xfffffffe, 0xffff8003},
658b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0xffffff80}, {NoFlag, 0xfffffffe, 0xffffff81},
659b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0xffffff82}, {NoFlag, 0xfffffffe, 0xffffff83},
660b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0xffffffe0}, {NoFlag, 0xfffffffe, 0xfffffffd},
661b8021494Sopenharmony_ci     {NoFlag, 0xfffffffe, 0xfffffffe}, {NoFlag, 0xfffffffe, 0xffffffff},
662b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0x00000000}, {NoFlag, 0xffffffff, 0x00000001},
663b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0x00000002}, {NoFlag, 0xffffffff, 0x00000020},
664b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0x0000007d}, {NoFlag, 0xffffffff, 0x0000007e},
665b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0x0000007f}, {NoFlag, 0xffffffff, 0x00007ffd},
666b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0x00007ffe}, {NoFlag, 0xffffffff, 0x00007fff},
667b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0x33333333}, {NoFlag, 0xffffffff, 0x55555555},
668b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0x7ffffffd}, {NoFlag, 0xffffffff, 0x7ffffffe},
669b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0x7fffffff}, {NoFlag, 0xffffffff, 0x80000000},
670b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0x80000001}, {NoFlag, 0xffffffff, 0xaaaaaaaa},
671b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0xcccccccc}, {NoFlag, 0xffffffff, 0xffff8000},
672b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0xffff8001}, {NoFlag, 0xffffffff, 0xffff8002},
673b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0xffff8003}, {NoFlag, 0xffffffff, 0xffffff80},
674b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0xffffff81}, {NoFlag, 0xffffffff, 0xffffff82},
675b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0xffffff83}, {NoFlag, 0xffffffff, 0xffffffe0},
676b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0xfffffffd}, {NoFlag, 0xffffffff, 0xfffffffe},
677b8021494Sopenharmony_ci     {NoFlag, 0xffffffff, 0xffffffff}};
678b8021494Sopenharmony_ci
679b8021494Sopenharmony_cistatic const Inputs kModifiedImmediate[] =
680b8021494Sopenharmony_ci    {{NoFlag, 0xabababab, 0x00000000}, {NoFlag, 0xabababab, 0x00000001},
681b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0x00000002}, {NoFlag, 0xabababab, 0x00000020},
682b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0x0000007d}, {NoFlag, 0xabababab, 0x0000007e},
683b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0x0000007f}, {NoFlag, 0xabababab, 0x00007ffd},
684b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0x00007ffe}, {NoFlag, 0xabababab, 0x00007fff},
685b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0x33333333}, {NoFlag, 0xabababab, 0x55555555},
686b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0x7ffffffd}, {NoFlag, 0xabababab, 0x7ffffffe},
687b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0x7fffffff}, {NoFlag, 0xabababab, 0x80000000},
688b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0x80000001}, {NoFlag, 0xabababab, 0xaaaaaaaa},
689b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0xcccccccc}, {NoFlag, 0xabababab, 0xffff8000},
690b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0xffff8001}, {NoFlag, 0xabababab, 0xffff8002},
691b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0xffff8003}, {NoFlag, 0xabababab, 0xffffff80},
692b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0xffffff81}, {NoFlag, 0xabababab, 0xffffff82},
693b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0xffffff83}, {NoFlag, 0xabababab, 0xffffffe0},
694b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0xfffffffd}, {NoFlag, 0xabababab, 0xfffffffe},
695b8021494Sopenharmony_ci     {NoFlag, 0xabababab, 0xffffffff}};
696b8021494Sopenharmony_ci
697b8021494Sopenharmony_ci
698b8021494Sopenharmony_ci// A loop will be generated for each element of this array.
699b8021494Sopenharmony_ciconst TestLoopData kTests[] = {{{al, r5, r5, 0x00001560},
700b8021494Sopenharmony_ci                                "al r5 r5 0x00001560",
701b8021494Sopenharmony_ci                                "RdIsRn_al_r5_r5_0x00001560",
702b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
703b8021494Sopenharmony_ci                                kRdIsRn},
704b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00007f80},
705b8021494Sopenharmony_ci                                "al r0 r0 0x00007f80",
706b8021494Sopenharmony_ci                                "RdIsRn_al_r0_r0_0x00007f80",
707b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
708b8021494Sopenharmony_ci                                kRdIsRn},
709b8021494Sopenharmony_ci                               {{al, r1, r1, 0x002ac000},
710b8021494Sopenharmony_ci                                "al r1 r1 0x002ac000",
711b8021494Sopenharmony_ci                                "RdIsRn_al_r1_r1_0x002ac000",
712b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
713b8021494Sopenharmony_ci                                kRdIsRn},
714b8021494Sopenharmony_ci                               {{al, r10, r10, 0x15600000},
715b8021494Sopenharmony_ci                                "al r10 r10 0x15600000",
716b8021494Sopenharmony_ci                                "RdIsRn_al_r10_r10_0x15600000",
717b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
718b8021494Sopenharmony_ci                                kRdIsRn},
719b8021494Sopenharmony_ci                               {{al, r2, r2, 0x00001fe0},
720b8021494Sopenharmony_ci                                "al r2 r2 0x00001fe0",
721b8021494Sopenharmony_ci                                "RdIsRn_al_r2_r2_0x00001fe0",
722b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
723b8021494Sopenharmony_ci                                kRdIsRn},
724b8021494Sopenharmony_ci                               {{al, r12, r12, 0x2ac00000},
725b8021494Sopenharmony_ci                                "al r12 r12 0x2ac00000",
726b8021494Sopenharmony_ci                                "RdIsRn_al_r12_r12_0x2ac00000",
727b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
728b8021494Sopenharmony_ci                                kRdIsRn},
729b8021494Sopenharmony_ci                               {{al, r8, r8, 0x00001fe0},
730b8021494Sopenharmony_ci                                "al r8 r8 0x00001fe0",
731b8021494Sopenharmony_ci                                "RdIsRn_al_r8_r8_0x00001fe0",
732b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
733b8021494Sopenharmony_ci                                kRdIsRn},
734b8021494Sopenharmony_ci                               {{al, r4, r4, 0x00ff0000},
735b8021494Sopenharmony_ci                                "al r4 r4 0x00ff0000",
736b8021494Sopenharmony_ci                                "RdIsRn_al_r4_r4_0x00ff0000",
737b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
738b8021494Sopenharmony_ci                                kRdIsRn},
739b8021494Sopenharmony_ci                               {{al, r8, r8, 0x0007f800},
740b8021494Sopenharmony_ci                                "al r8 r8 0x0007f800",
741b8021494Sopenharmony_ci                                "RdIsRn_al_r8_r8_0x0007f800",
742b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
743b8021494Sopenharmony_ci                                kRdIsRn},
744b8021494Sopenharmony_ci                               {{al, r6, r6, 0x00005580},
745b8021494Sopenharmony_ci                                "al r6 r6 0x00005580",
746b8021494Sopenharmony_ci                                "RdIsRn_al_r6_r6_0x00005580",
747b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
748b8021494Sopenharmony_ci                                kRdIsRn},
749b8021494Sopenharmony_ci                               {{al, r5, r8, 0x0000ab00},
750b8021494Sopenharmony_ci                                "al r5 r8 0x0000ab00",
751b8021494Sopenharmony_ci                                "RdIsNotRn_al_r5_r8_0x0000ab00",
752b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
753b8021494Sopenharmony_ci                                kRdIsNotRn},
754b8021494Sopenharmony_ci                               {{al, r0, r4, 0x00005580},
755b8021494Sopenharmony_ci                                "al r0 r4 0x00005580",
756b8021494Sopenharmony_ci                                "RdIsNotRn_al_r0_r4_0x00005580",
757b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
758b8021494Sopenharmony_ci                                kRdIsNotRn},
759b8021494Sopenharmony_ci                               {{al, r9, r5, 0x0002ac00},
760b8021494Sopenharmony_ci                                "al r9 r5 0x0002ac00",
761b8021494Sopenharmony_ci                                "RdIsNotRn_al_r9_r5_0x0002ac00",
762b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
763b8021494Sopenharmony_ci                                kRdIsNotRn},
764b8021494Sopenharmony_ci                               {{al, r5, r14, 0x000002ac},
765b8021494Sopenharmony_ci                                "al r5 r14 0x000002ac",
766b8021494Sopenharmony_ci                                "RdIsNotRn_al_r5_r14_0x000002ac",
767b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
768b8021494Sopenharmony_ci                                kRdIsNotRn},
769b8021494Sopenharmony_ci                               {{al, r10, r7, 0x0002ac00},
770b8021494Sopenharmony_ci                                "al r10 r7 0x0002ac00",
771b8021494Sopenharmony_ci                                "RdIsNotRn_al_r10_r7_0x0002ac00",
772b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
773b8021494Sopenharmony_ci                                kRdIsNotRn},
774b8021494Sopenharmony_ci                               {{al, r3, r5, 0x00ff00ff},
775b8021494Sopenharmony_ci                                "al r3 r5 0x00ff00ff",
776b8021494Sopenharmony_ci                                "RdIsNotRn_al_r3_r5_0x00ff00ff",
777b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
778b8021494Sopenharmony_ci                                kRdIsNotRn},
779b8021494Sopenharmony_ci                               {{al, r1, r3, 0x02ac0000},
780b8021494Sopenharmony_ci                                "al r1 r3 0x02ac0000",
781b8021494Sopenharmony_ci                                "RdIsNotRn_al_r1_r3_0x02ac0000",
782b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
783b8021494Sopenharmony_ci                                kRdIsNotRn},
784b8021494Sopenharmony_ci                               {{al, r1, r10, 0x00558000},
785b8021494Sopenharmony_ci                                "al r1 r10 0x00558000",
786b8021494Sopenharmony_ci                                "RdIsNotRn_al_r1_r10_0x00558000",
787b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
788b8021494Sopenharmony_ci                                kRdIsNotRn},
789b8021494Sopenharmony_ci                               {{al, r14, r9, 0x01560000},
790b8021494Sopenharmony_ci                                "al r14 r9 0x01560000",
791b8021494Sopenharmony_ci                                "RdIsNotRn_al_r14_r9_0x01560000",
792b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
793b8021494Sopenharmony_ci                                kRdIsNotRn},
794b8021494Sopenharmony_ci                               {{al, r8, r0, 0x00002ac0},
795b8021494Sopenharmony_ci                                "al r8 r0 0x00002ac0",
796b8021494Sopenharmony_ci                                "RdIsNotRn_al_r8_r0_0x00002ac0",
797b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
798b8021494Sopenharmony_ci                                kRdIsNotRn},
799b8021494Sopenharmony_ci                               {{al, r0, r0, 0x000001fe},
800b8021494Sopenharmony_ci                                "al r0 r0 0x000001fe",
801b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x000001fe",
802b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
803b8021494Sopenharmony_ci                                kModifiedImmediate},
804b8021494Sopenharmony_ci                               {{al, r0, r0, 0x000003fc},
805b8021494Sopenharmony_ci                                "al r0 r0 0x000003fc",
806b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x000003fc",
807b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
808b8021494Sopenharmony_ci                                kModifiedImmediate},
809b8021494Sopenharmony_ci                               {{al, r0, r0, 0x000007f8},
810b8021494Sopenharmony_ci                                "al r0 r0 0x000007f8",
811b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x000007f8",
812b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
813b8021494Sopenharmony_ci                                kModifiedImmediate},
814b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00000ff0},
815b8021494Sopenharmony_ci                                "al r0 r0 0x00000ff0",
816b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00000ff0",
817b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
818b8021494Sopenharmony_ci                                kModifiedImmediate},
819b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00001fe0},
820b8021494Sopenharmony_ci                                "al r0 r0 0x00001fe0",
821b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00001fe0",
822b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
823b8021494Sopenharmony_ci                                kModifiedImmediate},
824b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00003fc0},
825b8021494Sopenharmony_ci                                "al r0 r0 0x00003fc0",
826b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00003fc0",
827b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
828b8021494Sopenharmony_ci                                kModifiedImmediate},
829b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00007f80},
830b8021494Sopenharmony_ci                                "al r0 r0 0x00007f80",
831b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00007f80",
832b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
833b8021494Sopenharmony_ci                                kModifiedImmediate},
834b8021494Sopenharmony_ci                               {{al, r0, r0, 0x0000ff00},
835b8021494Sopenharmony_ci                                "al r0 r0 0x0000ff00",
836b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x0000ff00",
837b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
838b8021494Sopenharmony_ci                                kModifiedImmediate},
839b8021494Sopenharmony_ci                               {{al, r0, r0, 0x0001fe00},
840b8021494Sopenharmony_ci                                "al r0 r0 0x0001fe00",
841b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x0001fe00",
842b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
843b8021494Sopenharmony_ci                                kModifiedImmediate},
844b8021494Sopenharmony_ci                               {{al, r0, r0, 0x0003fc00},
845b8021494Sopenharmony_ci                                "al r0 r0 0x0003fc00",
846b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x0003fc00",
847b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
848b8021494Sopenharmony_ci                                kModifiedImmediate},
849b8021494Sopenharmony_ci                               {{al, r0, r0, 0x0007f800},
850b8021494Sopenharmony_ci                                "al r0 r0 0x0007f800",
851b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x0007f800",
852b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
853b8021494Sopenharmony_ci                                kModifiedImmediate},
854b8021494Sopenharmony_ci                               {{al, r0, r0, 0x000ff000},
855b8021494Sopenharmony_ci                                "al r0 r0 0x000ff000",
856b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x000ff000",
857b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
858b8021494Sopenharmony_ci                                kModifiedImmediate},
859b8021494Sopenharmony_ci                               {{al, r0, r0, 0x001fe000},
860b8021494Sopenharmony_ci                                "al r0 r0 0x001fe000",
861b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x001fe000",
862b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
863b8021494Sopenharmony_ci                                kModifiedImmediate},
864b8021494Sopenharmony_ci                               {{al, r0, r0, 0x003fc000},
865b8021494Sopenharmony_ci                                "al r0 r0 0x003fc000",
866b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x003fc000",
867b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
868b8021494Sopenharmony_ci                                kModifiedImmediate},
869b8021494Sopenharmony_ci                               {{al, r0, r0, 0x007f8000},
870b8021494Sopenharmony_ci                                "al r0 r0 0x007f8000",
871b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x007f8000",
872b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
873b8021494Sopenharmony_ci                                kModifiedImmediate},
874b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00ff0000},
875b8021494Sopenharmony_ci                                "al r0 r0 0x00ff0000",
876b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00ff0000",
877b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
878b8021494Sopenharmony_ci                                kModifiedImmediate},
879b8021494Sopenharmony_ci                               {{al, r0, r0, 0x01fe0000},
880b8021494Sopenharmony_ci                                "al r0 r0 0x01fe0000",
881b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x01fe0000",
882b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
883b8021494Sopenharmony_ci                                kModifiedImmediate},
884b8021494Sopenharmony_ci                               {{al, r0, r0, 0x03fc0000},
885b8021494Sopenharmony_ci                                "al r0 r0 0x03fc0000",
886b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x03fc0000",
887b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
888b8021494Sopenharmony_ci                                kModifiedImmediate},
889b8021494Sopenharmony_ci                               {{al, r0, r0, 0x07f80000},
890b8021494Sopenharmony_ci                                "al r0 r0 0x07f80000",
891b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x07f80000",
892b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
893b8021494Sopenharmony_ci                                kModifiedImmediate},
894b8021494Sopenharmony_ci                               {{al, r0, r0, 0x0ff00000},
895b8021494Sopenharmony_ci                                "al r0 r0 0x0ff00000",
896b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x0ff00000",
897b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
898b8021494Sopenharmony_ci                                kModifiedImmediate},
899b8021494Sopenharmony_ci                               {{al, r0, r0, 0x1fe00000},
900b8021494Sopenharmony_ci                                "al r0 r0 0x1fe00000",
901b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x1fe00000",
902b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
903b8021494Sopenharmony_ci                                kModifiedImmediate},
904b8021494Sopenharmony_ci                               {{al, r0, r0, 0x3fc00000},
905b8021494Sopenharmony_ci                                "al r0 r0 0x3fc00000",
906b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x3fc00000",
907b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
908b8021494Sopenharmony_ci                                kModifiedImmediate},
909b8021494Sopenharmony_ci                               {{al, r0, r0, 0x7f800000},
910b8021494Sopenharmony_ci                                "al r0 r0 0x7f800000",
911b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x7f800000",
912b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
913b8021494Sopenharmony_ci                                kModifiedImmediate},
914b8021494Sopenharmony_ci                               {{al, r0, r0, 0xff000000},
915b8021494Sopenharmony_ci                                "al r0 r0 0xff000000",
916b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0xff000000",
917b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
918b8021494Sopenharmony_ci                                kModifiedImmediate},
919b8021494Sopenharmony_ci                               {{al, r0, r0, 0x000000ff},
920b8021494Sopenharmony_ci                                "al r0 r0 0x000000ff",
921b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x000000ff",
922b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
923b8021494Sopenharmony_ci                                kModifiedImmediate},
924b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00ff00ff},
925b8021494Sopenharmony_ci                                "al r0 r0 0x00ff00ff",
926b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00ff00ff",
927b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
928b8021494Sopenharmony_ci                                kModifiedImmediate},
929b8021494Sopenharmony_ci                               {{al, r0, r0, 0xff00ff00},
930b8021494Sopenharmony_ci                                "al r0 r0 0xff00ff00",
931b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0xff00ff00",
932b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
933b8021494Sopenharmony_ci                                kModifiedImmediate},
934b8021494Sopenharmony_ci                               {{al, r0, r0, 0xffffffff},
935b8021494Sopenharmony_ci                                "al r0 r0 0xffffffff",
936b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0xffffffff",
937b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
938b8021494Sopenharmony_ci                                kModifiedImmediate},
939b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00000156},
940b8021494Sopenharmony_ci                                "al r0 r0 0x00000156",
941b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00000156",
942b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
943b8021494Sopenharmony_ci                                kModifiedImmediate},
944b8021494Sopenharmony_ci                               {{al, r0, r0, 0x000002ac},
945b8021494Sopenharmony_ci                                "al r0 r0 0x000002ac",
946b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x000002ac",
947b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
948b8021494Sopenharmony_ci                                kModifiedImmediate},
949b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00000558},
950b8021494Sopenharmony_ci                                "al r0 r0 0x00000558",
951b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00000558",
952b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
953b8021494Sopenharmony_ci                                kModifiedImmediate},
954b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00000ab0},
955b8021494Sopenharmony_ci                                "al r0 r0 0x00000ab0",
956b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00000ab0",
957b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
958b8021494Sopenharmony_ci                                kModifiedImmediate},
959b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00001560},
960b8021494Sopenharmony_ci                                "al r0 r0 0x00001560",
961b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00001560",
962b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
963b8021494Sopenharmony_ci                                kModifiedImmediate},
964b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00002ac0},
965b8021494Sopenharmony_ci                                "al r0 r0 0x00002ac0",
966b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00002ac0",
967b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
968b8021494Sopenharmony_ci                                kModifiedImmediate},
969b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00005580},
970b8021494Sopenharmony_ci                                "al r0 r0 0x00005580",
971b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00005580",
972b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
973b8021494Sopenharmony_ci                                kModifiedImmediate},
974b8021494Sopenharmony_ci                               {{al, r0, r0, 0x0000ab00},
975b8021494Sopenharmony_ci                                "al r0 r0 0x0000ab00",
976b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x0000ab00",
977b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
978b8021494Sopenharmony_ci                                kModifiedImmediate},
979b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00015600},
980b8021494Sopenharmony_ci                                "al r0 r0 0x00015600",
981b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00015600",
982b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
983b8021494Sopenharmony_ci                                kModifiedImmediate},
984b8021494Sopenharmony_ci                               {{al, r0, r0, 0x0002ac00},
985b8021494Sopenharmony_ci                                "al r0 r0 0x0002ac00",
986b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x0002ac00",
987b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
988b8021494Sopenharmony_ci                                kModifiedImmediate},
989b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00055800},
990b8021494Sopenharmony_ci                                "al r0 r0 0x00055800",
991b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00055800",
992b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
993b8021494Sopenharmony_ci                                kModifiedImmediate},
994b8021494Sopenharmony_ci                               {{al, r0, r0, 0x000ab000},
995b8021494Sopenharmony_ci                                "al r0 r0 0x000ab000",
996b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x000ab000",
997b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
998b8021494Sopenharmony_ci                                kModifiedImmediate},
999b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00156000},
1000b8021494Sopenharmony_ci                                "al r0 r0 0x00156000",
1001b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00156000",
1002b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1003b8021494Sopenharmony_ci                                kModifiedImmediate},
1004b8021494Sopenharmony_ci                               {{al, r0, r0, 0x002ac000},
1005b8021494Sopenharmony_ci                                "al r0 r0 0x002ac000",
1006b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x002ac000",
1007b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1008b8021494Sopenharmony_ci                                kModifiedImmediate},
1009b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00558000},
1010b8021494Sopenharmony_ci                                "al r0 r0 0x00558000",
1011b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00558000",
1012b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1013b8021494Sopenharmony_ci                                kModifiedImmediate},
1014b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00ab0000},
1015b8021494Sopenharmony_ci                                "al r0 r0 0x00ab0000",
1016b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00ab0000",
1017b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1018b8021494Sopenharmony_ci                                kModifiedImmediate},
1019b8021494Sopenharmony_ci                               {{al, r0, r0, 0x01560000},
1020b8021494Sopenharmony_ci                                "al r0 r0 0x01560000",
1021b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x01560000",
1022b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1023b8021494Sopenharmony_ci                                kModifiedImmediate},
1024b8021494Sopenharmony_ci                               {{al, r0, r0, 0x02ac0000},
1025b8021494Sopenharmony_ci                                "al r0 r0 0x02ac0000",
1026b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x02ac0000",
1027b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1028b8021494Sopenharmony_ci                                kModifiedImmediate},
1029b8021494Sopenharmony_ci                               {{al, r0, r0, 0x05580000},
1030b8021494Sopenharmony_ci                                "al r0 r0 0x05580000",
1031b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x05580000",
1032b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1033b8021494Sopenharmony_ci                                kModifiedImmediate},
1034b8021494Sopenharmony_ci                               {{al, r0, r0, 0x0ab00000},
1035b8021494Sopenharmony_ci                                "al r0 r0 0x0ab00000",
1036b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x0ab00000",
1037b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1038b8021494Sopenharmony_ci                                kModifiedImmediate},
1039b8021494Sopenharmony_ci                               {{al, r0, r0, 0x15600000},
1040b8021494Sopenharmony_ci                                "al r0 r0 0x15600000",
1041b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x15600000",
1042b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1043b8021494Sopenharmony_ci                                kModifiedImmediate},
1044b8021494Sopenharmony_ci                               {{al, r0, r0, 0x2ac00000},
1045b8021494Sopenharmony_ci                                "al r0 r0 0x2ac00000",
1046b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x2ac00000",
1047b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1048b8021494Sopenharmony_ci                                kModifiedImmediate},
1049b8021494Sopenharmony_ci                               {{al, r0, r0, 0x55800000},
1050b8021494Sopenharmony_ci                                "al r0 r0 0x55800000",
1051b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x55800000",
1052b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1053b8021494Sopenharmony_ci                                kModifiedImmediate},
1054b8021494Sopenharmony_ci                               {{al, r0, r0, 0xab000000},
1055b8021494Sopenharmony_ci                                "al r0 r0 0xab000000",
1056b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0xab000000",
1057b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1058b8021494Sopenharmony_ci                                kModifiedImmediate},
1059b8021494Sopenharmony_ci                               {{al, r0, r0, 0x000000ab},
1060b8021494Sopenharmony_ci                                "al r0 r0 0x000000ab",
1061b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x000000ab",
1062b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1063b8021494Sopenharmony_ci                                kModifiedImmediate},
1064b8021494Sopenharmony_ci                               {{al, r0, r0, 0x00ab00ab},
1065b8021494Sopenharmony_ci                                "al r0 r0 0x00ab00ab",
1066b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0x00ab00ab",
1067b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1068b8021494Sopenharmony_ci                                kModifiedImmediate},
1069b8021494Sopenharmony_ci                               {{al, r0, r0, 0xab00ab00},
1070b8021494Sopenharmony_ci                                "al r0 r0 0xab00ab00",
1071b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0xab00ab00",
1072b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1073b8021494Sopenharmony_ci                                kModifiedImmediate},
1074b8021494Sopenharmony_ci                               {{al, r0, r0, 0xabababab},
1075b8021494Sopenharmony_ci                                "al r0 r0 0xabababab",
1076b8021494Sopenharmony_ci                                "ModifiedImmediate_al_r0_r0_0xabababab",
1077b8021494Sopenharmony_ci                                ARRAY_SIZE(kModifiedImmediate),
1078b8021494Sopenharmony_ci                                kModifiedImmediate}};
1079b8021494Sopenharmony_ci
1080b8021494Sopenharmony_ci// We record all inputs to the instructions as outputs. This way, we also check
1081b8021494Sopenharmony_ci// that what shouldn't change didn't change.
1082b8021494Sopenharmony_cistruct TestResult {
1083b8021494Sopenharmony_ci  size_t output_size;
1084b8021494Sopenharmony_ci  const Inputs* outputs;
1085b8021494Sopenharmony_ci};
1086b8021494Sopenharmony_ci
1087b8021494Sopenharmony_ci// These headers each contain an array of `TestResult` with the reference output
1088b8021494Sopenharmony_ci// values. The reference arrays are names `kReference{mnemonic}`.
1089b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-adc-t32.h"
1090b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-adcs-t32.h"
1091b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-add-t32.h"
1092b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-adds-t32.h"
1093b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-and-t32.h"
1094b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-ands-t32.h"
1095b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-bic-t32.h"
1096b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-bics-t32.h"
1097b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-eor-t32.h"
1098b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-eors-t32.h"
1099b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-orn-t32.h"
1100b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-orns-t32.h"
1101b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-orr-t32.h"
1102b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-orrs-t32.h"
1103b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-rsb-t32.h"
1104b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-rsbs-t32.h"
1105b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-sbc-t32.h"
1106b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-sbcs-t32.h"
1107b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-sub-t32.h"
1108b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-const-subs-t32.h"
1109b8021494Sopenharmony_ci
1110b8021494Sopenharmony_ci
1111b8021494Sopenharmony_ci// The maximum number of errors to report in detail for each test.
1112b8021494Sopenharmony_ciconst unsigned kErrorReportLimit = 8;
1113b8021494Sopenharmony_ci
1114b8021494Sopenharmony_citypedef void (MacroAssembler::*Fn)(Condition cond,
1115b8021494Sopenharmony_ci                                   Register rd,
1116b8021494Sopenharmony_ci                                   Register rn,
1117b8021494Sopenharmony_ci                                   const Operand& op);
1118b8021494Sopenharmony_ci
1119b8021494Sopenharmony_civoid TestHelper(Fn instruction,
1120b8021494Sopenharmony_ci                const char* mnemonic,
1121b8021494Sopenharmony_ci                const TestResult reference[]) {
1122b8021494Sopenharmony_ci  SETUP();
1123b8021494Sopenharmony_ci  masm.UseT32();
1124b8021494Sopenharmony_ci  START();
1125b8021494Sopenharmony_ci
1126b8021494Sopenharmony_ci  // Data to compare to `reference`.
1127b8021494Sopenharmony_ci  TestResult* results[ARRAY_SIZE(kTests)];
1128b8021494Sopenharmony_ci
1129b8021494Sopenharmony_ci  // Test cases for memory bound instructions may allocate a buffer and save its
1130b8021494Sopenharmony_ci  // address in this array.
1131b8021494Sopenharmony_ci  byte* scratch_memory_buffers[ARRAY_SIZE(kTests)];
1132b8021494Sopenharmony_ci
1133b8021494Sopenharmony_ci  // Generate a loop for each element in `kTests`. Each loop tests one specific
1134b8021494Sopenharmony_ci  // instruction.
1135b8021494Sopenharmony_ci  for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) {
1136b8021494Sopenharmony_ci    // Allocate results on the heap for this test.
1137b8021494Sopenharmony_ci    results[i] = new TestResult;
1138b8021494Sopenharmony_ci    results[i]->outputs = new Inputs[kTests[i].input_size];
1139b8021494Sopenharmony_ci    results[i]->output_size = kTests[i].input_size;
1140b8021494Sopenharmony_ci
1141b8021494Sopenharmony_ci    size_t input_stride = sizeof(kTests[i].inputs[0]) * kTests[i].input_size;
1142b8021494Sopenharmony_ci    VIXL_ASSERT(IsUint32(input_stride));
1143b8021494Sopenharmony_ci
1144b8021494Sopenharmony_ci    scratch_memory_buffers[i] = NULL;
1145b8021494Sopenharmony_ci
1146b8021494Sopenharmony_ci    Label loop;
1147b8021494Sopenharmony_ci    UseScratchRegisterScope scratch_registers(&masm);
1148b8021494Sopenharmony_ci    // Include all registers from r0 ro r12.
1149b8021494Sopenharmony_ci    scratch_registers.Include(RegisterList(0x1fff));
1150b8021494Sopenharmony_ci
1151b8021494Sopenharmony_ci    // Values to pass to the macro-assembler.
1152b8021494Sopenharmony_ci    Condition cond = kTests[i].operands.cond;
1153b8021494Sopenharmony_ci    Register rd = kTests[i].operands.rd;
1154b8021494Sopenharmony_ci    Register rn = kTests[i].operands.rn;
1155b8021494Sopenharmony_ci    uint32_t immediate = kTests[i].operands.immediate;
1156b8021494Sopenharmony_ci    Operand op(immediate);
1157b8021494Sopenharmony_ci    scratch_registers.Exclude(rd);
1158b8021494Sopenharmony_ci    scratch_registers.Exclude(rn);
1159b8021494Sopenharmony_ci
1160b8021494Sopenharmony_ci    // Allocate reserved registers for our own use.
1161b8021494Sopenharmony_ci    Register input_ptr = scratch_registers.Acquire();
1162b8021494Sopenharmony_ci    Register input_end = scratch_registers.Acquire();
1163b8021494Sopenharmony_ci    Register result_ptr = scratch_registers.Acquire();
1164b8021494Sopenharmony_ci
1165b8021494Sopenharmony_ci    // Initialize `input_ptr` to the first element and `input_end` the address
1166b8021494Sopenharmony_ci    // after the array.
1167b8021494Sopenharmony_ci    __ Mov(input_ptr, Operand::From(kTests[i].inputs));
1168b8021494Sopenharmony_ci    __ Add(input_end, input_ptr, static_cast<uint32_t>(input_stride));
1169b8021494Sopenharmony_ci    __ Mov(result_ptr, Operand::From(results[i]->outputs));
1170b8021494Sopenharmony_ci    __ Bind(&loop);
1171b8021494Sopenharmony_ci
1172b8021494Sopenharmony_ci    {
1173b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1174b8021494Sopenharmony_ci      Register nzcv_bits = temp_registers.Acquire();
1175b8021494Sopenharmony_ci      Register saved_q_bit = temp_registers.Acquire();
1176b8021494Sopenharmony_ci      // Save the `Q` bit flag.
1177b8021494Sopenharmony_ci      __ Mrs(saved_q_bit, APSR);
1178b8021494Sopenharmony_ci      __ And(saved_q_bit, saved_q_bit, QFlag);
1179b8021494Sopenharmony_ci      // Set the `NZCV` and `Q` flags together.
1180b8021494Sopenharmony_ci      __ Ldr(nzcv_bits, MemOperand(input_ptr, offsetof(Inputs, apsr)));
1181b8021494Sopenharmony_ci      __ Orr(nzcv_bits, nzcv_bits, saved_q_bit);
1182b8021494Sopenharmony_ci      __ Msr(APSR_nzcvq, nzcv_bits);
1183b8021494Sopenharmony_ci    }
1184b8021494Sopenharmony_ci    __ Ldr(rd, MemOperand(input_ptr, offsetof(Inputs, rd)));
1185b8021494Sopenharmony_ci    __ Ldr(rn, MemOperand(input_ptr, offsetof(Inputs, rn)));
1186b8021494Sopenharmony_ci
1187b8021494Sopenharmony_ci    (masm.*instruction)(cond, rd, rn, op);
1188b8021494Sopenharmony_ci
1189b8021494Sopenharmony_ci    {
1190b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1191b8021494Sopenharmony_ci      Register nzcv_bits = temp_registers.Acquire();
1192b8021494Sopenharmony_ci      __ Mrs(nzcv_bits, APSR);
1193b8021494Sopenharmony_ci      // Only record the NZCV bits.
1194b8021494Sopenharmony_ci      __ And(nzcv_bits, nzcv_bits, NZCVFlag);
1195b8021494Sopenharmony_ci      __ Str(nzcv_bits, MemOperand(result_ptr, offsetof(Inputs, apsr)));
1196b8021494Sopenharmony_ci    }
1197b8021494Sopenharmony_ci    __ Str(rd, MemOperand(result_ptr, offsetof(Inputs, rd)));
1198b8021494Sopenharmony_ci    __ Str(rn, MemOperand(result_ptr, offsetof(Inputs, rn)));
1199b8021494Sopenharmony_ci
1200b8021494Sopenharmony_ci    // Advance the result pointer.
1201b8021494Sopenharmony_ci    __ Add(result_ptr, result_ptr, Operand::From(sizeof(kTests[i].inputs[0])));
1202b8021494Sopenharmony_ci    // Loop back until `input_ptr` is lower than `input_base`.
1203b8021494Sopenharmony_ci    __ Add(input_ptr, input_ptr, Operand::From(sizeof(kTests[i].inputs[0])));
1204b8021494Sopenharmony_ci    __ Cmp(input_ptr, input_end);
1205b8021494Sopenharmony_ci    __ B(ne, &loop);
1206b8021494Sopenharmony_ci  }
1207b8021494Sopenharmony_ci
1208b8021494Sopenharmony_ci  END();
1209b8021494Sopenharmony_ci
1210b8021494Sopenharmony_ci  RUN();
1211b8021494Sopenharmony_ci
1212b8021494Sopenharmony_ci  if (Test::generate_test_trace()) {
1213b8021494Sopenharmony_ci    // Print the results.
1214b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1215b8021494Sopenharmony_ci      printf("const Inputs kOutputs_%s_%s[] = {\n",
1216b8021494Sopenharmony_ci             mnemonic,
1217b8021494Sopenharmony_ci             kTests[i].identifier);
1218b8021494Sopenharmony_ci      for (size_t j = 0; j < results[i]->output_size; j++) {
1219b8021494Sopenharmony_ci        printf("  { ");
1220b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].apsr);
1221b8021494Sopenharmony_ci        printf(", ");
1222b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].rd);
1223b8021494Sopenharmony_ci        printf(", ");
1224b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].rn);
1225b8021494Sopenharmony_ci        printf(" },\n");
1226b8021494Sopenharmony_ci      }
1227b8021494Sopenharmony_ci      printf("};\n");
1228b8021494Sopenharmony_ci    }
1229b8021494Sopenharmony_ci    printf("const TestResult kReference%s[] = {\n", mnemonic);
1230b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1231b8021494Sopenharmony_ci      printf("  {\n");
1232b8021494Sopenharmony_ci      printf("    ARRAY_SIZE(kOutputs_%s_%s),\n",
1233b8021494Sopenharmony_ci             mnemonic,
1234b8021494Sopenharmony_ci             kTests[i].identifier);
1235b8021494Sopenharmony_ci      printf("    kOutputs_%s_%s,\n", mnemonic, kTests[i].identifier);
1236b8021494Sopenharmony_ci      printf("  },\n");
1237b8021494Sopenharmony_ci    }
1238b8021494Sopenharmony_ci    printf("};\n");
1239b8021494Sopenharmony_ci  } else if (kCheckSimulatorTestResults) {
1240b8021494Sopenharmony_ci    // Check the results.
1241b8021494Sopenharmony_ci    unsigned total_error_count = 0;
1242b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1243b8021494Sopenharmony_ci      bool instruction_has_errors = false;
1244b8021494Sopenharmony_ci      for (size_t j = 0; j < kTests[i].input_size; j++) {
1245b8021494Sopenharmony_ci        uint32_t apsr = results[i]->outputs[j].apsr;
1246b8021494Sopenharmony_ci        uint32_t rd = results[i]->outputs[j].rd;
1247b8021494Sopenharmony_ci        uint32_t rn = results[i]->outputs[j].rn;
1248b8021494Sopenharmony_ci        uint32_t apsr_input = kTests[i].inputs[j].apsr;
1249b8021494Sopenharmony_ci        uint32_t rd_input = kTests[i].inputs[j].rd;
1250b8021494Sopenharmony_ci        uint32_t rn_input = kTests[i].inputs[j].rn;
1251b8021494Sopenharmony_ci        uint32_t apsr_ref = reference[i].outputs[j].apsr;
1252b8021494Sopenharmony_ci        uint32_t rd_ref = reference[i].outputs[j].rd;
1253b8021494Sopenharmony_ci        uint32_t rn_ref = reference[i].outputs[j].rn;
1254b8021494Sopenharmony_ci
1255b8021494Sopenharmony_ci        if (((apsr != apsr_ref) || (rd != rd_ref) || (rn != rn_ref)) &&
1256b8021494Sopenharmony_ci            (++total_error_count <= kErrorReportLimit)) {
1257b8021494Sopenharmony_ci          // Print the instruction once even if it triggered multiple failures.
1258b8021494Sopenharmony_ci          if (!instruction_has_errors) {
1259b8021494Sopenharmony_ci            printf("Error(s) when testing \"%s %s\":\n",
1260b8021494Sopenharmony_ci                   mnemonic,
1261b8021494Sopenharmony_ci                   kTests[i].operands_description);
1262b8021494Sopenharmony_ci            instruction_has_errors = true;
1263b8021494Sopenharmony_ci          }
1264b8021494Sopenharmony_ci          // Print subsequent errors.
1265b8021494Sopenharmony_ci          printf("  Input:    ");
1266b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr_input);
1267b8021494Sopenharmony_ci          printf(", ");
1268b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd_input);
1269b8021494Sopenharmony_ci          printf(", ");
1270b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rn_input);
1271b8021494Sopenharmony_ci          printf("\n");
1272b8021494Sopenharmony_ci          printf("  Expected: ");
1273b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr_ref);
1274b8021494Sopenharmony_ci          printf(", ");
1275b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd_ref);
1276b8021494Sopenharmony_ci          printf(", ");
1277b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rn_ref);
1278b8021494Sopenharmony_ci          printf("\n");
1279b8021494Sopenharmony_ci          printf("  Found:    ");
1280b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr);
1281b8021494Sopenharmony_ci          printf(", ");
1282b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd);
1283b8021494Sopenharmony_ci          printf(", ");
1284b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rn);
1285b8021494Sopenharmony_ci          printf("\n\n");
1286b8021494Sopenharmony_ci        }
1287b8021494Sopenharmony_ci      }
1288b8021494Sopenharmony_ci    }
1289b8021494Sopenharmony_ci
1290b8021494Sopenharmony_ci    if (total_error_count > kErrorReportLimit) {
1291b8021494Sopenharmony_ci      printf("%u other errors follow.\n",
1292b8021494Sopenharmony_ci             total_error_count - kErrorReportLimit);
1293b8021494Sopenharmony_ci    }
1294b8021494Sopenharmony_ci    VIXL_CHECK(total_error_count == 0);
1295b8021494Sopenharmony_ci  } else {
1296b8021494Sopenharmony_ci    VIXL_WARNING("Assembled the code, but did not run anything.\n");
1297b8021494Sopenharmony_ci  }
1298b8021494Sopenharmony_ci
1299b8021494Sopenharmony_ci  for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1300b8021494Sopenharmony_ci    delete[] results[i]->outputs;
1301b8021494Sopenharmony_ci    delete results[i];
1302b8021494Sopenharmony_ci    delete[] scratch_memory_buffers[i];
1303b8021494Sopenharmony_ci  }
1304b8021494Sopenharmony_ci}
1305b8021494Sopenharmony_ci
1306b8021494Sopenharmony_ci// Instantiate tests for each instruction in the list.
1307b8021494Sopenharmony_ci// TODO: Remove this limitation by having a sandboxing mechanism.
1308b8021494Sopenharmony_ci#if defined(VIXL_HOST_POINTER_32)
1309b8021494Sopenharmony_ci#define TEST(mnemonic)                                                         \
1310b8021494Sopenharmony_ci  void Test_##mnemonic() {                                                     \
1311b8021494Sopenharmony_ci    TestHelper(&MacroAssembler::mnemonic, #mnemonic, kReference##mnemonic);    \
1312b8021494Sopenharmony_ci  }                                                                            \
1313b8021494Sopenharmony_ci  Test test_##mnemonic("AARCH32_SIMULATOR_COND_RD_RN_OPERAND_CONST_" #mnemonic \
1314b8021494Sopenharmony_ci                       "_T32",                                                 \
1315b8021494Sopenharmony_ci                       &Test_##mnemonic);
1316b8021494Sopenharmony_ci#else
1317b8021494Sopenharmony_ci#define TEST(mnemonic)                                                         \
1318b8021494Sopenharmony_ci  void Test_##mnemonic() {                                                     \
1319b8021494Sopenharmony_ci    VIXL_WARNING("This test can only run on a 32-bit host.\n");                \
1320b8021494Sopenharmony_ci    USE(TestHelper);                                                           \
1321b8021494Sopenharmony_ci  }                                                                            \
1322b8021494Sopenharmony_ci  Test test_##mnemonic("AARCH32_SIMULATOR_COND_RD_RN_OPERAND_CONST_" #mnemonic \
1323b8021494Sopenharmony_ci                       "_T32",                                                 \
1324b8021494Sopenharmony_ci                       &Test_##mnemonic);
1325b8021494Sopenharmony_ci#endif
1326b8021494Sopenharmony_ci
1327b8021494Sopenharmony_ciFOREACH_INSTRUCTION(TEST)
1328b8021494Sopenharmony_ci#undef TEST
1329b8021494Sopenharmony_ci
1330b8021494Sopenharmony_ci}  // namespace
1331b8021494Sopenharmony_ci#endif
1332b8021494Sopenharmony_ci
1333b8021494Sopenharmony_ci}  // namespace aarch32
1334b8021494Sopenharmony_ci}  // namespace vixl
1335