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(Mul)                       \
117b8021494Sopenharmony_ci  M(Qadd16)                    \
118b8021494Sopenharmony_ci  M(Qadd8)                     \
119b8021494Sopenharmony_ci  M(Qasx)                      \
120b8021494Sopenharmony_ci  M(Qsax)                      \
121b8021494Sopenharmony_ci  M(Qsub16)                    \
122b8021494Sopenharmony_ci  M(Qsub8)                     \
123b8021494Sopenharmony_ci  M(Sdiv)                      \
124b8021494Sopenharmony_ci  M(Shadd16)                   \
125b8021494Sopenharmony_ci  M(Shadd8)                    \
126b8021494Sopenharmony_ci  M(Shasx)                     \
127b8021494Sopenharmony_ci  M(Shsax)                     \
128b8021494Sopenharmony_ci  M(Shsub16)                   \
129b8021494Sopenharmony_ci  M(Shsub8)                    \
130b8021494Sopenharmony_ci  M(Smmul)                     \
131b8021494Sopenharmony_ci  M(Smmulr)                    \
132b8021494Sopenharmony_ci  M(Smuad)                     \
133b8021494Sopenharmony_ci  M(Smuadx)                    \
134b8021494Sopenharmony_ci  M(Smulbb)                    \
135b8021494Sopenharmony_ci  M(Smulbt)                    \
136b8021494Sopenharmony_ci  M(Smultb)                    \
137b8021494Sopenharmony_ci  M(Smultt)                    \
138b8021494Sopenharmony_ci  M(Smulwb)                    \
139b8021494Sopenharmony_ci  M(Smulwt)                    \
140b8021494Sopenharmony_ci  M(Smusd)                     \
141b8021494Sopenharmony_ci  M(Smusdx)                    \
142b8021494Sopenharmony_ci  M(Udiv)                      \
143b8021494Sopenharmony_ci  M(Uhadd16)                   \
144b8021494Sopenharmony_ci  M(Uhadd8)                    \
145b8021494Sopenharmony_ci  M(Uhasx)                     \
146b8021494Sopenharmony_ci  M(Uhsax)                     \
147b8021494Sopenharmony_ci  M(Uhsub16)                   \
148b8021494Sopenharmony_ci  M(Uhsub8)                    \
149b8021494Sopenharmony_ci  M(Uqadd16)                   \
150b8021494Sopenharmony_ci  M(Uqadd8)                    \
151b8021494Sopenharmony_ci  M(Uqasx)                     \
152b8021494Sopenharmony_ci  M(Uqsax)                     \
153b8021494Sopenharmony_ci  M(Uqsub16)                   \
154b8021494Sopenharmony_ci  M(Uqsub8)                    \
155b8021494Sopenharmony_ci  M(Usad8)                     \
156b8021494Sopenharmony_ci  M(Sadd16)                    \
157b8021494Sopenharmony_ci  M(Sadd8)                     \
158b8021494Sopenharmony_ci  M(Sasx)                      \
159b8021494Sopenharmony_ci  M(Sel)                       \
160b8021494Sopenharmony_ci  M(Ssax)                      \
161b8021494Sopenharmony_ci  M(Ssub16)                    \
162b8021494Sopenharmony_ci  M(Ssub8)                     \
163b8021494Sopenharmony_ci  M(Uadd16)                    \
164b8021494Sopenharmony_ci  M(Uadd8)                     \
165b8021494Sopenharmony_ci  M(Uasx)                      \
166b8021494Sopenharmony_ci  M(Usax)                      \
167b8021494Sopenharmony_ci  M(Usub16)                    \
168b8021494Sopenharmony_ci  M(Usub8)                     \
169b8021494Sopenharmony_ci  M(Qadd)                      \
170b8021494Sopenharmony_ci  M(Qdadd)                     \
171b8021494Sopenharmony_ci  M(Qdsub)                     \
172b8021494Sopenharmony_ci  M(Qsub)
173b8021494Sopenharmony_ci
174b8021494Sopenharmony_ci
175b8021494Sopenharmony_ci// The following definitions are defined again in each generated test, therefore
176b8021494Sopenharmony_ci// we need to place them in an anonymous namespace. It expresses that they are
177b8021494Sopenharmony_ci// local to this file only, and the compiler is not allowed to share these types
178b8021494Sopenharmony_ci// across test files during template instantiation. Specifically, `Operands` and
179b8021494Sopenharmony_ci// `Inputs` have various layouts across generated tests so they absolutely
180b8021494Sopenharmony_ci// cannot be shared.
181b8021494Sopenharmony_ci
182b8021494Sopenharmony_ci#ifdef VIXL_INCLUDE_TARGET_T32
183b8021494Sopenharmony_cinamespace {
184b8021494Sopenharmony_ci
185b8021494Sopenharmony_ci// Values to be passed to the assembler to produce the instruction under test.
186b8021494Sopenharmony_cistruct Operands {
187b8021494Sopenharmony_ci  Condition cond;
188b8021494Sopenharmony_ci  Register rd;
189b8021494Sopenharmony_ci  Register rn;
190b8021494Sopenharmony_ci  Register rm;
191b8021494Sopenharmony_ci};
192b8021494Sopenharmony_ci
193b8021494Sopenharmony_ci// Input data to feed to the instruction.
194b8021494Sopenharmony_cistruct Inputs {
195b8021494Sopenharmony_ci  uint32_t apsr;
196b8021494Sopenharmony_ci  uint32_t qbit;
197b8021494Sopenharmony_ci  uint32_t ge;
198b8021494Sopenharmony_ci  uint32_t rd;
199b8021494Sopenharmony_ci  uint32_t rn;
200b8021494Sopenharmony_ci  uint32_t rm;
201b8021494Sopenharmony_ci};
202b8021494Sopenharmony_ci
203b8021494Sopenharmony_ci// This structure contains all input data needed to test one specific encoding.
204b8021494Sopenharmony_ci// It used to generate a loop over an instruction.
205b8021494Sopenharmony_cistruct TestLoopData {
206b8021494Sopenharmony_ci  // The `operands` fields represents the values to pass to the assembler to
207b8021494Sopenharmony_ci  // produce the instruction.
208b8021494Sopenharmony_ci  Operands operands;
209b8021494Sopenharmony_ci  // Description of the operands, used for error reporting.
210b8021494Sopenharmony_ci  const char* operands_description;
211b8021494Sopenharmony_ci  // Unique identifier, used for generating traces.
212b8021494Sopenharmony_ci  const char* identifier;
213b8021494Sopenharmony_ci  // Array of values to be fed to the instruction.
214b8021494Sopenharmony_ci  size_t input_size;
215b8021494Sopenharmony_ci  const Inputs* inputs;
216b8021494Sopenharmony_ci};
217b8021494Sopenharmony_ci
218b8021494Sopenharmony_cistatic const Inputs kCondition[] =
219b8021494Sopenharmony_ci    {{NFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
220b8021494Sopenharmony_ci     {ZFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
221b8021494Sopenharmony_ci     {CFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
222b8021494Sopenharmony_ci     {VFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
223b8021494Sopenharmony_ci     {NZFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
224b8021494Sopenharmony_ci     {NCFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
225b8021494Sopenharmony_ci     {NVFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
226b8021494Sopenharmony_ci     {ZCFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
227b8021494Sopenharmony_ci     {ZVFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
228b8021494Sopenharmony_ci     {CVFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
229b8021494Sopenharmony_ci     {NZCFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
230b8021494Sopenharmony_ci     {NZVFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
231b8021494Sopenharmony_ci     {NCVFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
232b8021494Sopenharmony_ci     {ZCVFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab},
233b8021494Sopenharmony_ci     {NZCVFlag, NoFlag, NoFlag, 0xabababab, 0xabababab, 0xabababab}};
234b8021494Sopenharmony_ci
235b8021494Sopenharmony_cistatic const Inputs kRdIsRnIsRm[] =
236b8021494Sopenharmony_ci    {{NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000000, 0x00000000},
237b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x00000001, 0x00000001},
238b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x00000002, 0x00000002},
239b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00000020, 0x00000020},
240b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x0000007d, 0x0000007d},
241b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x0000007e, 0x0000007e},
242b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x0000007f, 0x0000007f},
243b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00007ffd, 0x00007ffd},
244b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00007ffe, 0x00007ffe},
245b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007fff, 0x00007fff},
246b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x33333333, 0x33333333},
247b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x55555555, 0x55555555},
248b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x7ffffffd, 0x7ffffffd},
249b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x7ffffffe, 0x7ffffffe},
250b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x7fffffff, 0x7fffffff},
251b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0x80000000},
252b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x80000001, 0x80000001},
253b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0xaaaaaaaa},
254b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xcccccccc, 0xcccccccc},
255b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xffff8000, 0xffff8000},
256b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffff8001, 0xffff8001},
257b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xffff8002, 0xffff8002},
258b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffff8003, 0xffff8003},
259b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffffff80, 0xffffff80},
260b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xffffff81, 0xffffff81},
261b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0xffffff82},
262b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffffff83, 0xffffff83},
263b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffffffe0, 0xffffffe0},
264b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xfffffffd, 0xfffffffd},
265b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xfffffffe, 0xfffffffe},
266b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0xffffffff, 0xffffffff}};
267b8021494Sopenharmony_ci
268b8021494Sopenharmony_cistatic const Inputs kRdIsRn[] =
269b8021494Sopenharmony_ci    {{NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffff8003, 0x0000007f},
270b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x00000001, 0xffffff82},
271b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xffff8002, 0x0000007d},
272b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xfffffffe, 0x80000000},
273b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8000},
274b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00007ffd, 0xffffff82},
275b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007fff, 0x0000007d},
276b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00000020, 0xffffff82},
277b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x7ffffffe, 0x00000020},
278b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x7ffffffe, 0x0000007f},
279b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0xffffff80},
280b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x0000007d, 0xffff8000},
281b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x7ffffffe, 0x00007ffd},
282b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00000020, 0x7fffffff},
283b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0xffffffe0},
284b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x0000007d, 0x00007ffd},
285b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffffff83, 0xaaaaaaaa},
286b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffffffe0, 0xfffffffe},
287b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0x00000000},
288b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x55555555, 0x00007ffe},
289b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xffff8000, 0x33333333},
290b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x00000001, 0x00000002},
291b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00000020, 0x0000007d},
292b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0xfffffffd},
293b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffff8003, 0xffff8002},
294b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0x00007ffd},
295b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00000020, 0x00000001},
296b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x00000001, 0x0000007e},
297b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x7ffffffe, 0x0000007d},
298b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x7ffffffd, 0xffffff80},
299b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00000020, 0x80000001},
300b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffff8003, 0xffffff80},
301b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0x7fffffff},
302b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00007ffd, 0x00000000},
303b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0xffffffff},
304b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007fff, 0xffff8001},
305b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffffff80, 0x80000000},
306b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x00000001, 0xffff8000},
307b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x7ffffffd, 0xfffffffe},
308b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffff8003, 0xffff8001},
309b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007fff, 0xffffff82},
310b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0x0000007f},
311b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xfffffffe, 0x00000002},
312b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xfffffffe, 0x00000001},
313b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0x80000001},
314b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007fff, 0x80000001},
315b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0x7ffffffd},
316b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x0000007f, 0xffffff82},
317b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffffffe0, 0xffff8002},
318b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00007ffd, 0x80000000},
319b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xffff8002, 0xffff8002},
320b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x80000001, 0x55555555},
321b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xffffff81, 0x00007ffe},
322b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x00000002, 0x0000007f},
323b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0x00007ffd},
324b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00007ffe, 0xffffff83},
325b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0x00007fff},
326b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x7ffffffd, 0x80000000},
327b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffffff80, 0x00007fff},
328b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffffff80, 0xaaaaaaaa},
329b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000020},
330b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0xffff8002},
331b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x0000007f, 0x7fffffff},
332b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x33333333, 0x00007ffe},
333b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0x0000007d},
334b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xffff8000, 0xffffff80},
335b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xfffffffd, 0xffff8001},
336b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x80000001, 0x0000007e},
337b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00007ffd, 0x00000020},
338b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x7ffffffd, 0x80000001},
339b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0xffffff80},
340b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xffff8000, 0xffffff81},
341b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x33333333, 0xffffffff},
342b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0xffffffff, 0xffffff80},
343b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x55555555, 0xaaaaaaaa},
344b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000000, 0xfffffffd},
345b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00000020, 0xffffffe0},
346b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007fff, 0x00000001},
347b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x7fffffff, 0x0000007e},
348b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0xffff8003},
349b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xffffff81, 0x00000000},
350b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xfffffffd, 0xcccccccc},
351b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x7ffffffe, 0x00000002},
352b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x00000002, 0x00000001},
353b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xffff8000, 0xfffffffd},
354b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00007ffe, 0x00000000},
355b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x0000007d, 0xcccccccc},
356b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x55555555, 0x00000002},
357b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0xffffffff, 0x7ffffffd},
358b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x0000007e, 0xaaaaaaaa},
359b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000000, 0x00007ffd},
360b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xffff8002, 0xffff8001},
361b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x7ffffffe, 0x00007ffe},
362b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffffff83, 0x00007ffd},
363b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00007ffe, 0x00007ffe},
364b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x33333333, 0xfffffffd},
365b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x0000007e, 0x80000000},
366b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xcccccccc, 0x80000001},
367b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x55555555, 0x80000000},
368b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x0000007f, 0x7ffffffd},
369b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x7ffffffe, 0xcccccccc},
370b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xfffffffe, 0x0000007f},
371b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x33333333, 0x00000002},
372b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x00000001, 0xffffff83},
373b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x0000007d, 0xffffff81},
374b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xffff8000, 0xffffff82},
375b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xfffffffd, 0x00000002},
376b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0xffffffff, 0x7ffffffe},
377b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xfffffffe, 0xffffff82},
378b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffffffe0, 0x80000001},
379b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00007ffe, 0xcccccccc},
380b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xffffff81, 0xffffff83},
381b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xfffffffe, 0x0000007e},
382b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xcccccccc, 0x00000000},
383b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x80000001, 0x00007fff},
384b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0xffff8001},
385b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xfffffffe, 0xcccccccc},
386b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x7fffffff, 0x00000001},
387b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x7fffffff, 0x33333333},
388b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffff8001, 0xffff8003},
389b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffffff83, 0x00000000},
390b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000000, 0x7ffffffe},
391b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x7ffffffe, 0xaaaaaaaa},
392b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000000, 0xffff8002},
393b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x7ffffffd, 0xffff8001},
394b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x00000001, 0x80000001},
395b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xffffff81, 0xffff8001},
396b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x80000001, 0xffffffff},
397b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x7fffffff, 0x00000020},
398b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0xffffffff, 0x00000001},
399b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xffff8000, 0x00000001},
400b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x80000001, 0xffffffe0},
401b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffffff83, 0xffff8002},
402b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xffffff81, 0xfffffffd},
403b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffffff80, 0x55555555},
404b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x33333333, 0xffffff82},
405b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x7ffffffd, 0x0000007f},
406b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffff8001, 0xffff8000},
407b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x80000001, 0x7ffffffd},
408b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x0000007d, 0xfffffffe},
409b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x55555555, 0x0000007d},
410b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x0000007f, 0x33333333},
411b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffff8001, 0x00000001},
412b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffff8001, 0xffffff80},
413b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0xffffffff, 0x00007ffe},
414b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007fff, 0x00000000},
415b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffff8001, 0x55555555},
416b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00000020, 0x00000002},
417b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x7fffffff, 0x7ffffffd},
418b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x7ffffffd, 0xaaaaaaaa},
419b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0x00007ffe},
420b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x55555555, 0x0000007e},
421b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffff8001, 0xfffffffe},
422b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0x0000007e},
423b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0x55555555},
424b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x00000002, 0x7fffffff},
425b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffffff80, 0x33333333},
426b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0xffffffff, 0xffffff81},
427b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x00000002, 0x00000020},
428b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xcccccccc, 0x00007ffe},
429b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xffff8002, 0xfffffffd},
430b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xffff8000, 0xffff8001},
431b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x00000001, 0x7fffffff},
432b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffffffe0, 0x80000000},
433b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00007ffe, 0x7ffffffd},
434b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00007ffd, 0x33333333},
435b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x0000007f, 0x00007ffd},
436b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000000, 0x0000007e},
437b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xfffffffe, 0xaaaaaaaa},
438b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000000, 0xffff8001},
439b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x33333333, 0x33333333},
440b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffffffe0, 0x00000001},
441b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xfffffffd, 0xffff8003},
442b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffffffe0, 0x33333333},
443b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffffff83, 0xffff8001},
444b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x55555555, 0xffff8001},
445b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xfffffffd, 0x55555555},
446b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00007ffe, 0x00000002},
447b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0x33333333},
448b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0xfffffffe},
449b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00000020, 0xffff8001},
450b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x0000007d, 0x55555555},
451b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007fff, 0x00000002},
452b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x80000001, 0x00000000},
453b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00007ffd, 0x00000002},
454b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffffff80, 0xffffff83},
455b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x0000007d, 0xffff8001},
456b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffffff83, 0x00000001},
457b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00007ffd, 0xffffff83},
458b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0xfffffffe},
459b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x33333333, 0xffffff81},
460b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x0000007d, 0xfffffffd},
461b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x80000001, 0xffffff80},
462b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0xffffff83},
463b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffff8003, 0x7ffffffe},
464b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffffffe0, 0xaaaaaaaa},
465b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0xffffffe0},
466b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x0000007e, 0x7fffffff},
467b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000000, 0x0000007f},
468b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xffff8002, 0xffffff81}};
469b8021494Sopenharmony_ci
470b8021494Sopenharmony_cistatic const Inputs kRdIsRm[] =
471b8021494Sopenharmony_ci    {{NoFlag, NoFlag, NoFlag, 0x00000020, 0x0000007f, 0x00000020},
472b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00000020, 0x00007ffd},
473b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00007ffd, 0x00000000},
474b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0x7ffffffd, 0xaaaaaaaa},
475b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xffff8000, 0x00007ffd},
476b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0xfffffffd, 0x0000007f},
477b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0x80000000, 0xffffffff},
478b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0xffffff82, 0x7fffffff},
479b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0xfffffffe, 0x00000002},
480b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x55555555, 0x00000020},
481b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0xfffffffe, 0x33333333},
482b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0x80000000, 0xfffffffd},
483b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffff8003, 0xffffff82},
484b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x7ffffffe, 0x0000007e},
485b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007fff, 0x00007fff},
486b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0xffffff80, 0x0000007d},
487b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0x00000020, 0xffffff80},
488b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0xffff8002, 0x33333333},
489b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0xffffff80, 0x0000007e},
490b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x00000020, 0x80000000},
491b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0xffffff81, 0x00000002},
492b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0xffffff82, 0x0000007d},
493b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0xffffff82, 0x00000000},
494b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xffffff83, 0xffffff81},
495b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x55555555, 0x80000001},
496b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x00000001, 0xffff8001},
497b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x7ffffffe, 0x00000000},
498b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0xffff8001, 0x33333333},
499b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x00000002, 0x80000000},
500b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0xaaaaaaaa, 0x80000000},
501b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0x00000020, 0xfffffffe},
502b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xfffffffe, 0x00007fff},
503b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xfffffffd, 0x00007fff},
504b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x00007ffe, 0x7ffffffd},
505b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xcccccccc, 0xffff8002},
506b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0x7ffffffe, 0xfffffffe},
507b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0xffffffff, 0x7ffffffd},
508b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0xaaaaaaaa, 0x0000007f},
509b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x0000007d, 0x00000000},
510b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xaaaaaaaa, 0x00007fff},
511b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0xaaaaaaaa, 0x7ffffffd},
512b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x55555555, 0xffffffe0},
513b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x0000007e, 0xffff8002},
514b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x33333333, 0x80000000},
515b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xffffff80, 0xcccccccc},
516b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00007ffe, 0x00000000},
517b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x55555555, 0x80000000},
518b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffff8001, 0xffffffe0},
519b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0x00000002, 0xaaaaaaaa},
520b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0xaaaaaaaa, 0x7ffffffe},
521b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x0000007f, 0xffffff83},
522b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0x7fffffff, 0xffffff81},
523b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xffff8001, 0xffffff81},
524b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0xffff8003, 0x80000000},
525b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0xaaaaaaaa, 0x33333333},
526b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0xaaaaaaaa, 0x00007ffe},
527b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xcccccccc, 0xffff8001},
528b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xffffff81, 0xfffffffd},
529b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xfffffffe, 0xffffffe0},
530b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0xcccccccc, 0x00007ffe},
531b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00000020, 0x00007fff},
532b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0x00007ffe, 0xffffff81},
533b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0x0000007d, 0xaaaaaaaa},
534b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xfffffffe, 0xffff8002},
535b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xaaaaaaaa, 0xcccccccc},
536b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x0000007f, 0x33333333},
537b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00000001, 0x00007ffd},
538b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0xffff8000, 0x80000000},
539b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xffffffff, 0xaaaaaaaa},
540b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0xffffff83, 0x00000001},
541b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0xffff8000, 0x80000001},
542b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0xffff8000, 0x0000007e},
543b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0xffffffff, 0x00000020},
544b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffff8000, 0xffff8001},
545b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0xffffffe0, 0x7ffffffe},
546b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x7ffffffe, 0xffffff83},
547b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0xfffffffe, 0x7fffffff},
548b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x00000000, 0x0000007f},
549b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x0000007f, 0x0000007e},
550b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x7ffffffd, 0xffffff83},
551b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x80000001, 0x00000001},
552b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x00007ffd, 0x00000001},
553b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xaaaaaaaa, 0xffffff80},
554b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0x00000000, 0xffffffff},
555b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffffff82, 0xffffff80},
556b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xaaaaaaaa, 0xffff8001},
557b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffff8000, 0xffffff80},
558b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xffffffe0, 0xaaaaaaaa},
559b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x00007ffd, 0x33333333},
560b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x00007fff, 0x33333333},
561b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xfffffffd, 0xffffff82},
562b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x7ffffffd, 0x0000007d},
563b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x00000001, 0x00000001},
564b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xfffffffe, 0xffffff83},
565b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x00007fff, 0xffff8001},
566b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0x00000020, 0xfffffffd},
567b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x0000007d, 0x00007fff},
568b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0xffff8002, 0x0000007d},
569b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x00000000, 0xffff8001},
570b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x0000007f, 0xffffff82},
571b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x00007ffe, 0xffffff83},
572b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffff8003, 0xffffff83},
573b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x80000001, 0x00007ffe},
574b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x00007ffd, 0xffff8000},
575b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0x00007ffe, 0xffff8003},
576b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0x80000001, 0xfffffffe},
577b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x00007ffe, 0x00000002},
578b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x7ffffffd, 0x00000001},
579b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xfffffffd, 0xffff8002},
580b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x7ffffffd, 0x7fffffff},
581b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xffffff82, 0xcccccccc},
582b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x80000000, 0x7ffffffd},
583b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xffffffff, 0xcccccccc},
584b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0xffffff81, 0xffffffff},
585b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00000020, 0x00007ffe},
586b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x00000002, 0xffff8001},
587b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffffffe0, 0xffff8003},
588b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0xffffff83, 0x55555555},
589b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x33333333, 0x55555555},
590b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xffffff82, 0xffff8000},
591b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x55555555, 0xffff8001},
592b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x00007ffd, 0x00000002},
593b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0x00007ffd, 0xffffff80},
594b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xffffff80, 0x00007fff},
595b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x00000001, 0x00000002},
596b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00007ffe, 0x00000020},
597b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xffffffff, 0xfffffffe},
598b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0x00000002, 0xffffff81},
599b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x7fffffff, 0x0000007d},
600b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007ffd, 0x00007fff},
601b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x80000001, 0xffff8002},
602b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0xffffff82, 0x00000020},
603b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x00000020, 0x55555555},
604b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x00007fff, 0x80000000},
605b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0xffffff81, 0x55555555},
606b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x7ffffffe, 0x00007fff},
607b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xaaaaaaaa, 0x00007ffd},
608b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0x00000001, 0xcccccccc},
609b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000001, 0x00000000},
610b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xfffffffd, 0xcccccccc},
611b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xffff8002, 0xaaaaaaaa},
612b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x00000020, 0x7ffffffd},
613b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x0000007f, 0x55555555},
614b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x0000007f, 0x7ffffffe},
615b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffffff83, 0xffff8003},
616b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xcccccccc, 0xfffffffd},
617b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xffffffff, 0x00007fff},
618b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xcccccccc, 0xaaaaaaaa},
619b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0xffffff83, 0x7fffffff},
620b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x00007ffe, 0xffff8000},
621b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x00007ffe, 0x7ffffffe},
622b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x0000007f, 0x80000000},
623b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00007ffd, 0x00000020},
624b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x00000001, 0x80000001},
625b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffff8003, 0xffffffe0},
626b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0xffff8003, 0x7fffffff},
627b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0xffffff82, 0x80000001},
628b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x7ffffffe, 0x80000001},
629b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0x7ffffffd, 0xffffff80},
630b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xffff8001, 0xfffffffd},
631b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0x7fffffff, 0xfffffffe},
632b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x80000001, 0x33333333},
633b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xffffffff, 0x00007ffd},
634b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x0000007e, 0xffffffe0},
635b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xffffff80, 0xfffffffe},
636b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0x7ffffffd, 0xcccccccc},
637b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffffe0, 0xffffff82},
638b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xaaaaaaaa, 0xffffff81},
639b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x0000007e, 0xffffff83},
640b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0x0000007f, 0xffffff81},
641b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x0000007f, 0x0000007f},
642b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x80000000, 0x00000002},
643b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x00000000, 0x0000007d},
644b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0xffffff80, 0x7ffffffe},
645b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x33333333, 0xffffff82},
646b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xffffff81, 0xffffff81},
647b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xaaaaaaaa, 0xffffff82},
648b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x0000007f, 0xffffffe0},
649b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x7ffffffd, 0x00000000},
650b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x33333333, 0x0000007e},
651b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0xfffffffe, 0x55555555},
652b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0x0000007d, 0xffff8003},
653b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0x80000000, 0xcccccccc},
654b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0xffffff81, 0x7ffffffe},
655b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x7ffffffe, 0x80000000},
656b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0xffffff80, 0x7fffffff},
657b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x00000001, 0x7fffffff},
658b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000000, 0x00000000},
659b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffffff82, 0xffff8001},
660b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0xffff8001, 0x0000007d},
661b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007ffe, 0x00007fff},
662b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0x00007fff, 0xfffffffd},
663b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0xffff8003, 0x7ffffffd},
664b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x80000001, 0x7ffffffe},
665b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0x7fffffff, 0xfffffffd},
666b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffff8000, 0xffffff82},
667b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0xffffff82, 0x7ffffffd},
668b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xcccccccc, 0xffff8000},
669b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x7fffffff, 0xffffff83},
670b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0x00007fff, 0xffff8003}};
671b8021494Sopenharmony_ci
672b8021494Sopenharmony_cistatic const Inputs kRnIsRm[] =
673b8021494Sopenharmony_ci    {{NoFlag, NoFlag, NoFlag, 0xffffff82, 0x00000002, 0x00000002},
674b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x0000007f, 0x0000007f},
675b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x0000007d, 0x0000007d},
676b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x00000020, 0x00000020},
677b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xcccccccc, 0xcccccccc},
678b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xffffffe0, 0xffffffe0},
679b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x00000000, 0x00000000},
680b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0xffffffff, 0xffffffff},
681b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0xffffffe0, 0xffffffe0},
682b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x00000002, 0x00000002},
683b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xcccccccc, 0xcccccccc},
684b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x80000000, 0x80000000},
685b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x33333333, 0x33333333},
686b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00007ffd, 0x00007ffd},
687b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xaaaaaaaa, 0xaaaaaaaa},
688b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0x7ffffffd, 0x7ffffffd},
689b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0xfffffffd, 0xfffffffd},
690b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0x00000001, 0x00000001},
691b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000002, 0x00000002},
692b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0xffff8001, 0xffff8001},
693b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xfffffffd, 0xfffffffd},
694b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xffff8000, 0xffff8000},
695b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x7fffffff, 0x7fffffff},
696b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0xffffff83, 0xffffff83},
697b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x00000002, 0x00000002},
698b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x0000007f, 0x0000007f},
699b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x00000020, 0x00000020},
700b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffff8001, 0xffff8001},
701b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0xffffff83, 0xffffff83},
702b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0xffffff81, 0xffffff81},
703b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00000002, 0x00000002},
704b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xffff8000, 0xffff8000},
705b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x00000001, 0x00000001},
706b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x7ffffffe, 0x7ffffffe},
707b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x00000001, 0x00000001},
708b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x7ffffffd, 0x7ffffffd},
709b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x00000001, 0x00000001},
710b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x55555555, 0x55555555},
711b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x80000001, 0x80000001},
712b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff82, 0xffffff82},
713b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xffff8001, 0xffff8001},
714b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xffffff80, 0xffffff80},
715b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x7ffffffe, 0x7ffffffe},
716b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffffff83, 0xffffff83},
717b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x7ffffffe, 0x7ffffffe},
718b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xffff8002, 0xffff8002},
719b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x80000000, 0x80000000},
720b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0x00007ffe, 0x00007ffe},
721b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0xaaaaaaaa, 0xaaaaaaaa},
722b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x00000020, 0x00000020},
723b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x7ffffffe, 0x7ffffffe},
724b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x7ffffffe, 0x7ffffffe},
725b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xffff8000, 0xffff8000},
726b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x7fffffff, 0x7fffffff},
727b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x00000020, 0x00000020},
728b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0xffffffe0, 0xffffffe0},
729b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0xcccccccc, 0xcccccccc},
730b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0xaaaaaaaa, 0xaaaaaaaa},
731b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x33333333, 0x33333333},
732b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0xffff8002, 0xffff8002},
733b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0xffffffe0, 0xffffffe0},
734b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0xffff8000, 0xffff8000},
735b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xffffff80, 0xffffff80},
736b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x00000001, 0x00000001},
737b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x80000001, 0x80000001},
738b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00000002, 0x00000002},
739b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x0000007d, 0x0000007d},
740b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0xfffffffd, 0xfffffffd},
741b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xaaaaaaaa, 0xaaaaaaaa},
742b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0xffffff83, 0xffffff83},
743b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x00000002, 0x00000002},
744b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x0000007f, 0x0000007f},
745b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xfffffffe, 0xfffffffe},
746b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xffffffff, 0xffffffff},
747b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0xffff8002, 0xffff8002},
748b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x55555555, 0x55555555},
749b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0xcccccccc, 0xcccccccc},
750b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x00000020, 0x00000020},
751b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x0000007e, 0x0000007e},
752b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0xfffffffe, 0xfffffffe},
753b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x55555555, 0x55555555},
754b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0x0000007f, 0x0000007f},
755b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0x7fffffff, 0x7fffffff},
756b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0x7ffffffe, 0x7ffffffe},
757b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x7fffffff, 0x7fffffff},
758b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x7ffffffd, 0x7ffffffd},
759b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x33333333, 0x33333333},
760b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xfffffffd, 0xfffffffd},
761b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x0000007e, 0x0000007e},
762b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffffff82, 0xffffff82},
763b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x0000007f, 0x0000007f},
764b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x7ffffffd, 0x7ffffffd},
765b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffffe0, 0xffffffe0},
766b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0xffff8001, 0xffff8001},
767b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0xffffff82, 0xffffff82},
768b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x0000007f, 0x0000007f},
769b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x00000020, 0x00000020},
770b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xffff8002, 0xffff8002},
771b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x00007fff, 0x00007fff},
772b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x7ffffffe, 0x7ffffffe},
773b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0x00007ffe, 0x00007ffe},
774b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0xffffff82, 0xffffff82},
775b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffff8002, 0xffff8002},
776b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x00007ffd, 0x00007ffd},
777b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0xffff8003, 0xffff8003},
778b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xffff8003, 0xffff8003},
779b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xffffff83, 0xffffff83},
780b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x33333333, 0x33333333},
781b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007ffe, 0x00007ffe},
782b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x00007ffd, 0x00007ffd},
783b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0xffffff80, 0xffffff80},
784b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xffffffe0, 0xffffffe0},
785b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x7ffffffd, 0x7ffffffd},
786b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x00000000, 0x00000000},
787b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00007fff, 0x00007fff},
788b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x00000002, 0x00000002},
789b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x00007ffe, 0x00007ffe},
790b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000001, 0x00000001},
791b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0xfffffffe, 0xfffffffe},
792b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xffffff83, 0xffffff83},
793b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0xffffff80, 0xffffff80},
794b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffff8002, 0xffff8002},
795b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0xffffffe0, 0xffffffe0},
796b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x0000007f, 0x0000007f},
797b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x80000001, 0x80000001},
798b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x00000000, 0x00000000},
799b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x7ffffffe, 0x7ffffffe},
800b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0xffff8002, 0xffff8002},
801b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0x7fffffff, 0x7fffffff},
802b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0x0000007e, 0x0000007e},
803b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0x00007fff, 0x00007fff},
804b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0x33333333, 0x33333333},
805b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xaaaaaaaa, 0xaaaaaaaa},
806b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xaaaaaaaa, 0xaaaaaaaa},
807b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x7ffffffd, 0x7ffffffd},
808b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x0000007f, 0x0000007f},
809b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xffff8001, 0xffff8001},
810b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0xfffffffd, 0xfffffffd},
811b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0x0000007d, 0x0000007d},
812b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x0000007d, 0x0000007d},
813b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0xaaaaaaaa, 0xaaaaaaaa},
814b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x0000007d, 0x0000007d},
815b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0x00000020, 0x00000020},
816b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00000000, 0x00000000},
817b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0x0000007d, 0x0000007d},
818b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xfffffffe, 0xfffffffe},
819b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0xffff8001, 0xffff8001},
820b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0xffffff80, 0xffffff80},
821b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x80000001, 0x80000001},
822b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0x0000007f, 0x0000007f},
823b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0xffffff81, 0xffffff81},
824b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0xfffffffe, 0xfffffffe},
825b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0xcccccccc, 0xcccccccc},
826b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x80000001, 0x80000001},
827b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0xffff8002, 0xffff8002},
828b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x7fffffff, 0x7fffffff},
829b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffff8003, 0xffff8003},
830b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x00007ffe, 0x00007ffe},
831b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x80000001, 0x80000001},
832b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x00007ffe, 0x00007ffe},
833b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xfffffffd, 0xfffffffd},
834b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xffff8003, 0xffff8003},
835b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x00000001, 0x00000001},
836b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x33333333, 0x33333333},
837b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xffffff81, 0xffffff81},
838b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0x00007fff, 0x00007fff},
839b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xfffffffe, 0xfffffffe},
840b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0x80000001, 0x80000001},
841b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xaaaaaaaa, 0xaaaaaaaa},
842b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0x55555555, 0x55555555},
843b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0xffffff83, 0xffffff83},
844b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0x00000001, 0x00000001},
845b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x00000000, 0x00000000},
846b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x0000007d, 0x0000007d},
847b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xffffff83, 0xffffff83},
848b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0x00007ffd, 0x00007ffd},
849b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0xffffff81, 0xffffff81},
850b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0xffff8000, 0xffff8000},
851b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0xffffffff, 0xffffffff},
852b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x80000000, 0x80000000},
853b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffff8001, 0xffff8001},
854b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0x00007fff, 0x00007fff},
855b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0xffffff81, 0xffffff81},
856b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xfffffffd, 0xfffffffd},
857b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x33333333, 0x33333333},
858b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xffff8002, 0xffff8002},
859b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x0000007e, 0x0000007e},
860b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0xffffff80, 0xffffff80},
861b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0xffffff80, 0xffffff80},
862b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x00000020, 0x00000020},
863b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0xffffff81, 0xffffff81},
864b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x80000001, 0x80000001},
865b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x7fffffff, 0x7fffffff},
866b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00000002, 0x00000002},
867b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x80000001, 0x80000001},
868b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0xfffffffd, 0xfffffffd},
869b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x80000000, 0x80000000},
870b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x00000020, 0x00000020},
871b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffff8002, 0xffff8002},
872b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0x0000007e, 0x0000007e}};
873b8021494Sopenharmony_ci
874b8021494Sopenharmony_cistatic const Inputs kRdIsNotRnIsNotRm[] =
875b8021494Sopenharmony_ci    {{NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xffff8001, 0x00007ffd},
876b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xffff8003, 0x7ffffffe},
877b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x00007fff, 0xffff8001},
878b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0xffffff80, 0x00000000},
879b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0x33333333, 0x33333333},
880b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x0000007f, 0xfffffffe},
881b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0xffffffff, 0x00007ffd},
882b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0xfffffffe, 0xffffff82},
883b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffff8001, 0xffffff81},
884b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0x0000007e, 0xaaaaaaaa},
885b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x0000007e, 0x80000001},
886b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xffffff81, 0x00000001},
887b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x00007ffd, 0x00007fff},
888b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0xcccccccc, 0x00000020},
889b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x00000020, 0xaaaaaaaa},
890b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x00000002, 0x33333333},
891b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0x0000007f, 0xffffffe0},
892b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00007ffd, 0xcccccccc},
893b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00007ffd, 0xffffff81},
894b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0xfffffffe, 0xffffff80},
895b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x00007fff, 0xfffffffd},
896b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x00007fff, 0x55555555},
897b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x80000000, 0xcccccccc},
898b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0x00000001, 0x0000007d},
899b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x55555555, 0xffffffff},
900b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0xffffffff, 0xffffff80},
901b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xffff8003, 0x0000007e},
902b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0xffffff82, 0xaaaaaaaa},
903b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x00000002, 0xffffff82},
904b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0xffffff80, 0xfffffffe},
905b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x00007ffd, 0xffffff82},
906b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffff8002, 0x0000007e},
907b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x00000000, 0xcccccccc},
908b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x7ffffffe, 0xcccccccc},
909b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x00007ffd, 0xffffff81},
910b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x80000001, 0x00000001},
911b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0x00000001, 0x00000001},
912b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffff8001, 0x7ffffffe},
913b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x33333333, 0x00000020},
914b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0xffffffe0, 0x00000002},
915b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x7ffffffe, 0x55555555},
916b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xcccccccc, 0xffffff82},
917b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x33333333, 0xffffffe0},
918b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x7ffffffe, 0xfffffffe},
919b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffffff80, 0x80000001},
920b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x0000007e, 0x00000020},
921b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x00000020, 0x7ffffffd},
922b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x00000001, 0x7ffffffd},
923b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xcccccccc, 0xcccccccc},
924b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xaaaaaaaa, 0x00007fff},
925b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0x0000007f, 0x80000001},
926b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffffffff, 0xffffff80},
927b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xffffff81, 0x0000007f},
928b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x0000007d, 0xffff8000},
929b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xaaaaaaaa, 0x7fffffff},
930b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x00000002, 0x00007fff},
931b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x00000001, 0xfffffffd},
932b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00000000, 0x55555555},
933b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffffff80, 0x55555555},
934b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x0000007e, 0xffff8001},
935b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0xaaaaaaaa, 0x0000007f},
936b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x80000000, 0xffffff81},
937b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x00007ffd, 0x00000000},
938b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0xffffff80, 0x00000020},
939b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffff8000, 0x00000020},
940b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xaaaaaaaa, 0xaaaaaaaa},
941b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x7ffffffe, 0xffffff82},
942b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x00000002, 0x00000020},
943b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xfffffffd, 0x00000000},
944b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0xffffff83, 0x55555555},
945b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0xffff8001, 0x00000001},
946b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00007fff, 0x00007fff},
947b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xfffffffe, 0xffffff82},
948b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x80000000, 0xffffffff},
949b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0xfffffffd, 0x7ffffffd},
950b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x7fffffff, 0x0000007d},
951b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffffffe0, 0x0000007e},
952b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x00000001, 0xffffff81},
953b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0xffffff82, 0x80000000},
954b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0xffff8003, 0x33333333},
955b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x33333333, 0x7ffffffd},
956b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0xffffffff, 0x0000007d},
957b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x0000007f, 0x00000020},
958b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0xffff8003, 0x55555555},
959b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0xfffffffd, 0xffffff80},
960b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0xfffffffe, 0xfffffffe},
961b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0xffffffe0, 0xffff8001},
962b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xffffff82, 0xffff8001},
963b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff81, 0x00007ffd, 0x80000001},
964b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x00000002, 0x0000007d},
965b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x00007ffd, 0x0000007d},
966b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x7fffffff, 0xaaaaaaaa},
967b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xfffffffe, 0xaaaaaaaa},
968b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xffff8003, 0xffff8003},
969b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0xaaaaaaaa, 0xfffffffd},
970b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x00000020, 0xffffffe0},
971b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x0000007d, 0xfffffffe},
972b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x80000001, 0xffff8003},
973b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0xffffffff, 0x00000001},
974b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x00000000, 0x33333333},
975b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x80000000, 0xffff8001},
976b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0x55555555, 0x0000007f},
977b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffff8003, 0x0000007e},
978b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0x80000001, 0x00000020},
979b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xffffff82, 0x0000007f},
980b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0x00000000, 0xffff8000},
981b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0x0000007e, 0x7ffffffd},
982b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0x7fffffff, 0xffff8003},
983b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000001},
984b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xffffff80, 0x33333333},
985b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0x00000001, 0xffff8001},
986b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x00007ffe, 0x00000002},
987b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0x00000000, 0xffff8001},
988b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xffffff82, 0xffffff81},
989b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0xaaaaaaaa, 0xffffff81},
990b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x80000000, 0x00007ffd},
991b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x55555555, 0xfffffffe},
992b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0xffffff81, 0x33333333},
993b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffffe0, 0x80000000},
994b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x00000001, 0xffff8001},
995b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffffff80, 0x00000020},
996b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xcccccccc, 0x00000000},
997b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0xffff8001, 0x7ffffffe},
998b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xffff8001, 0xaaaaaaaa},
999b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0xfffffffe, 0xcccccccc},
1000b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0xcccccccc, 0xffff8001},
1001b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x00007ffd, 0x00000020},
1002b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xfffffffd, 0x00007fff},
1003b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0x00000001, 0xfffffffd},
1004b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0x7ffffffd, 0x00000020},
1005b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0xffff8001, 0xffffff82},
1006b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x00007ffe, 0x00000002},
1007b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x00000001, 0x00000002},
1008b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0x33333333, 0x33333333},
1009b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffff8002, 0xffffff82},
1010b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0xffffff82, 0x80000000},
1011b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0x0000007f, 0x0000007d},
1012b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x00000001, 0x00000002},
1013b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x00007fff, 0x0000007f},
1014b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0xffff8000, 0x0000007e},
1015b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xcccccccc, 0xffffff81, 0x7ffffffd},
1016b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xffff8003, 0x00007ffe},
1017b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0x7fffffff, 0x0000007f},
1018b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000020, 0x80000000, 0xffffff83},
1019b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x7ffffffe, 0x00000020},
1020b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x00000020, 0xffffff83},
1021b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xffffff81, 0x80000000},
1022b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0xffff8001, 0xffff8003},
1023b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x7ffffffe, 0xffff8000},
1024b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x80000000, 0xfffffffe},
1025b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xaaaaaaaa, 0xffffff82},
1026b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xffffffff, 0xffffff81},
1027b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0xffff8001, 0xfffffffe},
1028b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffd, 0x0000007f, 0x7fffffff},
1029b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0x0000007f, 0x00007ffe},
1030b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xaaaaaaaa, 0xffff8000, 0x7fffffff},
1031b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xfffffffe, 0xfffffffd},
1032b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7fffffff, 0xfffffffd, 0x0000007f},
1033b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0xffffffff, 0x00007fff},
1034b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007d, 0xcccccccc, 0x00000002},
1035b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0xffffff80, 0xffffff80},
1036b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0x0000007e, 0x55555555},
1037b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff82, 0xffffff80, 0xffff8000},
1038b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x0000007d, 0xfffffffe},
1039b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffe, 0xffffff82, 0x00000000},
1040b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x55555555, 0xffffff81},
1041b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0xffff8001, 0x00000002},
1042b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0xffffffe0, 0x33333333},
1043b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x55555555, 0x00000001, 0x55555555},
1044b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0xffffffff, 0x0000007d},
1045b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007fff, 0x00000000, 0x7fffffff},
1046b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0x0000007d, 0x7ffffffe},
1047b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0x0000007e, 0xffff8001},
1048b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0x00007fff, 0xffffff83},
1049b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007e, 0x0000007d, 0x00000020},
1050b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000000, 0xffffff81, 0x0000007d},
1051b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffff, 0xffff8002, 0x00007ffd},
1052b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x0000007f, 0x55555555, 0x0000007f},
1053b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x00000020, 0x00007ffd},
1054b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8001, 0xffffff80, 0x00000001},
1055b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x7ffffffe, 0x00007ffd, 0x0000007e},
1056b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff83, 0x7ffffffe, 0x00000001},
1057b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0xffff8001, 0x80000001},
1058b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0xffff8003, 0x0000007e},
1059b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x80000001, 0xffff8003, 0xffffff81},
1060b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x0000007d, 0x00000001},
1061b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffd, 0x0000007f, 0xffff8003},
1062b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0xffffffff, 0x00000000},
1063b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8000, 0x00007fff, 0x55555555},
1064b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x33333333, 0xffffff82, 0x00007ffe},
1065b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffff80, 0x7ffffffe, 0x0000007e},
1066b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8002, 0xffffffff, 0x00000002},
1067b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0x00007ffd, 0xffffff80},
1068b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00007ffe, 0x00000002, 0xcccccccc},
1069b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000002, 0xffffff81, 0xfffffffd},
1070b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffffffe0, 0x0000007d, 0x00000001},
1071b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000000, 0xffffff82, 0xffffff82},
1072b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xfffffffd, 0x00000020, 0xffff8002},
1073b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0xffff8003, 0xffffff81, 0x0000007d},
1074b8021494Sopenharmony_ci     {NoFlag, NoFlag, NoFlag, 0x00000001, 0x7fffffff, 0x55555555}};
1075b8021494Sopenharmony_ci
1076b8021494Sopenharmony_ci
1077b8021494Sopenharmony_ci// A loop will be generated for each element of this array.
1078b8021494Sopenharmony_ciconst TestLoopData kTests[] = {{{eq, r0, r0, r0},
1079b8021494Sopenharmony_ci                                "eq r0 r0 r0",
1080b8021494Sopenharmony_ci                                "Condition_eq_r0_r0_r0",
1081b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1082b8021494Sopenharmony_ci                                kCondition},
1083b8021494Sopenharmony_ci                               {{ne, r0, r0, r0},
1084b8021494Sopenharmony_ci                                "ne r0 r0 r0",
1085b8021494Sopenharmony_ci                                "Condition_ne_r0_r0_r0",
1086b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1087b8021494Sopenharmony_ci                                kCondition},
1088b8021494Sopenharmony_ci                               {{cs, r0, r0, r0},
1089b8021494Sopenharmony_ci                                "cs r0 r0 r0",
1090b8021494Sopenharmony_ci                                "Condition_cs_r0_r0_r0",
1091b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1092b8021494Sopenharmony_ci                                kCondition},
1093b8021494Sopenharmony_ci                               {{cc, r0, r0, r0},
1094b8021494Sopenharmony_ci                                "cc r0 r0 r0",
1095b8021494Sopenharmony_ci                                "Condition_cc_r0_r0_r0",
1096b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1097b8021494Sopenharmony_ci                                kCondition},
1098b8021494Sopenharmony_ci                               {{mi, r0, r0, r0},
1099b8021494Sopenharmony_ci                                "mi r0 r0 r0",
1100b8021494Sopenharmony_ci                                "Condition_mi_r0_r0_r0",
1101b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1102b8021494Sopenharmony_ci                                kCondition},
1103b8021494Sopenharmony_ci                               {{pl, r0, r0, r0},
1104b8021494Sopenharmony_ci                                "pl r0 r0 r0",
1105b8021494Sopenharmony_ci                                "Condition_pl_r0_r0_r0",
1106b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1107b8021494Sopenharmony_ci                                kCondition},
1108b8021494Sopenharmony_ci                               {{vs, r0, r0, r0},
1109b8021494Sopenharmony_ci                                "vs r0 r0 r0",
1110b8021494Sopenharmony_ci                                "Condition_vs_r0_r0_r0",
1111b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1112b8021494Sopenharmony_ci                                kCondition},
1113b8021494Sopenharmony_ci                               {{vc, r0, r0, r0},
1114b8021494Sopenharmony_ci                                "vc r0 r0 r0",
1115b8021494Sopenharmony_ci                                "Condition_vc_r0_r0_r0",
1116b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1117b8021494Sopenharmony_ci                                kCondition},
1118b8021494Sopenharmony_ci                               {{hi, r0, r0, r0},
1119b8021494Sopenharmony_ci                                "hi r0 r0 r0",
1120b8021494Sopenharmony_ci                                "Condition_hi_r0_r0_r0",
1121b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1122b8021494Sopenharmony_ci                                kCondition},
1123b8021494Sopenharmony_ci                               {{ls, r0, r0, r0},
1124b8021494Sopenharmony_ci                                "ls r0 r0 r0",
1125b8021494Sopenharmony_ci                                "Condition_ls_r0_r0_r0",
1126b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1127b8021494Sopenharmony_ci                                kCondition},
1128b8021494Sopenharmony_ci                               {{ge, r0, r0, r0},
1129b8021494Sopenharmony_ci                                "ge r0 r0 r0",
1130b8021494Sopenharmony_ci                                "Condition_ge_r0_r0_r0",
1131b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1132b8021494Sopenharmony_ci                                kCondition},
1133b8021494Sopenharmony_ci                               {{lt, r0, r0, r0},
1134b8021494Sopenharmony_ci                                "lt r0 r0 r0",
1135b8021494Sopenharmony_ci                                "Condition_lt_r0_r0_r0",
1136b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1137b8021494Sopenharmony_ci                                kCondition},
1138b8021494Sopenharmony_ci                               {{gt, r0, r0, r0},
1139b8021494Sopenharmony_ci                                "gt r0 r0 r0",
1140b8021494Sopenharmony_ci                                "Condition_gt_r0_r0_r0",
1141b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1142b8021494Sopenharmony_ci                                kCondition},
1143b8021494Sopenharmony_ci                               {{le, r0, r0, r0},
1144b8021494Sopenharmony_ci                                "le r0 r0 r0",
1145b8021494Sopenharmony_ci                                "Condition_le_r0_r0_r0",
1146b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1147b8021494Sopenharmony_ci                                kCondition},
1148b8021494Sopenharmony_ci                               {{al, r0, r0, r0},
1149b8021494Sopenharmony_ci                                "al r0 r0 r0",
1150b8021494Sopenharmony_ci                                "Condition_al_r0_r0_r0",
1151b8021494Sopenharmony_ci                                ARRAY_SIZE(kCondition),
1152b8021494Sopenharmony_ci                                kCondition},
1153b8021494Sopenharmony_ci                               {{al, r0, r0, r0},
1154b8021494Sopenharmony_ci                                "al r0 r0 r0",
1155b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r0_r0_r0",
1156b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1157b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1158b8021494Sopenharmony_ci                               {{al, r1, r1, r1},
1159b8021494Sopenharmony_ci                                "al r1 r1 r1",
1160b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r1_r1_r1",
1161b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1162b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1163b8021494Sopenharmony_ci                               {{al, r2, r2, r2},
1164b8021494Sopenharmony_ci                                "al r2 r2 r2",
1165b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r2_r2_r2",
1166b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1167b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1168b8021494Sopenharmony_ci                               {{al, r3, r3, r3},
1169b8021494Sopenharmony_ci                                "al r3 r3 r3",
1170b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r3_r3_r3",
1171b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1172b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1173b8021494Sopenharmony_ci                               {{al, r4, r4, r4},
1174b8021494Sopenharmony_ci                                "al r4 r4 r4",
1175b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r4_r4_r4",
1176b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1177b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1178b8021494Sopenharmony_ci                               {{al, r5, r5, r5},
1179b8021494Sopenharmony_ci                                "al r5 r5 r5",
1180b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r5_r5_r5",
1181b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1182b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1183b8021494Sopenharmony_ci                               {{al, r6, r6, r6},
1184b8021494Sopenharmony_ci                                "al r6 r6 r6",
1185b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r6_r6_r6",
1186b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1187b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1188b8021494Sopenharmony_ci                               {{al, r7, r7, r7},
1189b8021494Sopenharmony_ci                                "al r7 r7 r7",
1190b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r7_r7_r7",
1191b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1192b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1193b8021494Sopenharmony_ci                               {{al, r8, r8, r8},
1194b8021494Sopenharmony_ci                                "al r8 r8 r8",
1195b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r8_r8_r8",
1196b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1197b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1198b8021494Sopenharmony_ci                               {{al, r9, r9, r9},
1199b8021494Sopenharmony_ci                                "al r9 r9 r9",
1200b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r9_r9_r9",
1201b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1202b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1203b8021494Sopenharmony_ci                               {{al, r10, r10, r10},
1204b8021494Sopenharmony_ci                                "al r10 r10 r10",
1205b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r10_r10_r10",
1206b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1207b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1208b8021494Sopenharmony_ci                               {{al, r11, r11, r11},
1209b8021494Sopenharmony_ci                                "al r11 r11 r11",
1210b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r11_r11_r11",
1211b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1212b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1213b8021494Sopenharmony_ci                               {{al, r12, r12, r12},
1214b8021494Sopenharmony_ci                                "al r12 r12 r12",
1215b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r12_r12_r12",
1216b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1217b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1218b8021494Sopenharmony_ci                               {{al, r14, r14, r14},
1219b8021494Sopenharmony_ci                                "al r14 r14 r14",
1220b8021494Sopenharmony_ci                                "RdIsRnIsRm_al_r14_r14_r14",
1221b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRnIsRm),
1222b8021494Sopenharmony_ci                                kRdIsRnIsRm},
1223b8021494Sopenharmony_ci                               {{al, r14, r14, r3},
1224b8021494Sopenharmony_ci                                "al r14 r14 r3",
1225b8021494Sopenharmony_ci                                "RdIsRn_al_r14_r14_r3",
1226b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
1227b8021494Sopenharmony_ci                                kRdIsRn},
1228b8021494Sopenharmony_ci                               {{al, r1, r1, r2},
1229b8021494Sopenharmony_ci                                "al r1 r1 r2",
1230b8021494Sopenharmony_ci                                "RdIsRn_al_r1_r1_r2",
1231b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
1232b8021494Sopenharmony_ci                                kRdIsRn},
1233b8021494Sopenharmony_ci                               {{al, r12, r12, r7},
1234b8021494Sopenharmony_ci                                "al r12 r12 r7",
1235b8021494Sopenharmony_ci                                "RdIsRn_al_r12_r12_r7",
1236b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
1237b8021494Sopenharmony_ci                                kRdIsRn},
1238b8021494Sopenharmony_ci                               {{al, r10, r10, r6},
1239b8021494Sopenharmony_ci                                "al r10 r10 r6",
1240b8021494Sopenharmony_ci                                "RdIsRn_al_r10_r10_r6",
1241b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
1242b8021494Sopenharmony_ci                                kRdIsRn},
1243b8021494Sopenharmony_ci                               {{al, r4, r4, r9},
1244b8021494Sopenharmony_ci                                "al r4 r4 r9",
1245b8021494Sopenharmony_ci                                "RdIsRn_al_r4_r4_r9",
1246b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
1247b8021494Sopenharmony_ci                                kRdIsRn},
1248b8021494Sopenharmony_ci                               {{al, r5, r5, r6},
1249b8021494Sopenharmony_ci                                "al r5 r5 r6",
1250b8021494Sopenharmony_ci                                "RdIsRn_al_r5_r5_r6",
1251b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
1252b8021494Sopenharmony_ci                                kRdIsRn},
1253b8021494Sopenharmony_ci                               {{al, r2, r2, r4},
1254b8021494Sopenharmony_ci                                "al r2 r2 r4",
1255b8021494Sopenharmony_ci                                "RdIsRn_al_r2_r2_r4",
1256b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
1257b8021494Sopenharmony_ci                                kRdIsRn},
1258b8021494Sopenharmony_ci                               {{al, r7, r7, r11},
1259b8021494Sopenharmony_ci                                "al r7 r7 r11",
1260b8021494Sopenharmony_ci                                "RdIsRn_al_r7_r7_r11",
1261b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
1262b8021494Sopenharmony_ci                                kRdIsRn},
1263b8021494Sopenharmony_ci                               {{al, r7, r7, r12},
1264b8021494Sopenharmony_ci                                "al r7 r7 r12",
1265b8021494Sopenharmony_ci                                "RdIsRn_al_r7_r7_r12",
1266b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
1267b8021494Sopenharmony_ci                                kRdIsRn},
1268b8021494Sopenharmony_ci                               {{al, r2, r2, r10},
1269b8021494Sopenharmony_ci                                "al r2 r2 r10",
1270b8021494Sopenharmony_ci                                "RdIsRn_al_r2_r2_r10",
1271b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
1272b8021494Sopenharmony_ci                                kRdIsRn},
1273b8021494Sopenharmony_ci                               {{al, r1, r12, r1},
1274b8021494Sopenharmony_ci                                "al r1 r12 r1",
1275b8021494Sopenharmony_ci                                "RdIsRm_al_r1_r12_r1",
1276b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRm),
1277b8021494Sopenharmony_ci                                kRdIsRm},
1278b8021494Sopenharmony_ci                               {{al, r4, r3, r4},
1279b8021494Sopenharmony_ci                                "al r4 r3 r4",
1280b8021494Sopenharmony_ci                                "RdIsRm_al_r4_r3_r4",
1281b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRm),
1282b8021494Sopenharmony_ci                                kRdIsRm},
1283b8021494Sopenharmony_ci                               {{al, r0, r2, r0},
1284b8021494Sopenharmony_ci                                "al r0 r2 r0",
1285b8021494Sopenharmony_ci                                "RdIsRm_al_r0_r2_r0",
1286b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRm),
1287b8021494Sopenharmony_ci                                kRdIsRm},
1288b8021494Sopenharmony_ci                               {{al, r10, r4, r10},
1289b8021494Sopenharmony_ci                                "al r10 r4 r10",
1290b8021494Sopenharmony_ci                                "RdIsRm_al_r10_r4_r10",
1291b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRm),
1292b8021494Sopenharmony_ci                                kRdIsRm},
1293b8021494Sopenharmony_ci                               {{al, r4, r8, r4},
1294b8021494Sopenharmony_ci                                "al r4 r8 r4",
1295b8021494Sopenharmony_ci                                "RdIsRm_al_r4_r8_r4",
1296b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRm),
1297b8021494Sopenharmony_ci                                kRdIsRm},
1298b8021494Sopenharmony_ci                               {{al, r4, r1, r4},
1299b8021494Sopenharmony_ci                                "al r4 r1 r4",
1300b8021494Sopenharmony_ci                                "RdIsRm_al_r4_r1_r4",
1301b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRm),
1302b8021494Sopenharmony_ci                                kRdIsRm},
1303b8021494Sopenharmony_ci                               {{al, r8, r11, r8},
1304b8021494Sopenharmony_ci                                "al r8 r11 r8",
1305b8021494Sopenharmony_ci                                "RdIsRm_al_r8_r11_r8",
1306b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRm),
1307b8021494Sopenharmony_ci                                kRdIsRm},
1308b8021494Sopenharmony_ci                               {{al, r1, r10, r1},
1309b8021494Sopenharmony_ci                                "al r1 r10 r1",
1310b8021494Sopenharmony_ci                                "RdIsRm_al_r1_r10_r1",
1311b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRm),
1312b8021494Sopenharmony_ci                                kRdIsRm},
1313b8021494Sopenharmony_ci                               {{al, r2, r0, r2},
1314b8021494Sopenharmony_ci                                "al r2 r0 r2",
1315b8021494Sopenharmony_ci                                "RdIsRm_al_r2_r0_r2",
1316b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRm),
1317b8021494Sopenharmony_ci                                kRdIsRm},
1318b8021494Sopenharmony_ci                               {{al, r6, r7, r6},
1319b8021494Sopenharmony_ci                                "al r6 r7 r6",
1320b8021494Sopenharmony_ci                                "RdIsRm_al_r6_r7_r6",
1321b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRm),
1322b8021494Sopenharmony_ci                                kRdIsRm},
1323b8021494Sopenharmony_ci                               {{al, r1, r12, r12},
1324b8021494Sopenharmony_ci                                "al r1 r12 r12",
1325b8021494Sopenharmony_ci                                "RnIsRm_al_r1_r12_r12",
1326b8021494Sopenharmony_ci                                ARRAY_SIZE(kRnIsRm),
1327b8021494Sopenharmony_ci                                kRnIsRm},
1328b8021494Sopenharmony_ci                               {{al, r6, r9, r9},
1329b8021494Sopenharmony_ci                                "al r6 r9 r9",
1330b8021494Sopenharmony_ci                                "RnIsRm_al_r6_r9_r9",
1331b8021494Sopenharmony_ci                                ARRAY_SIZE(kRnIsRm),
1332b8021494Sopenharmony_ci                                kRnIsRm},
1333b8021494Sopenharmony_ci                               {{al, r12, r7, r7},
1334b8021494Sopenharmony_ci                                "al r12 r7 r7",
1335b8021494Sopenharmony_ci                                "RnIsRm_al_r12_r7_r7",
1336b8021494Sopenharmony_ci                                ARRAY_SIZE(kRnIsRm),
1337b8021494Sopenharmony_ci                                kRnIsRm},
1338b8021494Sopenharmony_ci                               {{al, r11, r8, r8},
1339b8021494Sopenharmony_ci                                "al r11 r8 r8",
1340b8021494Sopenharmony_ci                                "RnIsRm_al_r11_r8_r8",
1341b8021494Sopenharmony_ci                                ARRAY_SIZE(kRnIsRm),
1342b8021494Sopenharmony_ci                                kRnIsRm},
1343b8021494Sopenharmony_ci                               {{al, r14, r0, r0},
1344b8021494Sopenharmony_ci                                "al r14 r0 r0",
1345b8021494Sopenharmony_ci                                "RnIsRm_al_r14_r0_r0",
1346b8021494Sopenharmony_ci                                ARRAY_SIZE(kRnIsRm),
1347b8021494Sopenharmony_ci                                kRnIsRm},
1348b8021494Sopenharmony_ci                               {{al, r8, r4, r4},
1349b8021494Sopenharmony_ci                                "al r8 r4 r4",
1350b8021494Sopenharmony_ci                                "RnIsRm_al_r8_r4_r4",
1351b8021494Sopenharmony_ci                                ARRAY_SIZE(kRnIsRm),
1352b8021494Sopenharmony_ci                                kRnIsRm},
1353b8021494Sopenharmony_ci                               {{al, r0, r8, r8},
1354b8021494Sopenharmony_ci                                "al r0 r8 r8",
1355b8021494Sopenharmony_ci                                "RnIsRm_al_r0_r8_r8",
1356b8021494Sopenharmony_ci                                ARRAY_SIZE(kRnIsRm),
1357b8021494Sopenharmony_ci                                kRnIsRm},
1358b8021494Sopenharmony_ci                               {{al, r5, r3, r3},
1359b8021494Sopenharmony_ci                                "al r5 r3 r3",
1360b8021494Sopenharmony_ci                                "RnIsRm_al_r5_r3_r3",
1361b8021494Sopenharmony_ci                                ARRAY_SIZE(kRnIsRm),
1362b8021494Sopenharmony_ci                                kRnIsRm},
1363b8021494Sopenharmony_ci                               {{al, r8, r5, r5},
1364b8021494Sopenharmony_ci                                "al r8 r5 r5",
1365b8021494Sopenharmony_ci                                "RnIsRm_al_r8_r5_r5",
1366b8021494Sopenharmony_ci                                ARRAY_SIZE(kRnIsRm),
1367b8021494Sopenharmony_ci                                kRnIsRm},
1368b8021494Sopenharmony_ci                               {{al, r5, r10, r10},
1369b8021494Sopenharmony_ci                                "al r5 r10 r10",
1370b8021494Sopenharmony_ci                                "RnIsRm_al_r5_r10_r10",
1371b8021494Sopenharmony_ci                                ARRAY_SIZE(kRnIsRm),
1372b8021494Sopenharmony_ci                                kRnIsRm},
1373b8021494Sopenharmony_ci                               {{al, r14, r3, r4},
1374b8021494Sopenharmony_ci                                "al r14 r3 r4",
1375b8021494Sopenharmony_ci                                "RdIsNotRnIsNotRm_al_r14_r3_r4",
1376b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRnIsNotRm),
1377b8021494Sopenharmony_ci                                kRdIsNotRnIsNotRm},
1378b8021494Sopenharmony_ci                               {{al, r3, r11, r1},
1379b8021494Sopenharmony_ci                                "al r3 r11 r1",
1380b8021494Sopenharmony_ci                                "RdIsNotRnIsNotRm_al_r3_r11_r1",
1381b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRnIsNotRm),
1382b8021494Sopenharmony_ci                                kRdIsNotRnIsNotRm},
1383b8021494Sopenharmony_ci                               {{al, r11, r2, r6},
1384b8021494Sopenharmony_ci                                "al r11 r2 r6",
1385b8021494Sopenharmony_ci                                "RdIsNotRnIsNotRm_al_r11_r2_r6",
1386b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRnIsNotRm),
1387b8021494Sopenharmony_ci                                kRdIsNotRnIsNotRm},
1388b8021494Sopenharmony_ci                               {{al, r14, r0, r5},
1389b8021494Sopenharmony_ci                                "al r14 r0 r5",
1390b8021494Sopenharmony_ci                                "RdIsNotRnIsNotRm_al_r14_r0_r5",
1391b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRnIsNotRm),
1392b8021494Sopenharmony_ci                                kRdIsNotRnIsNotRm},
1393b8021494Sopenharmony_ci                               {{al, r11, r6, r12},
1394b8021494Sopenharmony_ci                                "al r11 r6 r12",
1395b8021494Sopenharmony_ci                                "RdIsNotRnIsNotRm_al_r11_r6_r12",
1396b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRnIsNotRm),
1397b8021494Sopenharmony_ci                                kRdIsNotRnIsNotRm},
1398b8021494Sopenharmony_ci                               {{al, r10, r8, r4},
1399b8021494Sopenharmony_ci                                "al r10 r8 r4",
1400b8021494Sopenharmony_ci                                "RdIsNotRnIsNotRm_al_r10_r8_r4",
1401b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRnIsNotRm),
1402b8021494Sopenharmony_ci                                kRdIsNotRnIsNotRm},
1403b8021494Sopenharmony_ci                               {{al, r4, r3, r1},
1404b8021494Sopenharmony_ci                                "al r4 r3 r1",
1405b8021494Sopenharmony_ci                                "RdIsNotRnIsNotRm_al_r4_r3_r1",
1406b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRnIsNotRm),
1407b8021494Sopenharmony_ci                                kRdIsNotRnIsNotRm},
1408b8021494Sopenharmony_ci                               {{al, r12, r11, r14},
1409b8021494Sopenharmony_ci                                "al r12 r11 r14",
1410b8021494Sopenharmony_ci                                "RdIsNotRnIsNotRm_al_r12_r11_r14",
1411b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRnIsNotRm),
1412b8021494Sopenharmony_ci                                kRdIsNotRnIsNotRm},
1413b8021494Sopenharmony_ci                               {{al, r9, r4, r11},
1414b8021494Sopenharmony_ci                                "al r9 r4 r11",
1415b8021494Sopenharmony_ci                                "RdIsNotRnIsNotRm_al_r9_r4_r11",
1416b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRnIsNotRm),
1417b8021494Sopenharmony_ci                                kRdIsNotRnIsNotRm},
1418b8021494Sopenharmony_ci                               {{al, r14, r4, r6},
1419b8021494Sopenharmony_ci                                "al r14 r4 r6",
1420b8021494Sopenharmony_ci                                "RdIsNotRnIsNotRm_al_r14_r4_r6",
1421b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRnIsNotRm),
1422b8021494Sopenharmony_ci                                kRdIsNotRnIsNotRm}};
1423b8021494Sopenharmony_ci
1424b8021494Sopenharmony_ci// We record all inputs to the instructions as outputs. This way, we also check
1425b8021494Sopenharmony_ci// that what shouldn't change didn't change.
1426b8021494Sopenharmony_cistruct TestResult {
1427b8021494Sopenharmony_ci  size_t output_size;
1428b8021494Sopenharmony_ci  const Inputs* outputs;
1429b8021494Sopenharmony_ci};
1430b8021494Sopenharmony_ci
1431b8021494Sopenharmony_ci// These headers each contain an array of `TestResult` with the reference output
1432b8021494Sopenharmony_ci// values. The reference arrays are names `kReference{mnemonic}`.
1433b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-mul-t32.h"
1434b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-qadd-t32.h"
1435b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-qadd16-t32.h"
1436b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-qadd8-t32.h"
1437b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-qasx-t32.h"
1438b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-qdadd-t32.h"
1439b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-qdsub-t32.h"
1440b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-qsax-t32.h"
1441b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-qsub-t32.h"
1442b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-qsub16-t32.h"
1443b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-qsub8-t32.h"
1444b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-sadd16-t32.h"
1445b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-sadd8-t32.h"
1446b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-sasx-t32.h"
1447b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-sdiv-t32.h"
1448b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-sel-t32.h"
1449b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-shadd16-t32.h"
1450b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-shadd8-t32.h"
1451b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-shasx-t32.h"
1452b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-shsax-t32.h"
1453b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-shsub16-t32.h"
1454b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-shsub8-t32.h"
1455b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smmul-t32.h"
1456b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smmulr-t32.h"
1457b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smuad-t32.h"
1458b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smuadx-t32.h"
1459b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smulbb-t32.h"
1460b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smulbt-t32.h"
1461b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smultb-t32.h"
1462b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smultt-t32.h"
1463b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smulwb-t32.h"
1464b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smulwt-t32.h"
1465b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smusd-t32.h"
1466b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-smusdx-t32.h"
1467b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-ssax-t32.h"
1468b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-ssub16-t32.h"
1469b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-ssub8-t32.h"
1470b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uadd16-t32.h"
1471b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uadd8-t32.h"
1472b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uasx-t32.h"
1473b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-udiv-t32.h"
1474b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uhadd16-t32.h"
1475b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uhadd8-t32.h"
1476b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uhasx-t32.h"
1477b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uhsax-t32.h"
1478b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uhsub16-t32.h"
1479b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uhsub8-t32.h"
1480b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uqadd16-t32.h"
1481b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uqadd8-t32.h"
1482b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uqasx-t32.h"
1483b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uqsax-t32.h"
1484b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uqsub16-t32.h"
1485b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-uqsub8-t32.h"
1486b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-usad8-t32.h"
1487b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-usax-t32.h"
1488b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-usub16-t32.h"
1489b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-rm-usub8-t32.h"
1490b8021494Sopenharmony_ci
1491b8021494Sopenharmony_ci
1492b8021494Sopenharmony_ci// The maximum number of errors to report in detail for each test.
1493b8021494Sopenharmony_ciconst unsigned kErrorReportLimit = 8;
1494b8021494Sopenharmony_ci
1495b8021494Sopenharmony_citypedef void (MacroAssembler::*Fn)(Condition cond,
1496b8021494Sopenharmony_ci                                   Register rd,
1497b8021494Sopenharmony_ci                                   Register rn,
1498b8021494Sopenharmony_ci                                   Register rm);
1499b8021494Sopenharmony_ci
1500b8021494Sopenharmony_civoid TestHelper(Fn instruction,
1501b8021494Sopenharmony_ci                const char* mnemonic,
1502b8021494Sopenharmony_ci                const TestResult reference[]) {
1503b8021494Sopenharmony_ci  SETUP();
1504b8021494Sopenharmony_ci  masm.UseT32();
1505b8021494Sopenharmony_ci  START();
1506b8021494Sopenharmony_ci
1507b8021494Sopenharmony_ci  // Data to compare to `reference`.
1508b8021494Sopenharmony_ci  TestResult* results[ARRAY_SIZE(kTests)];
1509b8021494Sopenharmony_ci
1510b8021494Sopenharmony_ci  // Test cases for memory bound instructions may allocate a buffer and save its
1511b8021494Sopenharmony_ci  // address in this array.
1512b8021494Sopenharmony_ci  byte* scratch_memory_buffers[ARRAY_SIZE(kTests)];
1513b8021494Sopenharmony_ci
1514b8021494Sopenharmony_ci  // Generate a loop for each element in `kTests`. Each loop tests one specific
1515b8021494Sopenharmony_ci  // instruction.
1516b8021494Sopenharmony_ci  for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) {
1517b8021494Sopenharmony_ci    // Allocate results on the heap for this test.
1518b8021494Sopenharmony_ci    results[i] = new TestResult;
1519b8021494Sopenharmony_ci    results[i]->outputs = new Inputs[kTests[i].input_size];
1520b8021494Sopenharmony_ci    results[i]->output_size = kTests[i].input_size;
1521b8021494Sopenharmony_ci
1522b8021494Sopenharmony_ci    size_t input_stride = sizeof(kTests[i].inputs[0]) * kTests[i].input_size;
1523b8021494Sopenharmony_ci    VIXL_ASSERT(IsUint32(input_stride));
1524b8021494Sopenharmony_ci
1525b8021494Sopenharmony_ci    scratch_memory_buffers[i] = NULL;
1526b8021494Sopenharmony_ci
1527b8021494Sopenharmony_ci    Label loop;
1528b8021494Sopenharmony_ci    UseScratchRegisterScope scratch_registers(&masm);
1529b8021494Sopenharmony_ci    // Include all registers from r0 ro r12.
1530b8021494Sopenharmony_ci    scratch_registers.Include(RegisterList(0x1fff));
1531b8021494Sopenharmony_ci
1532b8021494Sopenharmony_ci    // Values to pass to the macro-assembler.
1533b8021494Sopenharmony_ci    Condition cond = kTests[i].operands.cond;
1534b8021494Sopenharmony_ci    Register rd = kTests[i].operands.rd;
1535b8021494Sopenharmony_ci    Register rn = kTests[i].operands.rn;
1536b8021494Sopenharmony_ci    Register rm = kTests[i].operands.rm;
1537b8021494Sopenharmony_ci    scratch_registers.Exclude(rd);
1538b8021494Sopenharmony_ci    scratch_registers.Exclude(rn);
1539b8021494Sopenharmony_ci    scratch_registers.Exclude(rm);
1540b8021494Sopenharmony_ci
1541b8021494Sopenharmony_ci    // Allocate reserved registers for our own use.
1542b8021494Sopenharmony_ci    Register input_ptr = scratch_registers.Acquire();
1543b8021494Sopenharmony_ci    Register input_end = scratch_registers.Acquire();
1544b8021494Sopenharmony_ci    Register result_ptr = scratch_registers.Acquire();
1545b8021494Sopenharmony_ci
1546b8021494Sopenharmony_ci    // Initialize `input_ptr` to the first element and `input_end` the address
1547b8021494Sopenharmony_ci    // after the array.
1548b8021494Sopenharmony_ci    __ Mov(input_ptr, Operand::From(kTests[i].inputs));
1549b8021494Sopenharmony_ci    __ Add(input_end, input_ptr, static_cast<uint32_t>(input_stride));
1550b8021494Sopenharmony_ci    __ Mov(result_ptr, Operand::From(results[i]->outputs));
1551b8021494Sopenharmony_ci    __ Bind(&loop);
1552b8021494Sopenharmony_ci
1553b8021494Sopenharmony_ci    {
1554b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1555b8021494Sopenharmony_ci      Register nzcv_bits = temp_registers.Acquire();
1556b8021494Sopenharmony_ci      Register saved_q_bit = temp_registers.Acquire();
1557b8021494Sopenharmony_ci      // Save the `Q` bit flag.
1558b8021494Sopenharmony_ci      __ Mrs(saved_q_bit, APSR);
1559b8021494Sopenharmony_ci      __ And(saved_q_bit, saved_q_bit, QFlag);
1560b8021494Sopenharmony_ci      // Set the `NZCV` and `Q` flags together.
1561b8021494Sopenharmony_ci      __ Ldr(nzcv_bits, MemOperand(input_ptr, offsetof(Inputs, apsr)));
1562b8021494Sopenharmony_ci      __ Orr(nzcv_bits, nzcv_bits, saved_q_bit);
1563b8021494Sopenharmony_ci      __ Msr(APSR_nzcvq, nzcv_bits);
1564b8021494Sopenharmony_ci    }
1565b8021494Sopenharmony_ci    {
1566b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1567b8021494Sopenharmony_ci      Register q_bit = temp_registers.Acquire();
1568b8021494Sopenharmony_ci      Register saved_nzcv_bits = temp_registers.Acquire();
1569b8021494Sopenharmony_ci      // Save the `NZCV` flags.
1570b8021494Sopenharmony_ci      __ Mrs(saved_nzcv_bits, APSR);
1571b8021494Sopenharmony_ci      __ And(saved_nzcv_bits, saved_nzcv_bits, NZCVFlag);
1572b8021494Sopenharmony_ci      // Set the `NZCV` and `Q` flags together.
1573b8021494Sopenharmony_ci      __ Ldr(q_bit, MemOperand(input_ptr, offsetof(Inputs, qbit)));
1574b8021494Sopenharmony_ci      __ Orr(q_bit, q_bit, saved_nzcv_bits);
1575b8021494Sopenharmony_ci      __ Msr(APSR_nzcvq, q_bit);
1576b8021494Sopenharmony_ci    }
1577b8021494Sopenharmony_ci    {
1578b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1579b8021494Sopenharmony_ci      Register ge_bits = temp_registers.Acquire();
1580b8021494Sopenharmony_ci      __ Ldr(ge_bits, MemOperand(input_ptr, offsetof(Inputs, ge)));
1581b8021494Sopenharmony_ci      __ Msr(APSR_g, ge_bits);
1582b8021494Sopenharmony_ci    }
1583b8021494Sopenharmony_ci    __ Ldr(rd, MemOperand(input_ptr, offsetof(Inputs, rd)));
1584b8021494Sopenharmony_ci    __ Ldr(rn, MemOperand(input_ptr, offsetof(Inputs, rn)));
1585b8021494Sopenharmony_ci    __ Ldr(rm, MemOperand(input_ptr, offsetof(Inputs, rm)));
1586b8021494Sopenharmony_ci
1587b8021494Sopenharmony_ci    (masm.*instruction)(cond, rd, rn, rm);
1588b8021494Sopenharmony_ci
1589b8021494Sopenharmony_ci    {
1590b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1591b8021494Sopenharmony_ci      Register nzcv_bits = temp_registers.Acquire();
1592b8021494Sopenharmony_ci      __ Mrs(nzcv_bits, APSR);
1593b8021494Sopenharmony_ci      // Only record the NZCV bits.
1594b8021494Sopenharmony_ci      __ And(nzcv_bits, nzcv_bits, NZCVFlag);
1595b8021494Sopenharmony_ci      __ Str(nzcv_bits, MemOperand(result_ptr, offsetof(Inputs, apsr)));
1596b8021494Sopenharmony_ci    }
1597b8021494Sopenharmony_ci    {
1598b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1599b8021494Sopenharmony_ci      Register q_bit = temp_registers.Acquire();
1600b8021494Sopenharmony_ci      __ Mrs(q_bit, APSR);
1601b8021494Sopenharmony_ci      // Only record the Q bit.
1602b8021494Sopenharmony_ci      __ And(q_bit, q_bit, QFlag);
1603b8021494Sopenharmony_ci      __ Str(q_bit, MemOperand(result_ptr, offsetof(Inputs, qbit)));
1604b8021494Sopenharmony_ci    }
1605b8021494Sopenharmony_ci    {
1606b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1607b8021494Sopenharmony_ci      Register ge_bits = temp_registers.Acquire();
1608b8021494Sopenharmony_ci      __ Mrs(ge_bits, APSR);
1609b8021494Sopenharmony_ci      // Only record the GE bits.
1610b8021494Sopenharmony_ci      __ And(ge_bits, ge_bits, GEFlags);
1611b8021494Sopenharmony_ci      __ Str(ge_bits, MemOperand(result_ptr, offsetof(Inputs, ge)));
1612b8021494Sopenharmony_ci    }
1613b8021494Sopenharmony_ci    __ Str(rd, MemOperand(result_ptr, offsetof(Inputs, rd)));
1614b8021494Sopenharmony_ci    __ Str(rn, MemOperand(result_ptr, offsetof(Inputs, rn)));
1615b8021494Sopenharmony_ci    __ Str(rm, MemOperand(result_ptr, offsetof(Inputs, rm)));
1616b8021494Sopenharmony_ci
1617b8021494Sopenharmony_ci    // Advance the result pointer.
1618b8021494Sopenharmony_ci    __ Add(result_ptr, result_ptr, Operand::From(sizeof(kTests[i].inputs[0])));
1619b8021494Sopenharmony_ci    // Loop back until `input_ptr` is lower than `input_base`.
1620b8021494Sopenharmony_ci    __ Add(input_ptr, input_ptr, Operand::From(sizeof(kTests[i].inputs[0])));
1621b8021494Sopenharmony_ci    __ Cmp(input_ptr, input_end);
1622b8021494Sopenharmony_ci    __ B(ne, &loop);
1623b8021494Sopenharmony_ci  }
1624b8021494Sopenharmony_ci
1625b8021494Sopenharmony_ci  END();
1626b8021494Sopenharmony_ci
1627b8021494Sopenharmony_ci  RUN();
1628b8021494Sopenharmony_ci
1629b8021494Sopenharmony_ci  if (Test::generate_test_trace()) {
1630b8021494Sopenharmony_ci    // Print the results.
1631b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1632b8021494Sopenharmony_ci      printf("const Inputs kOutputs_%s_%s[] = {\n",
1633b8021494Sopenharmony_ci             mnemonic,
1634b8021494Sopenharmony_ci             kTests[i].identifier);
1635b8021494Sopenharmony_ci      for (size_t j = 0; j < results[i]->output_size; j++) {
1636b8021494Sopenharmony_ci        printf("  { ");
1637b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].apsr);
1638b8021494Sopenharmony_ci        printf(", ");
1639b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].qbit);
1640b8021494Sopenharmony_ci        printf(", ");
1641b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].ge);
1642b8021494Sopenharmony_ci        printf(", ");
1643b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].rd);
1644b8021494Sopenharmony_ci        printf(", ");
1645b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].rn);
1646b8021494Sopenharmony_ci        printf(", ");
1647b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].rm);
1648b8021494Sopenharmony_ci        printf(" },\n");
1649b8021494Sopenharmony_ci      }
1650b8021494Sopenharmony_ci      printf("};\n");
1651b8021494Sopenharmony_ci    }
1652b8021494Sopenharmony_ci    printf("const TestResult kReference%s[] = {\n", mnemonic);
1653b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1654b8021494Sopenharmony_ci      printf("  {\n");
1655b8021494Sopenharmony_ci      printf("    ARRAY_SIZE(kOutputs_%s_%s),\n",
1656b8021494Sopenharmony_ci             mnemonic,
1657b8021494Sopenharmony_ci             kTests[i].identifier);
1658b8021494Sopenharmony_ci      printf("    kOutputs_%s_%s,\n", mnemonic, kTests[i].identifier);
1659b8021494Sopenharmony_ci      printf("  },\n");
1660b8021494Sopenharmony_ci    }
1661b8021494Sopenharmony_ci    printf("};\n");
1662b8021494Sopenharmony_ci  } else if (kCheckSimulatorTestResults) {
1663b8021494Sopenharmony_ci    // Check the results.
1664b8021494Sopenharmony_ci    unsigned total_error_count = 0;
1665b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1666b8021494Sopenharmony_ci      bool instruction_has_errors = false;
1667b8021494Sopenharmony_ci      for (size_t j = 0; j < kTests[i].input_size; j++) {
1668b8021494Sopenharmony_ci        uint32_t apsr = results[i]->outputs[j].apsr;
1669b8021494Sopenharmony_ci        uint32_t qbit = results[i]->outputs[j].qbit;
1670b8021494Sopenharmony_ci        uint32_t ge = results[i]->outputs[j].ge;
1671b8021494Sopenharmony_ci        uint32_t rd = results[i]->outputs[j].rd;
1672b8021494Sopenharmony_ci        uint32_t rn = results[i]->outputs[j].rn;
1673b8021494Sopenharmony_ci        uint32_t rm = results[i]->outputs[j].rm;
1674b8021494Sopenharmony_ci        uint32_t apsr_input = kTests[i].inputs[j].apsr;
1675b8021494Sopenharmony_ci        uint32_t qbit_input = kTests[i].inputs[j].qbit;
1676b8021494Sopenharmony_ci        uint32_t ge_input = kTests[i].inputs[j].ge;
1677b8021494Sopenharmony_ci        uint32_t rd_input = kTests[i].inputs[j].rd;
1678b8021494Sopenharmony_ci        uint32_t rn_input = kTests[i].inputs[j].rn;
1679b8021494Sopenharmony_ci        uint32_t rm_input = kTests[i].inputs[j].rm;
1680b8021494Sopenharmony_ci        uint32_t apsr_ref = reference[i].outputs[j].apsr;
1681b8021494Sopenharmony_ci        uint32_t qbit_ref = reference[i].outputs[j].qbit;
1682b8021494Sopenharmony_ci        uint32_t ge_ref = reference[i].outputs[j].ge;
1683b8021494Sopenharmony_ci        uint32_t rd_ref = reference[i].outputs[j].rd;
1684b8021494Sopenharmony_ci        uint32_t rn_ref = reference[i].outputs[j].rn;
1685b8021494Sopenharmony_ci        uint32_t rm_ref = reference[i].outputs[j].rm;
1686b8021494Sopenharmony_ci
1687b8021494Sopenharmony_ci        if (((apsr != apsr_ref) || (qbit != qbit_ref) || (ge != ge_ref) ||
1688b8021494Sopenharmony_ci             (rd != rd_ref) || (rn != rn_ref) || (rm != rm_ref)) &&
1689b8021494Sopenharmony_ci            (++total_error_count <= kErrorReportLimit)) {
1690b8021494Sopenharmony_ci          // Print the instruction once even if it triggered multiple failures.
1691b8021494Sopenharmony_ci          if (!instruction_has_errors) {
1692b8021494Sopenharmony_ci            printf("Error(s) when testing \"%s %s\":\n",
1693b8021494Sopenharmony_ci                   mnemonic,
1694b8021494Sopenharmony_ci                   kTests[i].operands_description);
1695b8021494Sopenharmony_ci            instruction_has_errors = true;
1696b8021494Sopenharmony_ci          }
1697b8021494Sopenharmony_ci          // Print subsequent errors.
1698b8021494Sopenharmony_ci          printf("  Input:    ");
1699b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr_input);
1700b8021494Sopenharmony_ci          printf(", ");
1701b8021494Sopenharmony_ci          printf("0x%08" PRIx32, qbit_input);
1702b8021494Sopenharmony_ci          printf(", ");
1703b8021494Sopenharmony_ci          printf("0x%08" PRIx32, ge_input);
1704b8021494Sopenharmony_ci          printf(", ");
1705b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd_input);
1706b8021494Sopenharmony_ci          printf(", ");
1707b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rn_input);
1708b8021494Sopenharmony_ci          printf(", ");
1709b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rm_input);
1710b8021494Sopenharmony_ci          printf("\n");
1711b8021494Sopenharmony_ci          printf("  Expected: ");
1712b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr_ref);
1713b8021494Sopenharmony_ci          printf(", ");
1714b8021494Sopenharmony_ci          printf("0x%08" PRIx32, qbit_ref);
1715b8021494Sopenharmony_ci          printf(", ");
1716b8021494Sopenharmony_ci          printf("0x%08" PRIx32, ge_ref);
1717b8021494Sopenharmony_ci          printf(", ");
1718b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd_ref);
1719b8021494Sopenharmony_ci          printf(", ");
1720b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rn_ref);
1721b8021494Sopenharmony_ci          printf(", ");
1722b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rm_ref);
1723b8021494Sopenharmony_ci          printf("\n");
1724b8021494Sopenharmony_ci          printf("  Found:    ");
1725b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr);
1726b8021494Sopenharmony_ci          printf(", ");
1727b8021494Sopenharmony_ci          printf("0x%08" PRIx32, qbit);
1728b8021494Sopenharmony_ci          printf(", ");
1729b8021494Sopenharmony_ci          printf("0x%08" PRIx32, ge);
1730b8021494Sopenharmony_ci          printf(", ");
1731b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd);
1732b8021494Sopenharmony_ci          printf(", ");
1733b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rn);
1734b8021494Sopenharmony_ci          printf(", ");
1735b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rm);
1736b8021494Sopenharmony_ci          printf("\n\n");
1737b8021494Sopenharmony_ci        }
1738b8021494Sopenharmony_ci      }
1739b8021494Sopenharmony_ci    }
1740b8021494Sopenharmony_ci
1741b8021494Sopenharmony_ci    if (total_error_count > kErrorReportLimit) {
1742b8021494Sopenharmony_ci      printf("%u other errors follow.\n",
1743b8021494Sopenharmony_ci             total_error_count - kErrorReportLimit);
1744b8021494Sopenharmony_ci    }
1745b8021494Sopenharmony_ci    VIXL_CHECK(total_error_count == 0);
1746b8021494Sopenharmony_ci  } else {
1747b8021494Sopenharmony_ci    VIXL_WARNING("Assembled the code, but did not run anything.\n");
1748b8021494Sopenharmony_ci  }
1749b8021494Sopenharmony_ci
1750b8021494Sopenharmony_ci  for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1751b8021494Sopenharmony_ci    delete[] results[i]->outputs;
1752b8021494Sopenharmony_ci    delete results[i];
1753b8021494Sopenharmony_ci    delete[] scratch_memory_buffers[i];
1754b8021494Sopenharmony_ci  }
1755b8021494Sopenharmony_ci}
1756b8021494Sopenharmony_ci
1757b8021494Sopenharmony_ci// Instantiate tests for each instruction in the list.
1758b8021494Sopenharmony_ci// TODO: Remove this limitation by having a sandboxing mechanism.
1759b8021494Sopenharmony_ci#if defined(VIXL_HOST_POINTER_32)
1760b8021494Sopenharmony_ci#define TEST(mnemonic)                                                      \
1761b8021494Sopenharmony_ci  void Test_##mnemonic() {                                                  \
1762b8021494Sopenharmony_ci    TestHelper(&MacroAssembler::mnemonic, #mnemonic, kReference##mnemonic); \
1763b8021494Sopenharmony_ci  }                                                                         \
1764b8021494Sopenharmony_ci  Test test_##mnemonic("AARCH32_SIMULATOR_COND_RD_RN_RM_" #mnemonic "_T32", \
1765b8021494Sopenharmony_ci                       &Test_##mnemonic);
1766b8021494Sopenharmony_ci#else
1767b8021494Sopenharmony_ci#define TEST(mnemonic)                                                      \
1768b8021494Sopenharmony_ci  void Test_##mnemonic() {                                                  \
1769b8021494Sopenharmony_ci    VIXL_WARNING("This test can only run on a 32-bit host.\n");             \
1770b8021494Sopenharmony_ci    USE(TestHelper);                                                        \
1771b8021494Sopenharmony_ci  }                                                                         \
1772b8021494Sopenharmony_ci  Test test_##mnemonic("AARCH32_SIMULATOR_COND_RD_RN_RM_" #mnemonic "_T32", \
1773b8021494Sopenharmony_ci                       &Test_##mnemonic);
1774b8021494Sopenharmony_ci#endif
1775b8021494Sopenharmony_ci
1776b8021494Sopenharmony_ciFOREACH_INSTRUCTION(TEST)
1777b8021494Sopenharmony_ci#undef TEST
1778b8021494Sopenharmony_ci
1779b8021494Sopenharmony_ci}  // namespace
1780b8021494Sopenharmony_ci#endif
1781b8021494Sopenharmony_ci
1782b8021494Sopenharmony_ci}  // namespace aarch32
1783b8021494Sopenharmony_ci}  // namespace vixl
1784