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(Add)                       \
117b8021494Sopenharmony_ci  M(Adds)                      \
118b8021494Sopenharmony_ci  M(Rsb)                       \
119b8021494Sopenharmony_ci  M(Rsbs)                      \
120b8021494Sopenharmony_ci  M(Sub)                       \
121b8021494Sopenharmony_ci  M(Subs)
122b8021494Sopenharmony_ci
123b8021494Sopenharmony_ci
124b8021494Sopenharmony_ci// The following definitions are defined again in each generated test, therefore
125b8021494Sopenharmony_ci// we need to place them in an anonymous namespace. It expresses that they are
126b8021494Sopenharmony_ci// local to this file only, and the compiler is not allowed to share these types
127b8021494Sopenharmony_ci// across test files during template instantiation. Specifically, `Operands` and
128b8021494Sopenharmony_ci// `Inputs` have various layouts across generated tests so they absolutely
129b8021494Sopenharmony_ci// cannot be shared.
130b8021494Sopenharmony_ci
131b8021494Sopenharmony_ci#ifdef VIXL_INCLUDE_TARGET_T32
132b8021494Sopenharmony_cinamespace {
133b8021494Sopenharmony_ci
134b8021494Sopenharmony_ci// Values to be passed to the assembler to produce the instruction under test.
135b8021494Sopenharmony_cistruct Operands {
136b8021494Sopenharmony_ci  Condition cond;
137b8021494Sopenharmony_ci  Register rd;
138b8021494Sopenharmony_ci  Register rn;
139b8021494Sopenharmony_ci  int32_t immediate;
140b8021494Sopenharmony_ci};
141b8021494Sopenharmony_ci
142b8021494Sopenharmony_ci// Input data to feed to the instruction.
143b8021494Sopenharmony_cistruct Inputs {
144b8021494Sopenharmony_ci  uint32_t apsr;
145b8021494Sopenharmony_ci  uint32_t rd;
146b8021494Sopenharmony_ci  uint32_t rn;
147b8021494Sopenharmony_ci};
148b8021494Sopenharmony_ci
149b8021494Sopenharmony_ci// This structure contains all input data needed to test one specific encoding.
150b8021494Sopenharmony_ci// It used to generate a loop over an instruction.
151b8021494Sopenharmony_cistruct TestLoopData {
152b8021494Sopenharmony_ci  // The `operands` fields represents the values to pass to the assembler to
153b8021494Sopenharmony_ci  // produce the instruction.
154b8021494Sopenharmony_ci  Operands operands;
155b8021494Sopenharmony_ci  // Description of the operands, used for error reporting.
156b8021494Sopenharmony_ci  const char* operands_description;
157b8021494Sopenharmony_ci  // Unique identifier, used for generating traces.
158b8021494Sopenharmony_ci  const char* identifier;
159b8021494Sopenharmony_ci  // Array of values to be fed to the instruction.
160b8021494Sopenharmony_ci  size_t input_size;
161b8021494Sopenharmony_ci  const Inputs* inputs;
162b8021494Sopenharmony_ci};
163b8021494Sopenharmony_ci
164b8021494Sopenharmony_cistatic const Inputs kRdIsRn[] =
165b8021494Sopenharmony_ci    {{ZFlag, 0x00007fff, 0x00007fff},    {CFlag, 0xffffff83, 0xffffff83},
166b8021494Sopenharmony_ci     {NCFlag, 0x00000000, 0x00000000},   {NCVFlag, 0x00000000, 0x00000000},
167b8021494Sopenharmony_ci     {NZFlag, 0x00000000, 0x00000000},   {VFlag, 0x00000002, 0x00000002},
168b8021494Sopenharmony_ci     {NCFlag, 0xfffffffe, 0xfffffffe},   {NCVFlag, 0x00007ffd, 0x00007ffd},
169b8021494Sopenharmony_ci     {NZCVFlag, 0xffffffff, 0xffffffff}, {ZVFlag, 0xffffffff, 0xffffffff},
170b8021494Sopenharmony_ci     {CFlag, 0x00000002, 0x00000002},    {ZFlag, 0x80000001, 0x80000001},
171b8021494Sopenharmony_ci     {ZCFlag, 0x00007ffe, 0x00007ffe},   {ZVFlag, 0xffff8000, 0xffff8000},
172b8021494Sopenharmony_ci     {CFlag, 0x0000007e, 0x0000007e},    {ZFlag, 0xcccccccc, 0xcccccccc},
173b8021494Sopenharmony_ci     {NVFlag, 0xffff8000, 0xffff8000},   {CFlag, 0x00000001, 0x00000001},
174b8021494Sopenharmony_ci     {NFlag, 0x00000001, 0x00000001},    {NZFlag, 0xffffffe0, 0xffffffe0},
175b8021494Sopenharmony_ci     {CVFlag, 0xfffffffd, 0xfffffffd},   {ZVFlag, 0x00007ffe, 0x00007ffe},
176b8021494Sopenharmony_ci     {ZCVFlag, 0x55555555, 0x55555555},  {NCFlag, 0x00000020, 0x00000020},
177b8021494Sopenharmony_ci     {ZCFlag, 0xffffff81, 0xffffff81},   {ZCFlag, 0xcccccccc, 0xcccccccc},
178b8021494Sopenharmony_ci     {ZCFlag, 0x00000020, 0x00000020},   {NCVFlag, 0xffff8000, 0xffff8000},
179b8021494Sopenharmony_ci     {NZVFlag, 0xffff8001, 0xffff8001},  {ZVFlag, 0xffffff81, 0xffffff81},
180b8021494Sopenharmony_ci     {NZVFlag, 0xffffff81, 0xffffff81},  {NZVFlag, 0x00000000, 0x00000000},
181b8021494Sopenharmony_ci     {NVFlag, 0x00000001, 0x00000001},   {NCVFlag, 0x33333333, 0x33333333},
182b8021494Sopenharmony_ci     {NZCVFlag, 0xffff8001, 0xffff8001}, {NZCFlag, 0xffffffff, 0xffffffff},
183b8021494Sopenharmony_ci     {NCVFlag, 0x80000000, 0x80000000},  {ZCFlag, 0x00000001, 0x00000001},
184b8021494Sopenharmony_ci     {CVFlag, 0x00000020, 0x00000020},   {NCFlag, 0xffff8003, 0xffff8003},
185b8021494Sopenharmony_ci     {CVFlag, 0x00000002, 0x00000002},   {NZCFlag, 0x80000000, 0x80000000},
186b8021494Sopenharmony_ci     {VFlag, 0xffffff83, 0xffffff83},    {NZFlag, 0x33333333, 0x33333333},
187b8021494Sopenharmony_ci     {NCVFlag, 0x00007ffe, 0x00007ffe},  {NFlag, 0xffffff81, 0xffffff81},
188b8021494Sopenharmony_ci     {NZVFlag, 0x00000020, 0x00000020},  {CVFlag, 0x00007fff, 0x00007fff},
189b8021494Sopenharmony_ci     {NZCFlag, 0xffff8003, 0xffff8003},  {ZCFlag, 0xfffffffd, 0xfffffffd},
190b8021494Sopenharmony_ci     {NZFlag, 0xcccccccc, 0xcccccccc},   {ZCFlag, 0xffffffff, 0xffffffff},
191b8021494Sopenharmony_ci     {ZVFlag, 0xffffffe0, 0xffffffe0},   {ZCFlag, 0x55555555, 0x55555555},
192b8021494Sopenharmony_ci     {NVFlag, 0x00000020, 0x00000020},   {NFlag, 0xffff8000, 0xffff8000},
193b8021494Sopenharmony_ci     {ZFlag, 0x00000000, 0x00000000},    {VFlag, 0xffffffe0, 0xffffffe0},
194b8021494Sopenharmony_ci     {CFlag, 0xffff8001, 0xffff8001},    {NZCVFlag, 0xfffffffd, 0xfffffffd},
195b8021494Sopenharmony_ci     {NCVFlag, 0x0000007d, 0x0000007d},  {NCVFlag, 0x0000007f, 0x0000007f},
196b8021494Sopenharmony_ci     {NZFlag, 0xffff8003, 0xffff8003},   {ZCFlag, 0xffffff82, 0xffffff82},
197b8021494Sopenharmony_ci     {ZFlag, 0xffff8001, 0xffff8001},    {NZFlag, 0xffff8002, 0xffff8002},
198b8021494Sopenharmony_ci     {NZFlag, 0x00000020, 0x00000020},   {NCFlag, 0x33333333, 0x33333333},
199b8021494Sopenharmony_ci     {ZCVFlag, 0x80000000, 0x80000000},  {NZCFlag, 0xffffffe0, 0xffffffe0},
200b8021494Sopenharmony_ci     {NZFlag, 0x00007fff, 0x00007fff},   {NZVFlag, 0x00000002, 0x00000002},
201b8021494Sopenharmony_ci     {NFlag, 0x55555555, 0x55555555},    {NVFlag, 0xffffffff, 0xffffffff},
202b8021494Sopenharmony_ci     {NCFlag, 0x00007fff, 0x00007fff},   {NZCVFlag, 0xffffff81, 0xffffff81},
203b8021494Sopenharmony_ci     {ZCVFlag, 0x00007fff, 0x00007fff},  {NZFlag, 0x0000007d, 0x0000007d},
204b8021494Sopenharmony_ci     {VFlag, 0x00007ffe, 0x00007ffe},    {CVFlag, 0xffffff83, 0xffffff83},
205b8021494Sopenharmony_ci     {NZFlag, 0x80000000, 0x80000000},   {ZCFlag, 0xaaaaaaaa, 0xaaaaaaaa},
206b8021494Sopenharmony_ci     {NCFlag, 0x0000007f, 0x0000007f},   {CFlag, 0x00000020, 0x00000020},
207b8021494Sopenharmony_ci     {NZCFlag, 0x00000001, 0x00000001},  {NZCFlag, 0xcccccccc, 0xcccccccc},
208b8021494Sopenharmony_ci     {NZCFlag, 0xffffff80, 0xffffff80},  {NCVFlag, 0xffff8003, 0xffff8003},
209b8021494Sopenharmony_ci     {NFlag, 0x0000007d, 0x0000007d},    {NZVFlag, 0x55555555, 0x55555555},
210b8021494Sopenharmony_ci     {NZCVFlag, 0xfffffffe, 0xfffffffe}, {NCFlag, 0xffff8000, 0xffff8000},
211b8021494Sopenharmony_ci     {CFlag, 0x80000001, 0x80000001},    {NVFlag, 0xffffffe0, 0xffffffe0},
212b8021494Sopenharmony_ci     {CFlag, 0xffffff82, 0xffffff82},    {NZCVFlag, 0x00007ffd, 0x00007ffd},
213b8021494Sopenharmony_ci     {CFlag, 0xaaaaaaaa, 0xaaaaaaaa},    {NZCFlag, 0xffffff81, 0xffffff81},
214b8021494Sopenharmony_ci     {ZFlag, 0x00007ffd, 0x00007ffd},    {NZVFlag, 0xffffffe0, 0xffffffe0},
215b8021494Sopenharmony_ci     {NZVFlag, 0x00007ffe, 0x00007ffe},  {NZFlag, 0x7ffffffd, 0x7ffffffd},
216b8021494Sopenharmony_ci     {NZCFlag, 0xfffffffe, 0xfffffffe},  {NZCVFlag, 0x7ffffffd, 0x7ffffffd},
217b8021494Sopenharmony_ci     {ZVFlag, 0xaaaaaaaa, 0xaaaaaaaa},   {CFlag, 0x00000000, 0x00000000},
218b8021494Sopenharmony_ci     {ZCVFlag, 0xaaaaaaaa, 0xaaaaaaaa},  {NZFlag, 0x00007ffd, 0x00007ffd},
219b8021494Sopenharmony_ci     {VFlag, 0xffff8000, 0xffff8000},    {CVFlag, 0xcccccccc, 0xcccccccc},
220b8021494Sopenharmony_ci     {NZCVFlag, 0xffff8003, 0xffff8003}, {NVFlag, 0x00007ffe, 0x00007ffe},
221b8021494Sopenharmony_ci     {ZVFlag, 0xfffffffd, 0xfffffffd},   {NZCFlag, 0x0000007e, 0x0000007e},
222b8021494Sopenharmony_ci     {VFlag, 0x00000000, 0x00000000},    {NZFlag, 0x00000002, 0x00000002},
223b8021494Sopenharmony_ci     {ZCFlag, 0x7fffffff, 0x7fffffff},   {ZFlag, 0x0000007e, 0x0000007e},
224b8021494Sopenharmony_ci     {NZCFlag, 0x7fffffff, 0x7fffffff},  {ZVFlag, 0xffff8002, 0xffff8002},
225b8021494Sopenharmony_ci     {ZFlag, 0x00000020, 0x00000020},    {NZFlag, 0xffffff81, 0xffffff81},
226b8021494Sopenharmony_ci     {ZCVFlag, 0x00000000, 0x00000000},  {CFlag, 0xffffff81, 0xffffff81},
227b8021494Sopenharmony_ci     {NVFlag, 0x0000007e, 0x0000007e},   {NZFlag, 0x55555555, 0x55555555},
228b8021494Sopenharmony_ci     {CFlag, 0x0000007d, 0x0000007d},    {NCFlag, 0x7fffffff, 0x7fffffff},
229b8021494Sopenharmony_ci     {NCFlag, 0xffff8001, 0xffff8001},   {CFlag, 0xffffffe0, 0xffffffe0},
230b8021494Sopenharmony_ci     {ZVFlag, 0x7ffffffe, 0x7ffffffe},   {VFlag, 0x7ffffffd, 0x7ffffffd},
231b8021494Sopenharmony_ci     {CFlag, 0xffffffff, 0xffffffff},    {ZCFlag, 0xffff8000, 0xffff8000},
232b8021494Sopenharmony_ci     {NZVFlag, 0xffff8003, 0xffff8003},  {NCFlag, 0x0000007d, 0x0000007d},
233b8021494Sopenharmony_ci     {NZVFlag, 0x0000007f, 0x0000007f},  {CFlag, 0xcccccccc, 0xcccccccc},
234b8021494Sopenharmony_ci     {CVFlag, 0x00000001, 0x00000001},   {NZCFlag, 0xffff8001, 0xffff8001},
235b8021494Sopenharmony_ci     {NCVFlag, 0x00000020, 0x00000020},  {NZVFlag, 0xffffff82, 0xffffff82},
236b8021494Sopenharmony_ci     {NCFlag, 0x00007ffd, 0x00007ffd},   {ZVFlag, 0x0000007e, 0x0000007e},
237b8021494Sopenharmony_ci     {NZFlag, 0x80000001, 0x80000001},   {NVFlag, 0x7ffffffe, 0x7ffffffe},
238b8021494Sopenharmony_ci     {NZCVFlag, 0x00000000, 0x00000000}, {CVFlag, 0x55555555, 0x55555555},
239b8021494Sopenharmony_ci     {ZVFlag, 0x00000020, 0x00000020},   {VFlag, 0x00000020, 0x00000020},
240b8021494Sopenharmony_ci     {NFlag, 0xcccccccc, 0xcccccccc},    {NVFlag, 0x0000007d, 0x0000007d},
241b8021494Sopenharmony_ci     {CVFlag, 0x0000007f, 0x0000007f},   {NZCFlag, 0x00000002, 0x00000002},
242b8021494Sopenharmony_ci     {NZCFlag, 0x00007fff, 0x00007fff},  {NZVFlag, 0x0000007d, 0x0000007d},
243b8021494Sopenharmony_ci     {NZVFlag, 0xfffffffd, 0xfffffffd},  {NFlag, 0x00000002, 0x00000002},
244b8021494Sopenharmony_ci     {NZCVFlag, 0x0000007d, 0x0000007d}, {NVFlag, 0xffffff82, 0xffffff82},
245b8021494Sopenharmony_ci     {VFlag, 0x00007fff, 0x00007fff},    {NZCVFlag, 0x00000001, 0x00000001},
246b8021494Sopenharmony_ci     {ZFlag, 0xaaaaaaaa, 0xaaaaaaaa},    {CVFlag, 0xffff8002, 0xffff8002},
247b8021494Sopenharmony_ci     {NFlag, 0x7fffffff, 0x7fffffff},    {NCVFlag, 0xffffff80, 0xffffff80},
248b8021494Sopenharmony_ci     {ZFlag, 0x33333333, 0x33333333},    {NZFlag, 0x00000001, 0x00000001},
249b8021494Sopenharmony_ci     {NCVFlag, 0x7ffffffe, 0x7ffffffe},  {VFlag, 0x00000001, 0x00000001},
250b8021494Sopenharmony_ci     {ZCFlag, 0x0000007f, 0x0000007f},   {ZVFlag, 0x80000001, 0x80000001},
251b8021494Sopenharmony_ci     {ZVFlag, 0xffff8003, 0xffff8003},   {NCVFlag, 0xaaaaaaaa, 0xaaaaaaaa},
252b8021494Sopenharmony_ci     {NZCVFlag, 0xffffffe0, 0xffffffe0}, {VFlag, 0x33333333, 0x33333333},
253b8021494Sopenharmony_ci     {NCFlag, 0xffffff80, 0xffffff80},   {ZFlag, 0x00007ffe, 0x00007ffe},
254b8021494Sopenharmony_ci     {NVFlag, 0x00000000, 0x00000000},   {NZCFlag, 0x00007ffd, 0x00007ffd},
255b8021494Sopenharmony_ci     {NZFlag, 0xfffffffd, 0xfffffffd},   {VFlag, 0xffffffff, 0xffffffff},
256b8021494Sopenharmony_ci     {NZCFlag, 0xffffff83, 0xffffff83},  {NZVFlag, 0xffff8002, 0xffff8002},
257b8021494Sopenharmony_ci     {NZCVFlag, 0x33333333, 0x33333333}, {ZCVFlag, 0xfffffffd, 0xfffffffd},
258b8021494Sopenharmony_ci     {ZCFlag, 0x80000001, 0x80000001},   {NCFlag, 0x00007ffe, 0x00007ffe},
259b8021494Sopenharmony_ci     {NFlag, 0xfffffffd, 0xfffffffd},    {NZCVFlag, 0x7fffffff, 0x7fffffff},
260b8021494Sopenharmony_ci     {VFlag, 0xffff8001, 0xffff8001},    {NZVFlag, 0xffff8000, 0xffff8000},
261b8021494Sopenharmony_ci     {ZCVFlag, 0xcccccccc, 0xcccccccc},  {VFlag, 0x7ffffffe, 0x7ffffffe},
262b8021494Sopenharmony_ci     {ZFlag, 0xffff8002, 0xffff8002},    {ZCFlag, 0x0000007d, 0x0000007d},
263b8021494Sopenharmony_ci     {NZCVFlag, 0xffffff83, 0xffffff83}, {ZVFlag, 0x00000001, 0x00000001},
264b8021494Sopenharmony_ci     {NZCVFlag, 0xffff8002, 0xffff8002}, {ZCFlag, 0xffffff83, 0xffffff83},
265b8021494Sopenharmony_ci     {CFlag, 0xffff8003, 0xffff8003},    {NCVFlag, 0xffffffff, 0xffffffff},
266b8021494Sopenharmony_ci     {CFlag, 0xfffffffe, 0xfffffffe},    {NZFlag, 0xffffff80, 0xffffff80},
267b8021494Sopenharmony_ci     {CVFlag, 0x00007ffd, 0x00007ffd},   {ZCVFlag, 0x0000007d, 0x0000007d},
268b8021494Sopenharmony_ci     {ZVFlag, 0xcccccccc, 0xcccccccc},   {NVFlag, 0x00007ffd, 0x00007ffd},
269b8021494Sopenharmony_ci     {NZFlag, 0xaaaaaaaa, 0xaaaaaaaa},   {ZFlag, 0x0000007f, 0x0000007f},
270b8021494Sopenharmony_ci     {CVFlag, 0xffff8003, 0xffff8003},   {ZFlag, 0xffffffe0, 0xffffffe0},
271b8021494Sopenharmony_ci     {NZVFlag, 0xcccccccc, 0xcccccccc},  {NFlag, 0x00007ffe, 0x00007ffe},
272b8021494Sopenharmony_ci     {NFlag, 0xffff8003, 0xffff8003},    {NZVFlag, 0xffffffff, 0xffffffff},
273b8021494Sopenharmony_ci     {CFlag, 0x00007fff, 0x00007fff},    {NCVFlag, 0x7fffffff, 0x7fffffff},
274b8021494Sopenharmony_ci     {CFlag, 0x33333333, 0x33333333},    {ZCFlag, 0x80000000, 0x80000000},
275b8021494Sopenharmony_ci     {ZCFlag, 0x0000007e, 0x0000007e},   {NVFlag, 0x7fffffff, 0x7fffffff},
276b8021494Sopenharmony_ci     {NZFlag, 0x7ffffffe, 0x7ffffffe},   {CFlag, 0xffff8002, 0xffff8002},
277b8021494Sopenharmony_ci     {NCFlag, 0x80000000, 0x80000000},   {VFlag, 0x7fffffff, 0x7fffffff},
278b8021494Sopenharmony_ci     {NZFlag, 0xffffffff, 0xffffffff},   {NFlag, 0x7ffffffd, 0x7ffffffd},
279b8021494Sopenharmony_ci     {ZFlag, 0x00000002, 0x00000002},    {ZCVFlag, 0xffff8003, 0xffff8003},
280b8021494Sopenharmony_ci     {CFlag, 0x7fffffff, 0x7fffffff},    {CFlag, 0x0000007f, 0x0000007f},
281b8021494Sopenharmony_ci     {VFlag, 0x80000001, 0x80000001},    {ZCFlag, 0x00007fff, 0x00007fff},
282b8021494Sopenharmony_ci     {CFlag, 0xfffffffd, 0xfffffffd},    {NZFlag, 0x7fffffff, 0x7fffffff},
283b8021494Sopenharmony_ci     {CVFlag, 0xffff8001, 0xffff8001},   {NZVFlag, 0x00007fff, 0x00007fff},
284b8021494Sopenharmony_ci     {NZVFlag, 0x7ffffffe, 0x7ffffffe},  {ZCVFlag, 0x0000007e, 0x0000007e},
285b8021494Sopenharmony_ci     {NZVFlag, 0x00000001, 0x00000001},  {ZFlag, 0xffffffff, 0xffffffff},
286b8021494Sopenharmony_ci     {NZFlag, 0xfffffffe, 0xfffffffe},   {NZCVFlag, 0x0000007f, 0x0000007f},
287b8021494Sopenharmony_ci     {NZCVFlag, 0x80000000, 0x80000000}, {VFlag, 0x55555555, 0x55555555},
288b8021494Sopenharmony_ci     {NVFlag, 0xffff8001, 0xffff8001},   {NFlag, 0xffffff83, 0xffffff83},
289b8021494Sopenharmony_ci     {NZVFlag, 0x7ffffffd, 0x7ffffffd},  {ZVFlag, 0x00000000, 0x00000000},
290b8021494Sopenharmony_ci     {NCVFlag, 0xfffffffd, 0xfffffffd},  {CFlag, 0x00007ffe, 0x00007ffe},
291b8021494Sopenharmony_ci     {NVFlag, 0xffffff83, 0xffffff83},   {NZFlag, 0x0000007e, 0x0000007e},
292b8021494Sopenharmony_ci     {VFlag, 0x80000000, 0x80000000},    {NZCFlag, 0xffff8000, 0xffff8000},
293b8021494Sopenharmony_ci     {ZCFlag, 0xffff8001, 0xffff8001},   {NVFlag, 0x00007fff, 0x00007fff},
294b8021494Sopenharmony_ci     {ZCVFlag, 0xffffff81, 0xffffff81},  {NZVFlag, 0x0000007e, 0x0000007e},
295b8021494Sopenharmony_ci     {CVFlag, 0xffff8000, 0xffff8000},   {VFlag, 0xffffff82, 0xffffff82},
296b8021494Sopenharmony_ci     {VFlag, 0xaaaaaaaa, 0xaaaaaaaa},    {NZCVFlag, 0xcccccccc, 0xcccccccc},
297b8021494Sopenharmony_ci     {CVFlag, 0x33333333, 0x33333333},   {NCFlag, 0xffffffff, 0xffffffff},
298b8021494Sopenharmony_ci     {VFlag, 0xffffff80, 0xffffff80},    {NVFlag, 0xffff8002, 0xffff8002},
299b8021494Sopenharmony_ci     {ZCFlag, 0x00000000, 0x00000000},   {ZCVFlag, 0x80000001, 0x80000001},
300b8021494Sopenharmony_ci     {NZCVFlag, 0x80000001, 0x80000001}, {NCFlag, 0x55555555, 0x55555555},
301b8021494Sopenharmony_ci     {CVFlag, 0x7ffffffe, 0x7ffffffe},   {ZVFlag, 0x7ffffffd, 0x7ffffffd},
302b8021494Sopenharmony_ci     {ZCVFlag, 0xffff8000, 0xffff8000},  {ZCFlag, 0xffff8002, 0xffff8002},
303b8021494Sopenharmony_ci     {NFlag, 0xfffffffe, 0xfffffffe},    {ZCVFlag, 0x0000007f, 0x0000007f},
304b8021494Sopenharmony_ci     {NCVFlag, 0xfffffffe, 0xfffffffe},  {ZCVFlag, 0x7fffffff, 0x7fffffff},
305b8021494Sopenharmony_ci     {CVFlag, 0x0000007e, 0x0000007e},   {NZCVFlag, 0x7ffffffe, 0x7ffffffe},
306b8021494Sopenharmony_ci     {CFlag, 0xffffff80, 0xffffff80},    {VFlag, 0x00007ffd, 0x00007ffd},
307b8021494Sopenharmony_ci     {CVFlag, 0xffffffe0, 0xffffffe0},   {CFlag, 0x7ffffffe, 0x7ffffffe},
308b8021494Sopenharmony_ci     {CFlag, 0x80000000, 0x80000000},    {CVFlag, 0xfffffffe, 0xfffffffe},
309b8021494Sopenharmony_ci     {NCVFlag, 0xffff8002, 0xffff8002},  {ZCVFlag, 0x33333333, 0x33333333},
310b8021494Sopenharmony_ci     {NZCFlag, 0xaaaaaaaa, 0xaaaaaaaa},  {NVFlag, 0x55555555, 0x55555555},
311b8021494Sopenharmony_ci     {NVFlag, 0x80000000, 0x80000000},   {NZCVFlag, 0x00007ffe, 0x00007ffe},
312b8021494Sopenharmony_ci     {ZFlag, 0xffffff83, 0xffffff83},    {NCFlag, 0xaaaaaaaa, 0xaaaaaaaa},
313b8021494Sopenharmony_ci     {NZVFlag, 0xfffffffe, 0xfffffffe},  {CVFlag, 0xaaaaaaaa, 0xaaaaaaaa},
314b8021494Sopenharmony_ci     {NZCFlag, 0xffff8002, 0xffff8002},  {VFlag, 0x0000007d, 0x0000007d}};
315b8021494Sopenharmony_ci
316b8021494Sopenharmony_cistatic const Inputs kRdIsNotRn[] =
317b8021494Sopenharmony_ci    {{NZCVFlag, 0xffff8000, 0xffffffff}, {CVFlag, 0xcccccccc, 0xffffff80},
318b8021494Sopenharmony_ci     {NCFlag, 0xfffffffe, 0xfffffffd},   {NCFlag, 0xcccccccc, 0xcccccccc},
319b8021494Sopenharmony_ci     {ZFlag, 0x80000001, 0xffffffff},    {NCFlag, 0xffffff82, 0x0000007d},
320b8021494Sopenharmony_ci     {NCVFlag, 0x0000007d, 0xffff8001},  {NVFlag, 0x00007fff, 0x7fffffff},
321b8021494Sopenharmony_ci     {NVFlag, 0x80000001, 0xffffff82},   {ZCVFlag, 0xffffffff, 0x0000007e},
322b8021494Sopenharmony_ci     {ZCVFlag, 0xffffff80, 0x0000007d},  {ZCVFlag, 0x00000020, 0xaaaaaaaa},
323b8021494Sopenharmony_ci     {CVFlag, 0x00007fff, 0x00000020},   {NVFlag, 0xffff8000, 0xffffff82},
324b8021494Sopenharmony_ci     {NZFlag, 0xffffff82, 0x7ffffffe},   {NZVFlag, 0xffff8003, 0x33333333},
325b8021494Sopenharmony_ci     {ZCVFlag, 0x00007ffe, 0x7ffffffe},  {NFlag, 0x0000007f, 0xffffffff},
326b8021494Sopenharmony_ci     {NZCFlag, 0x33333333, 0x80000000},  {ZCFlag, 0x80000001, 0xffffffff},
327b8021494Sopenharmony_ci     {VFlag, 0x00007ffd, 0x00000001},    {ZVFlag, 0xffffffff, 0x0000007e},
328b8021494Sopenharmony_ci     {NZFlag, 0x00000001, 0xcccccccc},   {NZVFlag, 0x00000020, 0xffff8001},
329b8021494Sopenharmony_ci     {NCVFlag, 0x7ffffffe, 0xffffff80},  {ZCFlag, 0x33333333, 0x00007fff},
330b8021494Sopenharmony_ci     {CFlag, 0xffffff82, 0x0000007e},    {ZCFlag, 0x55555555, 0xffff8003},
331b8021494Sopenharmony_ci     {NFlag, 0x0000007f, 0x00000001},    {ZCVFlag, 0x00000020, 0xfffffffd},
332b8021494Sopenharmony_ci     {ZVFlag, 0x0000007e, 0xffff8003},   {ZCVFlag, 0x00000020, 0x80000001},
333b8021494Sopenharmony_ci     {ZCFlag, 0xfffffffe, 0x55555555},   {NFlag, 0xfffffffd, 0xfffffffe},
334b8021494Sopenharmony_ci     {VFlag, 0xffffff82, 0x7ffffffe},    {CVFlag, 0xffffff80, 0x0000007f},
335b8021494Sopenharmony_ci     {NVFlag, 0x00000020, 0xffff8001},   {NCFlag, 0x0000007d, 0x80000000},
336b8021494Sopenharmony_ci     {CVFlag, 0x00000020, 0xffffff83},   {NZCVFlag, 0x0000007f, 0x00000000},
337b8021494Sopenharmony_ci     {ZVFlag, 0xffffff82, 0x7ffffffd},   {ZVFlag, 0xffff8000, 0x80000001},
338b8021494Sopenharmony_ci     {NFlag, 0xcccccccc, 0x0000007e},    {NFlag, 0x55555555, 0xffffff80},
339b8021494Sopenharmony_ci     {NCFlag, 0x80000000, 0x00007ffd},   {ZVFlag, 0x00007ffd, 0x00007ffe},
340b8021494Sopenharmony_ci     {ZCVFlag, 0x00000000, 0x7ffffffe},  {ZFlag, 0xffff8001, 0xffffffff},
341b8021494Sopenharmony_ci     {NCFlag, 0xfffffffe, 0x55555555},   {VFlag, 0x7ffffffd, 0x80000001},
342b8021494Sopenharmony_ci     {VFlag, 0x80000000, 0xffffffff},    {CFlag, 0xffffff82, 0xffffff80},
343b8021494Sopenharmony_ci     {NZCFlag, 0xffff8003, 0xfffffffd},  {CFlag, 0x00000020, 0x00007fff},
344b8021494Sopenharmony_ci     {NZVFlag, 0xffff8002, 0xfffffffe},  {NVFlag, 0xffffff80, 0x0000007e},
345b8021494Sopenharmony_ci     {NVFlag, 0xcccccccc, 0x0000007d},   {CFlag, 0x0000007f, 0x00000001},
346b8021494Sopenharmony_ci     {ZVFlag, 0xffff8002, 0xffffff81},   {NZVFlag, 0x80000000, 0x00007ffe},
347b8021494Sopenharmony_ci     {NZCVFlag, 0x80000000, 0x7ffffffe}, {ZVFlag, 0x7ffffffe, 0x80000000},
348b8021494Sopenharmony_ci     {ZFlag, 0xffff8000, 0xffffff80},    {VFlag, 0x00007ffd, 0x00007ffd},
349b8021494Sopenharmony_ci     {ZCFlag, 0x0000007d, 0x0000007e},   {NCFlag, 0x00000000, 0x7ffffffe},
350b8021494Sopenharmony_ci     {NVFlag, 0x00000020, 0xaaaaaaaa},   {NVFlag, 0xffffff83, 0x0000007e},
351b8021494Sopenharmony_ci     {NZFlag, 0xffff8002, 0x7ffffffd},   {CVFlag, 0xcccccccc, 0x00000001},
352b8021494Sopenharmony_ci     {NZFlag, 0x33333333, 0x0000007e},   {NZCFlag, 0x00000002, 0x7ffffffd},
353b8021494Sopenharmony_ci     {NZFlag, 0x00007ffd, 0xffffff80},   {ZVFlag, 0x00007ffd, 0xfffffffe},
354b8021494Sopenharmony_ci     {NZCVFlag, 0xffff8000, 0x80000000}, {NZFlag, 0xffff8002, 0xffffffff},
355b8021494Sopenharmony_ci     {CFlag, 0x00000002, 0xffff8000},    {NZCFlag, 0x0000007d, 0xffffff80},
356b8021494Sopenharmony_ci     {ZVFlag, 0x0000007d, 0xffff8003},   {VFlag, 0x55555555, 0xffff8000},
357b8021494Sopenharmony_ci     {CFlag, 0x00007fff, 0x00000001},    {VFlag, 0x80000001, 0x33333333},
358b8021494Sopenharmony_ci     {ZCFlag, 0xaaaaaaaa, 0xffffff82},   {VFlag, 0x00000002, 0x00007ffd},
359b8021494Sopenharmony_ci     {ZVFlag, 0x7ffffffe, 0xffff8001},   {ZCFlag, 0x7fffffff, 0x00000000},
360b8021494Sopenharmony_ci     {CVFlag, 0x55555555, 0x0000007e},   {VFlag, 0x55555555, 0x0000007e},
361b8021494Sopenharmony_ci     {NZCVFlag, 0x80000000, 0x7ffffffd}, {ZFlag, 0x0000007d, 0x00000000},
362b8021494Sopenharmony_ci     {NZVFlag, 0xffffff80, 0x00000002},  {NVFlag, 0xfffffffd, 0x00000001},
363b8021494Sopenharmony_ci     {ZVFlag, 0x7ffffffd, 0xfffffffd},   {VFlag, 0xffff8002, 0x55555555},
364b8021494Sopenharmony_ci     {ZCVFlag, 0x00000001, 0xffff8002},  {NVFlag, 0xffff8002, 0x00000020},
365b8021494Sopenharmony_ci     {ZFlag, 0x33333333, 0xffff8002},    {ZCVFlag, 0x55555555, 0xffffff82},
366b8021494Sopenharmony_ci     {CVFlag, 0x7ffffffe, 0xffffffe0},   {NVFlag, 0xcccccccc, 0x00007ffd},
367b8021494Sopenharmony_ci     {NZFlag, 0x00000001, 0x0000007f},   {ZFlag, 0xfffffffe, 0x00007fff},
368b8021494Sopenharmony_ci     {NCVFlag, 0x80000001, 0xffffff83},  {NCVFlag, 0xaaaaaaaa, 0xffff8002},
369b8021494Sopenharmony_ci     {ZVFlag, 0x00007fff, 0xffff8000},   {ZFlag, 0xffff8001, 0xfffffffd},
370b8021494Sopenharmony_ci     {CFlag, 0x55555555, 0x80000000},    {ZCVFlag, 0xcccccccc, 0xfffffffe},
371b8021494Sopenharmony_ci     {NZCVFlag, 0xffff8003, 0x7fffffff}, {NZCVFlag, 0x00007ffe, 0xffffff81},
372b8021494Sopenharmony_ci     {NZCFlag, 0xfffffffd, 0xaaaaaaaa},  {NVFlag, 0x00000002, 0x00000020},
373b8021494Sopenharmony_ci     {ZCVFlag, 0xffff8003, 0xfffffffd},  {NFlag, 0xffff8001, 0x00007ffe},
374b8021494Sopenharmony_ci     {ZCFlag, 0xaaaaaaaa, 0x00000002},   {NCVFlag, 0xffff8000, 0xfffffffe},
375b8021494Sopenharmony_ci     {CFlag, 0x00000020, 0x00000000},    {NZVFlag, 0x00007ffd, 0xffffff81},
376b8021494Sopenharmony_ci     {NVFlag, 0x00007fff, 0x00000020},   {ZFlag, 0x0000007e, 0x80000001},
377b8021494Sopenharmony_ci     {CVFlag, 0x0000007d, 0xaaaaaaaa},   {NZVFlag, 0x7fffffff, 0x55555555},
378b8021494Sopenharmony_ci     {VFlag, 0xffffffff, 0x00007ffd},    {NFlag, 0x80000000, 0xffffffe0},
379b8021494Sopenharmony_ci     {ZVFlag, 0xffffff82, 0xfffffffe},   {CVFlag, 0x0000007d, 0x00007fff},
380b8021494Sopenharmony_ci     {CFlag, 0x7ffffffe, 0x55555555},    {ZFlag, 0xffffff82, 0x7fffffff},
381b8021494Sopenharmony_ci     {NZCFlag, 0xfffffffd, 0xffffff83},  {CVFlag, 0x80000001, 0x80000000},
382b8021494Sopenharmony_ci     {ZVFlag, 0x00000001, 0xfffffffe},   {CVFlag, 0x00000001, 0x33333333},
383b8021494Sopenharmony_ci     {NZFlag, 0x7ffffffd, 0x80000000},   {NZVFlag, 0x00007ffd, 0xaaaaaaaa},
384b8021494Sopenharmony_ci     {CVFlag, 0x0000007e, 0xffffff82},   {CVFlag, 0x7ffffffe, 0xffff8002},
385b8021494Sopenharmony_ci     {NVFlag, 0xfffffffe, 0xffff8003},   {NFlag, 0x7fffffff, 0x80000001},
386b8021494Sopenharmony_ci     {CFlag, 0xffffff82, 0x00000002},    {CVFlag, 0xcccccccc, 0x0000007e},
387b8021494Sopenharmony_ci     {NZCVFlag, 0x00000001, 0x7ffffffe}, {NFlag, 0x00000000, 0x55555555},
388b8021494Sopenharmony_ci     {NZFlag, 0xffffff81, 0x00000000},   {NZVFlag, 0xffffffe0, 0x0000007e},
389b8021494Sopenharmony_ci     {ZCFlag, 0xffff8002, 0xaaaaaaaa},   {NZVFlag, 0x7fffffff, 0x0000007d},
390b8021494Sopenharmony_ci     {ZVFlag, 0x0000007e, 0xffff8001},   {NCVFlag, 0xffffff83, 0xaaaaaaaa},
391b8021494Sopenharmony_ci     {ZFlag, 0xffffff82, 0xffffff83},    {VFlag, 0x00000001, 0x55555555},
392b8021494Sopenharmony_ci     {NFlag, 0x00000020, 0x80000000},    {NZFlag, 0x00000000, 0xfffffffe},
393b8021494Sopenharmony_ci     {VFlag, 0xffffff83, 0xaaaaaaaa},    {ZFlag, 0xffff8002, 0xffffff83},
394b8021494Sopenharmony_ci     {NZVFlag, 0xcccccccc, 0x7ffffffe},  {ZVFlag, 0x00000000, 0x55555555},
395b8021494Sopenharmony_ci     {NCFlag, 0x33333333, 0xffff8003},   {NZCVFlag, 0xfffffffd, 0x00000000},
396b8021494Sopenharmony_ci     {NZCVFlag, 0x00000020, 0xffff8000}, {CVFlag, 0xffff8001, 0xffffff83},
397b8021494Sopenharmony_ci     {CFlag, 0xffffff83, 0x33333333},    {CVFlag, 0x7ffffffd, 0x00000020},
398b8021494Sopenharmony_ci     {NCVFlag, 0xffffffe0, 0x80000000},  {NCVFlag, 0xffffff82, 0xcccccccc},
399b8021494Sopenharmony_ci     {NZCVFlag, 0xaaaaaaaa, 0x00007fff}, {VFlag, 0xcccccccc, 0xffff8003},
400b8021494Sopenharmony_ci     {ZCVFlag, 0x55555555, 0xffffffe0},  {NZCFlag, 0xffffff83, 0xffff8000},
401b8021494Sopenharmony_ci     {ZVFlag, 0xffff8001, 0x0000007d},   {CVFlag, 0xffffff83, 0x00000002},
402b8021494Sopenharmony_ci     {NVFlag, 0x7fffffff, 0x0000007d},   {VFlag, 0x55555555, 0x33333333},
403b8021494Sopenharmony_ci     {NCVFlag, 0x00000002, 0xffffff80},  {ZFlag, 0xfffffffd, 0x00007fff},
404b8021494Sopenharmony_ci     {ZCFlag, 0xffff8003, 0x0000007d},   {NZCFlag, 0xffff8002, 0xffff8000},
405b8021494Sopenharmony_ci     {NCVFlag, 0x00000020, 0xffff8002},  {ZVFlag, 0xffff8000, 0x00000020},
406b8021494Sopenharmony_ci     {ZCVFlag, 0x0000007f, 0xffffffe0},  {NZCFlag, 0xffffff80, 0x33333333},
407b8021494Sopenharmony_ci     {NCVFlag, 0x00007fff, 0xaaaaaaaa},  {ZCVFlag, 0x00000020, 0xffffff82},
408b8021494Sopenharmony_ci     {NFlag, 0x00000000, 0x0000007d},    {NCVFlag, 0x00000001, 0x00007ffe},
409b8021494Sopenharmony_ci     {ZFlag, 0x80000001, 0x00000002},    {NZVFlag, 0xffff8000, 0x00000020},
410b8021494Sopenharmony_ci     {CVFlag, 0xffff8002, 0xcccccccc},   {NVFlag, 0xffffff83, 0x80000000},
411b8021494Sopenharmony_ci     {ZCFlag, 0x0000007f, 0xffffff80},   {NZFlag, 0xcccccccc, 0xffffffff},
412b8021494Sopenharmony_ci     {NZFlag, 0x00007fff, 0x0000007f},   {NZFlag, 0xfffffffd, 0xffff8001},
413b8021494Sopenharmony_ci     {CFlag, 0x0000007d, 0x7ffffffd},    {ZCFlag, 0xffff8000, 0xffff8003},
414b8021494Sopenharmony_ci     {ZVFlag, 0xffffffff, 0xffffffe0},   {NZCFlag, 0x00007ffd, 0xcccccccc},
415b8021494Sopenharmony_ci     {NCVFlag, 0x0000007d, 0x00000020},  {ZCFlag, 0xaaaaaaaa, 0x80000000},
416b8021494Sopenharmony_ci     {ZCVFlag, 0xfffffffd, 0x0000007d},  {ZFlag, 0xffffffe0, 0xfffffffe},
417b8021494Sopenharmony_ci     {VFlag, 0xffff8003, 0x80000000},    {NZCFlag, 0x00007fff, 0xffffff82},
418b8021494Sopenharmony_ci     {NCVFlag, 0x00000002, 0x33333333},  {NZCVFlag, 0x00000000, 0xffffff82},
419b8021494Sopenharmony_ci     {VFlag, 0x80000000, 0x80000000},    {ZVFlag, 0x80000001, 0x33333333},
420b8021494Sopenharmony_ci     {ZFlag, 0x7ffffffe, 0x00007fff},    {NZCVFlag, 0x7fffffff, 0x00007fff},
421b8021494Sopenharmony_ci     {ZCFlag, 0xffffff83, 0xaaaaaaaa},   {NZVFlag, 0xffff8002, 0xffffffe0},
422b8021494Sopenharmony_ci     {VFlag, 0xfffffffd, 0xffffff81},    {NZFlag, 0x7fffffff, 0x7ffffffd},
423b8021494Sopenharmony_ci     {NZCVFlag, 0x0000007f, 0xcccccccc}, {NZCFlag, 0xffff8001, 0x00000020},
424b8021494Sopenharmony_ci     {ZFlag, 0x00000020, 0xffff8002},    {ZVFlag, 0x55555555, 0x00007ffd},
425b8021494Sopenharmony_ci     {NZVFlag, 0xcccccccc, 0x33333333},  {CFlag, 0x80000000, 0x80000000},
426b8021494Sopenharmony_ci     {ZCVFlag, 0xcccccccc, 0x00007ffd},  {ZFlag, 0xffff8002, 0xffffff80},
427b8021494Sopenharmony_ci     {CVFlag, 0x7ffffffd, 0xffffff80},   {NZCVFlag, 0x00000001, 0x00000001},
428b8021494Sopenharmony_ci     {NFlag, 0xfffffffe, 0xffffffe0},    {ZVFlag, 0x0000007e, 0x0000007f},
429b8021494Sopenharmony_ci     {NCVFlag, 0xffff8002, 0xffff8002},  {ZCVFlag, 0xffffff82, 0x80000001},
430b8021494Sopenharmony_ci     {CVFlag, 0x0000007d, 0x0000007d},   {NZVFlag, 0xcccccccc, 0xffffff83},
431b8021494Sopenharmony_ci     {VFlag, 0xffffff82, 0xfffffffd},    {CFlag, 0x0000007d, 0x0000007f},
432b8021494Sopenharmony_ci     {NFlag, 0x0000007d, 0x00000001},    {NVFlag, 0x00007ffd, 0xfffffffe},
433b8021494Sopenharmony_ci     {NZVFlag, 0x33333333, 0xffffff80},  {NVFlag, 0x0000007e, 0x00007ffe},
434b8021494Sopenharmony_ci     {ZFlag, 0xffff8001, 0x0000007e},    {VFlag, 0x80000000, 0x00000002},
435b8021494Sopenharmony_ci     {NVFlag, 0x00000020, 0x00007ffe},   {CFlag, 0x00007ffe, 0x0000007f},
436b8021494Sopenharmony_ci     {ZCFlag, 0xffff8002, 0x00000020},   {NCVFlag, 0x00000001, 0xffff8000},
437b8021494Sopenharmony_ci     {NZCVFlag, 0x0000007e, 0xffff8001}, {ZCFlag, 0x0000007f, 0xffffff81},
438b8021494Sopenharmony_ci     {ZVFlag, 0xfffffffd, 0x00007ffd},   {NCFlag, 0x0000007d, 0xcccccccc},
439b8021494Sopenharmony_ci     {NZFlag, 0xfffffffd, 0xfffffffe},   {ZCFlag, 0xffff8003, 0x80000000},
440b8021494Sopenharmony_ci     {CFlag, 0x0000007d, 0xffff8002},    {ZVFlag, 0x0000007f, 0x00007ffe},
441b8021494Sopenharmony_ci     {NCVFlag, 0xffff8002, 0x00000001},  {ZCFlag, 0x80000001, 0x0000007e},
442b8021494Sopenharmony_ci     {NCFlag, 0x00000000, 0xaaaaaaaa},   {ZCVFlag, 0x33333333, 0x80000001},
443b8021494Sopenharmony_ci     {CFlag, 0x80000000, 0x0000007d},    {NCVFlag, 0x80000001, 0x80000000},
444b8021494Sopenharmony_ci     {ZCVFlag, 0x7ffffffe, 0xffffff82},  {ZCFlag, 0xfffffffd, 0xffff8000},
445b8021494Sopenharmony_ci     {ZFlag, 0x80000000, 0x55555555},    {ZVFlag, 0x0000007d, 0xffff8000},
446b8021494Sopenharmony_ci     {ZCFlag, 0x80000001, 0xffff8001},   {NVFlag, 0xffff8002, 0x00007ffe},
447b8021494Sopenharmony_ci     {ZCFlag, 0x00000000, 0xffff8000},   {CFlag, 0xffffff81, 0xffffffff},
448b8021494Sopenharmony_ci     {CFlag, 0xffffffff, 0x80000001},    {CFlag, 0x80000001, 0x7ffffffd},
449b8021494Sopenharmony_ci     {ZFlag, 0x80000001, 0x00007fff},    {ZVFlag, 0xffff8002, 0xffff8001},
450b8021494Sopenharmony_ci     {NZFlag, 0x80000000, 0x00007ffd},   {NZCFlag, 0x33333333, 0xcccccccc},
451b8021494Sopenharmony_ci     {ZCFlag, 0xffffffff, 0x33333333},   {VFlag, 0x80000001, 0x55555555},
452b8021494Sopenharmony_ci     {CFlag, 0xffffff82, 0x00000001},    {ZVFlag, 0xffff8003, 0xffff8001},
453b8021494Sopenharmony_ci     {NCVFlag, 0xffff8003, 0xffffffe0},  {ZCVFlag, 0xffffffe0, 0x7ffffffd},
454b8021494Sopenharmony_ci     {NFlag, 0xffff8003, 0x7ffffffe},    {VFlag, 0xffffffff, 0x00000001},
455b8021494Sopenharmony_ci     {CVFlag, 0xcccccccc, 0xfffffffe},   {NZVFlag, 0xffff8003, 0x0000007f},
456b8021494Sopenharmony_ci     {NZVFlag, 0x0000007d, 0x00000002},  {NVFlag, 0x0000007d, 0x00000000},
457b8021494Sopenharmony_ci     {NVFlag, 0x00000002, 0xffff8002},   {ZCVFlag, 0xffff8001, 0xfffffffd},
458b8021494Sopenharmony_ci     {CVFlag, 0x00007fff, 0x0000007d},   {NCFlag, 0x33333333, 0x00000002},
459b8021494Sopenharmony_ci     {NCVFlag, 0xcccccccc, 0xaaaaaaaa},  {CVFlag, 0x80000000, 0x00007ffd},
460b8021494Sopenharmony_ci     {NZFlag, 0xffffff81, 0x55555555},   {CFlag, 0xffff8003, 0x33333333},
461b8021494Sopenharmony_ci     {NZCVFlag, 0xffffffe0, 0xffffff82}, {NVFlag, 0x80000001, 0xfffffffd},
462b8021494Sopenharmony_ci     {CFlag, 0xffff8000, 0x33333333},    {NCVFlag, 0xffff8003, 0x0000007f},
463b8021494Sopenharmony_ci     {CFlag, 0x00000000, 0x0000007d},    {NVFlag, 0x0000007e, 0xcccccccc},
464b8021494Sopenharmony_ci     {NZFlag, 0x7ffffffe, 0xffffffe0},   {ZVFlag, 0xffffffe0, 0xffffff82},
465b8021494Sopenharmony_ci     {ZCVFlag, 0x80000001, 0x55555555},  {NZFlag, 0xcccccccc, 0xffff8001},
466b8021494Sopenharmony_ci     {NFlag, 0x55555555, 0x00000020},    {ZVFlag, 0x00007ffd, 0xffffff83}};
467b8021494Sopenharmony_ci
468b8021494Sopenharmony_cistatic const Inputs kImmediate[] =
469b8021494Sopenharmony_ci    {{CFlag, 0xabababab, 0xffffff82},    {CVFlag, 0xabababab, 0x0000007f},
470b8021494Sopenharmony_ci     {NFlag, 0xabababab, 0x80000001},    {NZFlag, 0xabababab, 0xfffffffd},
471b8021494Sopenharmony_ci     {VFlag, 0xabababab, 0x7ffffffd},    {CFlag, 0xabababab, 0x7ffffffe},
472b8021494Sopenharmony_ci     {ZFlag, 0xabababab, 0xaaaaaaaa},    {NZVFlag, 0xabababab, 0x0000007e},
473b8021494Sopenharmony_ci     {NZVFlag, 0xabababab, 0x80000001},  {CFlag, 0xabababab, 0xffffff81},
474b8021494Sopenharmony_ci     {NZVFlag, 0xabababab, 0xfffffffd},  {NZFlag, 0xabababab, 0x00007fff},
475b8021494Sopenharmony_ci     {VFlag, 0xabababab, 0x00000001},    {CVFlag, 0xabababab, 0xffffffff},
476b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0xffffffff}, {CFlag, 0xabababab, 0x00000000},
477b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0xffffff83},   {NCFlag, 0xabababab, 0x0000007e},
478b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0x7fffffff}, {ZCVFlag, 0xabababab, 0x00000002},
479b8021494Sopenharmony_ci     {CFlag, 0xabababab, 0x80000000},    {NZCFlag, 0xabababab, 0x7ffffffd},
480b8021494Sopenharmony_ci     {ZFlag, 0xabababab, 0xffff8000},    {CFlag, 0xabababab, 0x7ffffffd},
481b8021494Sopenharmony_ci     {NVFlag, 0xabababab, 0x55555555},   {NZCFlag, 0xabababab, 0xfffffffd},
482b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0xaaaaaaaa},   {NZCVFlag, 0xabababab, 0xffff8003},
483b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0xffffffe0},   {NZCFlag, 0xabababab, 0x00007ffd},
484b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0xffffff80},  {NZFlag, 0xabababab, 0x7ffffffd},
485b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0x7fffffff},   {ZVFlag, 0xabababab, 0xffffff81},
486b8021494Sopenharmony_ci     {VFlag, 0xabababab, 0x7fffffff},    {NCVFlag, 0xabababab, 0xcccccccc},
487b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0x00007fff},   {NZFlag, 0xabababab, 0x00000002},
488b8021494Sopenharmony_ci     {NVFlag, 0xabababab, 0x00000002},   {ZVFlag, 0xabababab, 0xffff8002},
489b8021494Sopenharmony_ci     {NZVFlag, 0xabababab, 0x00000020},  {ZCVFlag, 0xabababab, 0xaaaaaaaa},
490b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0x00000000},   {NZCVFlag, 0xabababab, 0xaaaaaaaa},
491b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0xfffffffe},   {NZCFlag, 0xabababab, 0xffffffe0},
492b8021494Sopenharmony_ci     {NFlag, 0xabababab, 0xaaaaaaaa},    {ZVFlag, 0xabababab, 0xffffff80},
493b8021494Sopenharmony_ci     {VFlag, 0xabababab, 0x0000007f},    {ZVFlag, 0xabababab, 0x33333333},
494b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0x00007ffd},   {NCFlag, 0xabababab, 0x00000002},
495b8021494Sopenharmony_ci     {NVFlag, 0xabababab, 0x00007ffd},   {ZFlag, 0xabababab, 0x00000001},
496b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0x7fffffff},   {CFlag, 0xabababab, 0xaaaaaaaa},
497b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0x80000001}, {CVFlag, 0xabababab, 0x00000002},
498b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0x0000007e},   {VFlag, 0xabababab, 0xffffffff},
499b8021494Sopenharmony_ci     {NCFlag, 0xabababab, 0x00000001},   {NZCFlag, 0xabababab, 0xcccccccc},
500b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0x80000001},   {NVFlag, 0xabababab, 0xffffff82},
501b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0x0000007e}, {CFlag, 0xabababab, 0xffffffe0},
502b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0xffff8002},   {NZVFlag, 0xabababab, 0x7fffffff},
503b8021494Sopenharmony_ci     {NZVFlag, 0xabababab, 0x33333333},  {NZCFlag, 0xabababab, 0x0000007d},
504b8021494Sopenharmony_ci     {NFlag, 0xabababab, 0x7ffffffe},    {ZCVFlag, 0xabababab, 0xcccccccc},
505b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0xfffffffe},   {NVFlag, 0xabababab, 0x00007ffe},
506b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0x00007ffe},   {NCVFlag, 0xabababab, 0xffffff82},
507b8021494Sopenharmony_ci     {NZVFlag, 0xabababab, 0x00000002},  {ZVFlag, 0xabababab, 0x7fffffff},
508b8021494Sopenharmony_ci     {NZCFlag, 0xabababab, 0xffff8001},  {VFlag, 0xabababab, 0xffffff83},
509b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0x0000007e},  {NZCFlag, 0xabababab, 0xffffff83},
510b8021494Sopenharmony_ci     {NCFlag, 0xabababab, 0x00007fff},   {NCVFlag, 0xabababab, 0x7ffffffe},
511b8021494Sopenharmony_ci     {CFlag, 0xabababab, 0x00000020},    {NFlag, 0xabababab, 0x00007ffd},
512b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0x7fffffff},   {NZCFlag, 0xabababab, 0xffff8002},
513b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0x0000007f},   {NZVFlag, 0xabababab, 0xffffff83},
514b8021494Sopenharmony_ci     {NZVFlag, 0xabababab, 0xffffffff},  {ZFlag, 0xabababab, 0x80000000},
515b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0xffffff82},   {ZVFlag, 0xabababab, 0x80000000},
516b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0xaaaaaaaa},   {CFlag, 0xabababab, 0xfffffffe},
517b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0x00000000}, {VFlag, 0xabababab, 0x80000001},
518b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0xfffffffd},  {NFlag, 0xabababab, 0xffffffff},
519b8021494Sopenharmony_ci     {VFlag, 0xabababab, 0xcccccccc},    {NFlag, 0xabababab, 0xffff8003},
520b8021494Sopenharmony_ci     {NZVFlag, 0xabababab, 0xfffffffe},  {CVFlag, 0xabababab, 0xffff8001},
521b8021494Sopenharmony_ci     {NZVFlag, 0xabababab, 0x00007fff},  {VFlag, 0xabababab, 0x33333333},
522b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0x00007ffd},  {NCFlag, 0xabababab, 0xfffffffe},
523b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0xffffff83},   {NFlag, 0xabababab, 0x00007fff},
524b8021494Sopenharmony_ci     {NVFlag, 0xabababab, 0x80000000},   {NCVFlag, 0xabababab, 0xffffff80},
525b8021494Sopenharmony_ci     {ZFlag, 0xabababab, 0x7fffffff},    {NFlag, 0xabababab, 0x00000020},
526b8021494Sopenharmony_ci     {NFlag, 0xabababab, 0x7ffffffd},    {NFlag, 0xabababab, 0x0000007f},
527b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0x00000020}, {NCVFlag, 0xabababab, 0xfffffffe},
528b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0xcccccccc},   {NCFlag, 0xabababab, 0xffffffe0},
529b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0xffffff82},   {NCFlag, 0xabababab, 0x00000000},
530b8021494Sopenharmony_ci     {VFlag, 0xabababab, 0xffff8000},    {VFlag, 0xabababab, 0xffff8003},
531b8021494Sopenharmony_ci     {NCFlag, 0xabababab, 0xffffffff},   {NZCFlag, 0xabababab, 0x55555555},
532b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0xfffffffe},   {NZFlag, 0xabababab, 0x7ffffffe},
533b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0x7ffffffe},  {ZVFlag, 0xabababab, 0xffffffe0},
534b8021494Sopenharmony_ci     {NZCFlag, 0xabababab, 0x0000007e},  {CFlag, 0xabababab, 0x7fffffff},
535b8021494Sopenharmony_ci     {NZVFlag, 0xabababab, 0x55555555},  {NZCVFlag, 0xabababab, 0xcccccccc},
536b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0x80000000},  {NFlag, 0xabababab, 0x55555555},
537b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0xffffffe0},  {NCFlag, 0xabababab, 0xffff8000},
538b8021494Sopenharmony_ci     {NCFlag, 0xabababab, 0xffff8001},   {NVFlag, 0xabababab, 0x7ffffffe},
539b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0x00007ffe},   {NVFlag, 0xabababab, 0x00000020},
540b8021494Sopenharmony_ci     {NFlag, 0xabababab, 0x7fffffff},    {NZFlag, 0xabababab, 0x33333333},
541b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0xffff8001},   {ZFlag, 0xabababab, 0xffffffe0},
542b8021494Sopenharmony_ci     {VFlag, 0xabababab, 0xffffffe0},    {VFlag, 0xabababab, 0xffffff80},
543b8021494Sopenharmony_ci     {NCVFlag, 0xabababab, 0x80000000},  {ZCFlag, 0xabababab, 0x55555555},
544b8021494Sopenharmony_ci     {CFlag, 0xabababab, 0xffff8001},    {CFlag, 0xabababab, 0xffff8002},
545b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0xffff8000},   {CFlag, 0xabababab, 0x80000001},
546b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0x0000007d}, {NZCVFlag, 0xabababab, 0xfffffffd},
547b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0xffffff81},   {NVFlag, 0xabababab, 0xffff8002},
548b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0x7ffffffe},   {ZCVFlag, 0xabababab, 0xffffff82},
549b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0x33333333},  {NCFlag, 0xabababab, 0x33333333},
550b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0x00000002}, {NFlag, 0xabababab, 0x00000001},
551b8021494Sopenharmony_ci     {NVFlag, 0xabababab, 0xffff8003},   {NZCVFlag, 0xabababab, 0x00000001},
552b8021494Sopenharmony_ci     {CFlag, 0xabababab, 0xffff8003},    {NVFlag, 0xabababab, 0x0000007e},
553b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0x80000000},   {ZFlag, 0xabababab, 0xffffffff},
554b8021494Sopenharmony_ci     {NFlag, 0xabababab, 0xfffffffd},    {NVFlag, 0xabababab, 0x00007fff},
555b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0x7ffffffd}, {NZVFlag, 0xabababab, 0x00000000},
556b8021494Sopenharmony_ci     {NZCFlag, 0xabababab, 0xfffffffe},  {ZVFlag, 0xabababab, 0x7ffffffe},
557b8021494Sopenharmony_ci     {CFlag, 0xabababab, 0xffffffff},    {ZCFlag, 0xabababab, 0xffffff82},
558b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0xffffff83},   {ZCFlag, 0xabababab, 0x00000002},
559b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0x0000007e},   {NZCVFlag, 0xabababab, 0xffffffe0},
560b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0x00000001},   {ZVFlag, 0xabababab, 0x55555555},
561b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0x00007fff},  {NFlag, 0xabababab, 0x33333333},
562b8021494Sopenharmony_ci     {ZFlag, 0xabababab, 0x00000000},    {NVFlag, 0xabababab, 0x7fffffff},
563b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0xfffffffd},   {ZFlag, 0xabababab, 0x00000020},
564b8021494Sopenharmony_ci     {NCVFlag, 0xabababab, 0xfffffffd},  {NZCFlag, 0xabababab, 0x80000000},
565b8021494Sopenharmony_ci     {NVFlag, 0xabababab, 0x80000001},   {ZFlag, 0xabababab, 0xffff8002},
566b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0xffff8001}, {NFlag, 0xabababab, 0xfffffffe},
567b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0x0000007d},   {NCFlag, 0xabababab, 0x00007ffd},
568b8021494Sopenharmony_ci     {NFlag, 0xabababab, 0xffff8001},    {NZCFlag, 0xabababab, 0xaaaaaaaa},
569b8021494Sopenharmony_ci     {NZCFlag, 0xabababab, 0x00000020},  {ZCVFlag, 0xabababab, 0x7fffffff},
570b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0x00000001},  {NVFlag, 0xabababab, 0xcccccccc},
571b8021494Sopenharmony_ci     {NFlag, 0xabababab, 0x80000000},    {NFlag, 0xabababab, 0xffffffe0},
572b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0xffffffff},   {CVFlag, 0xabababab, 0x00000000},
573b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0xffff8000},   {ZCFlag, 0xabababab, 0x00007ffd},
574b8021494Sopenharmony_ci     {NCFlag, 0xabababab, 0x0000007f},   {ZVFlag, 0xabababab, 0x00000020},
575b8021494Sopenharmony_ci     {VFlag, 0xabababab, 0xffff8002},    {ZFlag, 0xabababab, 0xffffff81},
576b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0xffff8003},   {NFlag, 0xabababab, 0xffffff80},
577b8021494Sopenharmony_ci     {NVFlag, 0xabababab, 0xaaaaaaaa},   {CFlag, 0xabababab, 0x00000001},
578b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0xffff8003},  {NCFlag, 0xabababab, 0xfffffffd},
579b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0xffffff83},   {ZCFlag, 0xabababab, 0xfffffffd},
580b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0x0000007d},   {ZCVFlag, 0xabababab, 0xffffff83},
581b8021494Sopenharmony_ci     {NCFlag, 0xabababab, 0xffffff81},   {NFlag, 0xabababab, 0xffff8000},
582b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0x80000001},   {NCFlag, 0xabababab, 0x55555555},
583b8021494Sopenharmony_ci     {NCVFlag, 0xabababab, 0xaaaaaaaa},  {NZCFlag, 0xabababab, 0xffffffff},
584b8021494Sopenharmony_ci     {ZFlag, 0xabababab, 0x33333333},    {NCFlag, 0xabababab, 0xffffff82},
585b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0xffff8001},   {VFlag, 0xabababab, 0x7ffffffe},
586b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0x7ffffffe}, {ZFlag, 0xabababab, 0x80000001},
587b8021494Sopenharmony_ci     {NVFlag, 0xabababab, 0xffffff80},   {NFlag, 0xabababab, 0x0000007e},
588b8021494Sopenharmony_ci     {NCVFlag, 0xabababab, 0x00007ffd},  {CFlag, 0xabababab, 0x0000007e},
589b8021494Sopenharmony_ci     {NZVFlag, 0xabababab, 0xcccccccc},  {NZVFlag, 0xabababab, 0x0000007f},
590b8021494Sopenharmony_ci     {ZFlag, 0xabababab, 0xffffff83},    {VFlag, 0xabababab, 0xaaaaaaaa},
591b8021494Sopenharmony_ci     {ZVFlag, 0xabababab, 0x7ffffffd},   {ZVFlag, 0xabababab, 0xffffffff},
592b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0x0000007f}, {NCVFlag, 0xabababab, 0x0000007e},
593b8021494Sopenharmony_ci     {NZVFlag, 0xabababab, 0xffffff82},  {CFlag, 0xabababab, 0xffffff80},
594b8021494Sopenharmony_ci     {NZCVFlag, 0xabababab, 0x80000000}, {NZVFlag, 0xabababab, 0x7ffffffe},
595b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0xffffff80},   {NZFlag, 0xabababab, 0xffff8000},
596b8021494Sopenharmony_ci     {NCFlag, 0xabababab, 0xaaaaaaaa},   {NFlag, 0xabababab, 0x00000000},
597b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0xcccccccc},   {ZCFlag, 0xabababab, 0xffffffe0},
598b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0xcccccccc},   {VFlag, 0xabababab, 0xfffffffd},
599b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0x7ffffffd},   {ZCFlag, 0xabababab, 0x00000020},
600b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0x00007ffe},   {ZCFlag, 0xabababab, 0xffffff80},
601b8021494Sopenharmony_ci     {NVFlag, 0xabababab, 0xfffffffd},   {NZCFlag, 0xabababab, 0x00000001},
602b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0x00000001},   {NVFlag, 0xabababab, 0xffffff83},
603b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0x7ffffffd},  {NZVFlag, 0xabababab, 0xffff8000},
604b8021494Sopenharmony_ci     {CVFlag, 0xabababab, 0xffffffe0},   {NCFlag, 0xabababab, 0x0000007d},
605b8021494Sopenharmony_ci     {VFlag, 0xabababab, 0x00007ffd},    {NZCFlag, 0xabababab, 0xffffff81},
606b8021494Sopenharmony_ci     {NCVFlag, 0xabababab, 0x00007fff},  {NVFlag, 0xabababab, 0x0000007f},
607b8021494Sopenharmony_ci     {CFlag, 0xabababab, 0xcccccccc},    {ZFlag, 0xabababab, 0xcccccccc},
608b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0x80000000},   {VFlag, 0xabababab, 0x0000007d},
609b8021494Sopenharmony_ci     {NFlag, 0xabababab, 0xcccccccc},    {NCFlag, 0xabababab, 0x7fffffff},
610b8021494Sopenharmony_ci     {VFlag, 0xabababab, 0xffffff81},    {NCVFlag, 0xabababab, 0xffffffff},
611b8021494Sopenharmony_ci     {NZFlag, 0xabababab, 0xffff8002},   {NZVFlag, 0xabababab, 0x80000000},
612b8021494Sopenharmony_ci     {ZCVFlag, 0xabababab, 0x0000007f},  {ZFlag, 0xabababab, 0x0000007f},
613b8021494Sopenharmony_ci     {VFlag, 0xabababab, 0xffff8001},    {NVFlag, 0xabababab, 0x00000000},
614b8021494Sopenharmony_ci     {ZFlag, 0xabababab, 0x00007ffd},    {NCVFlag, 0xabababab, 0x80000001},
615b8021494Sopenharmony_ci     {NCVFlag, 0xabababab, 0xffff8002},  {NCFlag, 0xabababab, 0x7ffffffe},
616b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0x7ffffffd},   {NZCFlag, 0xabababab, 0x80000001},
617b8021494Sopenharmony_ci     {ZCFlag, 0xabababab, 0x0000007f},   {VFlag, 0xabababab, 0x80000000},
618b8021494Sopenharmony_ci     {NCFlag, 0xabababab, 0x80000001},   {NVFlag, 0xabababab, 0xffffff81}};
619b8021494Sopenharmony_ci
620b8021494Sopenharmony_ci
621b8021494Sopenharmony_ci// A loop will be generated for each element of this array.
622b8021494Sopenharmony_ciconst TestLoopData kTests[] = {{{ne, r2, r2, 45},
623b8021494Sopenharmony_ci                                "ne r2 r2 45",
624b8021494Sopenharmony_ci                                "RdIsRn_ne_r2_r2_45",
625b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
626b8021494Sopenharmony_ci                                kRdIsRn},
627b8021494Sopenharmony_ci                               {{cs, r6, r6, 59},
628b8021494Sopenharmony_ci                                "cs r6 r6 59",
629b8021494Sopenharmony_ci                                "RdIsRn_cs_r6_r6_59",
630b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
631b8021494Sopenharmony_ci                                kRdIsRn},
632b8021494Sopenharmony_ci                               {{mi, r6, r6, 211},
633b8021494Sopenharmony_ci                                "mi r6 r6 211",
634b8021494Sopenharmony_ci                                "RdIsRn_mi_r6_r6_211",
635b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
636b8021494Sopenharmony_ci                                kRdIsRn},
637b8021494Sopenharmony_ci                               {{lt, r5, r5, 36},
638b8021494Sopenharmony_ci                                "lt r5 r5 36",
639b8021494Sopenharmony_ci                                "RdIsRn_lt_r5_r5_36",
640b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
641b8021494Sopenharmony_ci                                kRdIsRn},
642b8021494Sopenharmony_ci                               {{cc, r7, r7, 7},
643b8021494Sopenharmony_ci                                "cc r7 r7 7",
644b8021494Sopenharmony_ci                                "RdIsRn_cc_r7_r7_7",
645b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
646b8021494Sopenharmony_ci                                kRdIsRn},
647b8021494Sopenharmony_ci                               {{cs, r7, r7, 215},
648b8021494Sopenharmony_ci                                "cs r7 r7 215",
649b8021494Sopenharmony_ci                                "RdIsRn_cs_r7_r7_215",
650b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
651b8021494Sopenharmony_ci                                kRdIsRn},
652b8021494Sopenharmony_ci                               {{pl, r6, r6, 54},
653b8021494Sopenharmony_ci                                "pl r6 r6 54",
654b8021494Sopenharmony_ci                                "RdIsRn_pl_r6_r6_54",
655b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
656b8021494Sopenharmony_ci                                kRdIsRn},
657b8021494Sopenharmony_ci                               {{lt, r6, r6, 221},
658b8021494Sopenharmony_ci                                "lt r6 r6 221",
659b8021494Sopenharmony_ci                                "RdIsRn_lt_r6_r6_221",
660b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
661b8021494Sopenharmony_ci                                kRdIsRn},
662b8021494Sopenharmony_ci                               {{ne, r2, r2, 40},
663b8021494Sopenharmony_ci                                "ne r2 r2 40",
664b8021494Sopenharmony_ci                                "RdIsRn_ne_r2_r2_40",
665b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
666b8021494Sopenharmony_ci                                kRdIsRn},
667b8021494Sopenharmony_ci                               {{hi, r5, r5, 158},
668b8021494Sopenharmony_ci                                "hi r5 r5 158",
669b8021494Sopenharmony_ci                                "RdIsRn_hi_r5_r5_158",
670b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
671b8021494Sopenharmony_ci                                kRdIsRn},
672b8021494Sopenharmony_ci                               {{cs, r0, r0, 18},
673b8021494Sopenharmony_ci                                "cs r0 r0 18",
674b8021494Sopenharmony_ci                                "RdIsRn_cs_r0_r0_18",
675b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
676b8021494Sopenharmony_ci                                kRdIsRn},
677b8021494Sopenharmony_ci                               {{ne, r3, r3, 205},
678b8021494Sopenharmony_ci                                "ne r3 r3 205",
679b8021494Sopenharmony_ci                                "RdIsRn_ne_r3_r3_205",
680b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
681b8021494Sopenharmony_ci                                kRdIsRn},
682b8021494Sopenharmony_ci                               {{vc, r0, r0, 97},
683b8021494Sopenharmony_ci                                "vc r0 r0 97",
684b8021494Sopenharmony_ci                                "RdIsRn_vc_r0_r0_97",
685b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
686b8021494Sopenharmony_ci                                kRdIsRn},
687b8021494Sopenharmony_ci                               {{hi, r2, r2, 197},
688b8021494Sopenharmony_ci                                "hi r2 r2 197",
689b8021494Sopenharmony_ci                                "RdIsRn_hi_r2_r2_197",
690b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
691b8021494Sopenharmony_ci                                kRdIsRn},
692b8021494Sopenharmony_ci                               {{cs, r0, r0, 248},
693b8021494Sopenharmony_ci                                "cs r0 r0 248",
694b8021494Sopenharmony_ci                                "RdIsRn_cs_r0_r0_248",
695b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
696b8021494Sopenharmony_ci                                kRdIsRn},
697b8021494Sopenharmony_ci                               {{ne, r4, r4, 108},
698b8021494Sopenharmony_ci                                "ne r4 r4 108",
699b8021494Sopenharmony_ci                                "RdIsRn_ne_r4_r4_108",
700b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
701b8021494Sopenharmony_ci                                kRdIsRn},
702b8021494Sopenharmony_ci                               {{vs, r3, r3, 73},
703b8021494Sopenharmony_ci                                "vs r3 r3 73",
704b8021494Sopenharmony_ci                                "RdIsRn_vs_r3_r3_73",
705b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
706b8021494Sopenharmony_ci                                kRdIsRn},
707b8021494Sopenharmony_ci                               {{ne, r7, r7, 230},
708b8021494Sopenharmony_ci                                "ne r7 r7 230",
709b8021494Sopenharmony_ci                                "RdIsRn_ne_r7_r7_230",
710b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
711b8021494Sopenharmony_ci                                kRdIsRn},
712b8021494Sopenharmony_ci                               {{eq, r0, r0, 100},
713b8021494Sopenharmony_ci                                "eq r0 r0 100",
714b8021494Sopenharmony_ci                                "RdIsRn_eq_r0_r0_100",
715b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
716b8021494Sopenharmony_ci                                kRdIsRn},
717b8021494Sopenharmony_ci                               {{mi, r5, r5, 211},
718b8021494Sopenharmony_ci                                "mi r5 r5 211",
719b8021494Sopenharmony_ci                                "RdIsRn_mi_r5_r5_211",
720b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsRn),
721b8021494Sopenharmony_ci                                kRdIsRn},
722b8021494Sopenharmony_ci                               {{ge, r2, r3, 225},
723b8021494Sopenharmony_ci                                "ge r2 r3 225",
724b8021494Sopenharmony_ci                                "RdIsNotRn_ge_r2_r3_225",
725b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
726b8021494Sopenharmony_ci                                kRdIsNotRn},
727b8021494Sopenharmony_ci                               {{vs, r3, r1, 64},
728b8021494Sopenharmony_ci                                "vs r3 r1 64",
729b8021494Sopenharmony_ci                                "RdIsNotRn_vs_r3_r1_64",
730b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
731b8021494Sopenharmony_ci                                kRdIsNotRn},
732b8021494Sopenharmony_ci                               {{vs, r0, r1, 93},
733b8021494Sopenharmony_ci                                "vs r0 r1 93",
734b8021494Sopenharmony_ci                                "RdIsNotRn_vs_r0_r1_93",
735b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
736b8021494Sopenharmony_ci                                kRdIsNotRn},
737b8021494Sopenharmony_ci                               {{ne, r5, r1, 247},
738b8021494Sopenharmony_ci                                "ne r5 r1 247",
739b8021494Sopenharmony_ci                                "RdIsNotRn_ne_r5_r1_247",
740b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
741b8021494Sopenharmony_ci                                kRdIsNotRn},
742b8021494Sopenharmony_ci                               {{vs, r1, r7, 9},
743b8021494Sopenharmony_ci                                "vs r1 r7 9",
744b8021494Sopenharmony_ci                                "RdIsNotRn_vs_r1_r7_9",
745b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
746b8021494Sopenharmony_ci                                kRdIsNotRn},
747b8021494Sopenharmony_ci                               {{le, r0, r2, 201},
748b8021494Sopenharmony_ci                                "le r0 r2 201",
749b8021494Sopenharmony_ci                                "RdIsNotRn_le_r0_r2_201",
750b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
751b8021494Sopenharmony_ci                                kRdIsNotRn},
752b8021494Sopenharmony_ci                               {{vs, r6, r0, 176},
753b8021494Sopenharmony_ci                                "vs r6 r0 176",
754b8021494Sopenharmony_ci                                "RdIsNotRn_vs_r6_r0_176",
755b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
756b8021494Sopenharmony_ci                                kRdIsNotRn},
757b8021494Sopenharmony_ci                               {{vc, r0, r1, 248},
758b8021494Sopenharmony_ci                                "vc r0 r1 248",
759b8021494Sopenharmony_ci                                "RdIsNotRn_vc_r0_r1_248",
760b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
761b8021494Sopenharmony_ci                                kRdIsNotRn},
762b8021494Sopenharmony_ci                               {{al, r7, r6, 64},
763b8021494Sopenharmony_ci                                "al r7 r6 64",
764b8021494Sopenharmony_ci                                "RdIsNotRn_al_r7_r6_64",
765b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
766b8021494Sopenharmony_ci                                kRdIsNotRn},
767b8021494Sopenharmony_ci                               {{al, r5, r7, 175},
768b8021494Sopenharmony_ci                                "al r5 r7 175",
769b8021494Sopenharmony_ci                                "RdIsNotRn_al_r5_r7_175",
770b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
771b8021494Sopenharmony_ci                                kRdIsNotRn},
772b8021494Sopenharmony_ci                               {{al, r0, r4, 182},
773b8021494Sopenharmony_ci                                "al r0 r4 182",
774b8021494Sopenharmony_ci                                "RdIsNotRn_al_r0_r4_182",
775b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
776b8021494Sopenharmony_ci                                kRdIsNotRn},
777b8021494Sopenharmony_ci                               {{ls, r7, r5, 58},
778b8021494Sopenharmony_ci                                "ls r7 r5 58",
779b8021494Sopenharmony_ci                                "RdIsNotRn_ls_r7_r5_58",
780b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
781b8021494Sopenharmony_ci                                kRdIsNotRn},
782b8021494Sopenharmony_ci                               {{vc, r0, r7, 205},
783b8021494Sopenharmony_ci                                "vc r0 r7 205",
784b8021494Sopenharmony_ci                                "RdIsNotRn_vc_r0_r7_205",
785b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
786b8021494Sopenharmony_ci                                kRdIsNotRn},
787b8021494Sopenharmony_ci                               {{pl, r1, r3, 135},
788b8021494Sopenharmony_ci                                "pl r1 r3 135",
789b8021494Sopenharmony_ci                                "RdIsNotRn_pl_r1_r3_135",
790b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
791b8021494Sopenharmony_ci                                kRdIsNotRn},
792b8021494Sopenharmony_ci                               {{gt, r4, r3, 253},
793b8021494Sopenharmony_ci                                "gt r4 r3 253",
794b8021494Sopenharmony_ci                                "RdIsNotRn_gt_r4_r3_253",
795b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
796b8021494Sopenharmony_ci                                kRdIsNotRn},
797b8021494Sopenharmony_ci                               {{al, r1, r7, 32},
798b8021494Sopenharmony_ci                                "al r1 r7 32",
799b8021494Sopenharmony_ci                                "RdIsNotRn_al_r1_r7_32",
800b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
801b8021494Sopenharmony_ci                                kRdIsNotRn},
802b8021494Sopenharmony_ci                               {{eq, r1, r7, 139},
803b8021494Sopenharmony_ci                                "eq r1 r7 139",
804b8021494Sopenharmony_ci                                "RdIsNotRn_eq_r1_r7_139",
805b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
806b8021494Sopenharmony_ci                                kRdIsNotRn},
807b8021494Sopenharmony_ci                               {{lt, r0, r5, 248},
808b8021494Sopenharmony_ci                                "lt r0 r5 248",
809b8021494Sopenharmony_ci                                "RdIsNotRn_lt_r0_r5_248",
810b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
811b8021494Sopenharmony_ci                                kRdIsNotRn},
812b8021494Sopenharmony_ci                               {{hi, r0, r6, 89},
813b8021494Sopenharmony_ci                                "hi r0 r6 89",
814b8021494Sopenharmony_ci                                "RdIsNotRn_hi_r0_r6_89",
815b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
816b8021494Sopenharmony_ci                                kRdIsNotRn},
817b8021494Sopenharmony_ci                               {{cc, r3, r5, 210},
818b8021494Sopenharmony_ci                                "cc r3 r5 210",
819b8021494Sopenharmony_ci                                "RdIsNotRn_cc_r3_r5_210",
820b8021494Sopenharmony_ci                                ARRAY_SIZE(kRdIsNotRn),
821b8021494Sopenharmony_ci                                kRdIsNotRn},
822b8021494Sopenharmony_ci                               {{cs, r0, r0, 187},
823b8021494Sopenharmony_ci                                "cs r0 r0 187",
824b8021494Sopenharmony_ci                                "Immediate_cs_r0_r0_187",
825b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
826b8021494Sopenharmony_ci                                kImmediate},
827b8021494Sopenharmony_ci                               {{hi, r0, r0, 236},
828b8021494Sopenharmony_ci                                "hi r0 r0 236",
829b8021494Sopenharmony_ci                                "Immediate_hi_r0_r0_236",
830b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
831b8021494Sopenharmony_ci                                kImmediate},
832b8021494Sopenharmony_ci                               {{eq, r0, r0, 133},
833b8021494Sopenharmony_ci                                "eq r0 r0 133",
834b8021494Sopenharmony_ci                                "Immediate_eq_r0_r0_133",
835b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
836b8021494Sopenharmony_ci                                kImmediate},
837b8021494Sopenharmony_ci                               {{mi, r0, r0, 193},
838b8021494Sopenharmony_ci                                "mi r0 r0 193",
839b8021494Sopenharmony_ci                                "Immediate_mi_r0_r0_193",
840b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
841b8021494Sopenharmony_ci                                kImmediate},
842b8021494Sopenharmony_ci                               {{cc, r0, r0, 73},
843b8021494Sopenharmony_ci                                "cc r0 r0 73",
844b8021494Sopenharmony_ci                                "Immediate_cc_r0_r0_73",
845b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
846b8021494Sopenharmony_ci                                kImmediate},
847b8021494Sopenharmony_ci                               {{cs, r0, r0, 93},
848b8021494Sopenharmony_ci                                "cs r0 r0 93",
849b8021494Sopenharmony_ci                                "Immediate_cs_r0_r0_93",
850b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
851b8021494Sopenharmony_ci                                kImmediate},
852b8021494Sopenharmony_ci                               {{ne, r0, r0, 130},
853b8021494Sopenharmony_ci                                "ne r0 r0 130",
854b8021494Sopenharmony_ci                                "Immediate_ne_r0_r0_130",
855b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
856b8021494Sopenharmony_ci                                kImmediate},
857b8021494Sopenharmony_ci                               {{ge, r0, r0, 209},
858b8021494Sopenharmony_ci                                "ge r0 r0 209",
859b8021494Sopenharmony_ci                                "Immediate_ge_r0_r0_209",
860b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
861b8021494Sopenharmony_ci                                kImmediate},
862b8021494Sopenharmony_ci                               {{lt, r0, r0, 42},
863b8021494Sopenharmony_ci                                "lt r0 r0 42",
864b8021494Sopenharmony_ci                                "Immediate_lt_r0_r0_42",
865b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
866b8021494Sopenharmony_ci                                kImmediate},
867b8021494Sopenharmony_ci                               {{cs, r0, r0, 177},
868b8021494Sopenharmony_ci                                "cs r0 r0 177",
869b8021494Sopenharmony_ci                                "Immediate_cs_r0_r0_177",
870b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
871b8021494Sopenharmony_ci                                kImmediate},
872b8021494Sopenharmony_ci                               {{lt, r0, r0, 139},
873b8021494Sopenharmony_ci                                "lt r0 r0 139",
874b8021494Sopenharmony_ci                                "Immediate_lt_r0_r0_139",
875b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
876b8021494Sopenharmony_ci                                kImmediate},
877b8021494Sopenharmony_ci                               {{mi, r0, r0, 43},
878b8021494Sopenharmony_ci                                "mi r0 r0 43",
879b8021494Sopenharmony_ci                                "Immediate_mi_r0_r0_43",
880b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
881b8021494Sopenharmony_ci                                kImmediate},
882b8021494Sopenharmony_ci                               {{cs, r0, r0, 247},
883b8021494Sopenharmony_ci                                "cs r0 r0 247",
884b8021494Sopenharmony_ci                                "Immediate_cs_r0_r0_247",
885b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
886b8021494Sopenharmony_ci                                kImmediate},
887b8021494Sopenharmony_ci                               {{ls, r0, r0, 170},
888b8021494Sopenharmony_ci                                "ls r0 r0 170",
889b8021494Sopenharmony_ci                                "Immediate_ls_r0_r0_170",
890b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
891b8021494Sopenharmony_ci                                kImmediate},
892b8021494Sopenharmony_ci                               {{cs, r0, r0, 185},
893b8021494Sopenharmony_ci                                "cs r0 r0 185",
894b8021494Sopenharmony_ci                                "Immediate_cs_r0_r0_185",
895b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
896b8021494Sopenharmony_ci                                kImmediate},
897b8021494Sopenharmony_ci                               {{ne, r0, r0, 246},
898b8021494Sopenharmony_ci                                "ne r0 r0 246",
899b8021494Sopenharmony_ci                                "Immediate_ne_r0_r0_246",
900b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
901b8021494Sopenharmony_ci                                kImmediate},
902b8021494Sopenharmony_ci                               {{mi, r0, r0, 179},
903b8021494Sopenharmony_ci                                "mi r0 r0 179",
904b8021494Sopenharmony_ci                                "Immediate_mi_r0_r0_179",
905b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
906b8021494Sopenharmony_ci                                kImmediate},
907b8021494Sopenharmony_ci                               {{pl, r0, r0, 7},
908b8021494Sopenharmony_ci                                "pl r0 r0 7",
909b8021494Sopenharmony_ci                                "Immediate_pl_r0_r0_7",
910b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
911b8021494Sopenharmony_ci                                kImmediate},
912b8021494Sopenharmony_ci                               {{mi, r0, r0, 177},
913b8021494Sopenharmony_ci                                "mi r0 r0 177",
914b8021494Sopenharmony_ci                                "Immediate_mi_r0_r0_177",
915b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
916b8021494Sopenharmony_ci                                kImmediate},
917b8021494Sopenharmony_ci                               {{gt, r0, r0, 175},
918b8021494Sopenharmony_ci                                "gt r0 r0 175",
919b8021494Sopenharmony_ci                                "Immediate_gt_r0_r0_175",
920b8021494Sopenharmony_ci                                ARRAY_SIZE(kImmediate),
921b8021494Sopenharmony_ci                                kImmediate}};
922b8021494Sopenharmony_ci
923b8021494Sopenharmony_ci// We record all inputs to the instructions as outputs. This way, we also check
924b8021494Sopenharmony_ci// that what shouldn't change didn't change.
925b8021494Sopenharmony_cistruct TestResult {
926b8021494Sopenharmony_ci  size_t output_size;
927b8021494Sopenharmony_ci  const Inputs* outputs;
928b8021494Sopenharmony_ci};
929b8021494Sopenharmony_ci
930b8021494Sopenharmony_ci// These headers each contain an array of `TestResult` with the reference output
931b8021494Sopenharmony_ci// values. The reference arrays are names `kReference{mnemonic}`.
932b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rdlow-rnlow-operand-immediate-add-t32.h"
933b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rdlow-rnlow-operand-immediate-adds-t32.h"
934b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rdlow-rnlow-operand-immediate-rsb-t32.h"
935b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rdlow-rnlow-operand-immediate-rsbs-t32.h"
936b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rdlow-rnlow-operand-immediate-sub-t32.h"
937b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rdlow-rnlow-operand-immediate-subs-t32.h"
938b8021494Sopenharmony_ci
939b8021494Sopenharmony_ci
940b8021494Sopenharmony_ci// The maximum number of errors to report in detail for each test.
941b8021494Sopenharmony_ciconst unsigned kErrorReportLimit = 8;
942b8021494Sopenharmony_ci
943b8021494Sopenharmony_citypedef void (MacroAssembler::*Fn)(Condition cond,
944b8021494Sopenharmony_ci                                   Register rd,
945b8021494Sopenharmony_ci                                   Register rn,
946b8021494Sopenharmony_ci                                   const Operand& op);
947b8021494Sopenharmony_ci
948b8021494Sopenharmony_civoid TestHelper(Fn instruction,
949b8021494Sopenharmony_ci                const char* mnemonic,
950b8021494Sopenharmony_ci                const TestResult reference[]) {
951b8021494Sopenharmony_ci  SETUP();
952b8021494Sopenharmony_ci  masm.UseT32();
953b8021494Sopenharmony_ci  START();
954b8021494Sopenharmony_ci
955b8021494Sopenharmony_ci  // Data to compare to `reference`.
956b8021494Sopenharmony_ci  TestResult* results[ARRAY_SIZE(kTests)];
957b8021494Sopenharmony_ci
958b8021494Sopenharmony_ci  // Test cases for memory bound instructions may allocate a buffer and save its
959b8021494Sopenharmony_ci  // address in this array.
960b8021494Sopenharmony_ci  byte* scratch_memory_buffers[ARRAY_SIZE(kTests)];
961b8021494Sopenharmony_ci
962b8021494Sopenharmony_ci  // Generate a loop for each element in `kTests`. Each loop tests one specific
963b8021494Sopenharmony_ci  // instruction.
964b8021494Sopenharmony_ci  for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) {
965b8021494Sopenharmony_ci    // Allocate results on the heap for this test.
966b8021494Sopenharmony_ci    results[i] = new TestResult;
967b8021494Sopenharmony_ci    results[i]->outputs = new Inputs[kTests[i].input_size];
968b8021494Sopenharmony_ci    results[i]->output_size = kTests[i].input_size;
969b8021494Sopenharmony_ci
970b8021494Sopenharmony_ci    size_t input_stride = sizeof(kTests[i].inputs[0]) * kTests[i].input_size;
971b8021494Sopenharmony_ci    VIXL_ASSERT(IsUint32(input_stride));
972b8021494Sopenharmony_ci
973b8021494Sopenharmony_ci    scratch_memory_buffers[i] = NULL;
974b8021494Sopenharmony_ci
975b8021494Sopenharmony_ci    Label loop;
976b8021494Sopenharmony_ci    UseScratchRegisterScope scratch_registers(&masm);
977b8021494Sopenharmony_ci    // Include all registers from r0 ro r12.
978b8021494Sopenharmony_ci    scratch_registers.Include(RegisterList(0x1fff));
979b8021494Sopenharmony_ci
980b8021494Sopenharmony_ci    // Values to pass to the macro-assembler.
981b8021494Sopenharmony_ci    Condition cond = kTests[i].operands.cond;
982b8021494Sopenharmony_ci    Register rd = kTests[i].operands.rd;
983b8021494Sopenharmony_ci    Register rn = kTests[i].operands.rn;
984b8021494Sopenharmony_ci    int32_t immediate = kTests[i].operands.immediate;
985b8021494Sopenharmony_ci    Operand op(immediate);
986b8021494Sopenharmony_ci    scratch_registers.Exclude(rd);
987b8021494Sopenharmony_ci    scratch_registers.Exclude(rn);
988b8021494Sopenharmony_ci
989b8021494Sopenharmony_ci    // Allocate reserved registers for our own use.
990b8021494Sopenharmony_ci    Register input_ptr = scratch_registers.Acquire();
991b8021494Sopenharmony_ci    Register input_end = scratch_registers.Acquire();
992b8021494Sopenharmony_ci    Register result_ptr = scratch_registers.Acquire();
993b8021494Sopenharmony_ci
994b8021494Sopenharmony_ci    // Initialize `input_ptr` to the first element and `input_end` the address
995b8021494Sopenharmony_ci    // after the array.
996b8021494Sopenharmony_ci    __ Mov(input_ptr, Operand::From(kTests[i].inputs));
997b8021494Sopenharmony_ci    __ Add(input_end, input_ptr, static_cast<uint32_t>(input_stride));
998b8021494Sopenharmony_ci    __ Mov(result_ptr, Operand::From(results[i]->outputs));
999b8021494Sopenharmony_ci    __ Bind(&loop);
1000b8021494Sopenharmony_ci
1001b8021494Sopenharmony_ci    {
1002b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1003b8021494Sopenharmony_ci      Register nzcv_bits = temp_registers.Acquire();
1004b8021494Sopenharmony_ci      Register saved_q_bit = temp_registers.Acquire();
1005b8021494Sopenharmony_ci      // Save the `Q` bit flag.
1006b8021494Sopenharmony_ci      __ Mrs(saved_q_bit, APSR);
1007b8021494Sopenharmony_ci      __ And(saved_q_bit, saved_q_bit, QFlag);
1008b8021494Sopenharmony_ci      // Set the `NZCV` and `Q` flags together.
1009b8021494Sopenharmony_ci      __ Ldr(nzcv_bits, MemOperand(input_ptr, offsetof(Inputs, apsr)));
1010b8021494Sopenharmony_ci      __ Orr(nzcv_bits, nzcv_bits, saved_q_bit);
1011b8021494Sopenharmony_ci      __ Msr(APSR_nzcvq, nzcv_bits);
1012b8021494Sopenharmony_ci    }
1013b8021494Sopenharmony_ci    __ Ldr(rd, MemOperand(input_ptr, offsetof(Inputs, rd)));
1014b8021494Sopenharmony_ci    __ Ldr(rn, MemOperand(input_ptr, offsetof(Inputs, rn)));
1015b8021494Sopenharmony_ci
1016b8021494Sopenharmony_ci    (masm.*instruction)(cond, rd, rn, op);
1017b8021494Sopenharmony_ci
1018b8021494Sopenharmony_ci    {
1019b8021494Sopenharmony_ci      UseScratchRegisterScope temp_registers(&masm);
1020b8021494Sopenharmony_ci      Register nzcv_bits = temp_registers.Acquire();
1021b8021494Sopenharmony_ci      __ Mrs(nzcv_bits, APSR);
1022b8021494Sopenharmony_ci      // Only record the NZCV bits.
1023b8021494Sopenharmony_ci      __ And(nzcv_bits, nzcv_bits, NZCVFlag);
1024b8021494Sopenharmony_ci      __ Str(nzcv_bits, MemOperand(result_ptr, offsetof(Inputs, apsr)));
1025b8021494Sopenharmony_ci    }
1026b8021494Sopenharmony_ci    __ Str(rd, MemOperand(result_ptr, offsetof(Inputs, rd)));
1027b8021494Sopenharmony_ci    __ Str(rn, MemOperand(result_ptr, offsetof(Inputs, rn)));
1028b8021494Sopenharmony_ci
1029b8021494Sopenharmony_ci    // Advance the result pointer.
1030b8021494Sopenharmony_ci    __ Add(result_ptr, result_ptr, Operand::From(sizeof(kTests[i].inputs[0])));
1031b8021494Sopenharmony_ci    // Loop back until `input_ptr` is lower than `input_base`.
1032b8021494Sopenharmony_ci    __ Add(input_ptr, input_ptr, Operand::From(sizeof(kTests[i].inputs[0])));
1033b8021494Sopenharmony_ci    __ Cmp(input_ptr, input_end);
1034b8021494Sopenharmony_ci    __ B(ne, &loop);
1035b8021494Sopenharmony_ci  }
1036b8021494Sopenharmony_ci
1037b8021494Sopenharmony_ci  END();
1038b8021494Sopenharmony_ci
1039b8021494Sopenharmony_ci  RUN();
1040b8021494Sopenharmony_ci
1041b8021494Sopenharmony_ci  if (Test::generate_test_trace()) {
1042b8021494Sopenharmony_ci    // Print the results.
1043b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1044b8021494Sopenharmony_ci      printf("const Inputs kOutputs_%s_%s[] = {\n",
1045b8021494Sopenharmony_ci             mnemonic,
1046b8021494Sopenharmony_ci             kTests[i].identifier);
1047b8021494Sopenharmony_ci      for (size_t j = 0; j < results[i]->output_size; j++) {
1048b8021494Sopenharmony_ci        printf("  { ");
1049b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].apsr);
1050b8021494Sopenharmony_ci        printf(", ");
1051b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].rd);
1052b8021494Sopenharmony_ci        printf(", ");
1053b8021494Sopenharmony_ci        printf("0x%08" PRIx32, results[i]->outputs[j].rn);
1054b8021494Sopenharmony_ci        printf(" },\n");
1055b8021494Sopenharmony_ci      }
1056b8021494Sopenharmony_ci      printf("};\n");
1057b8021494Sopenharmony_ci    }
1058b8021494Sopenharmony_ci    printf("const TestResult kReference%s[] = {\n", mnemonic);
1059b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1060b8021494Sopenharmony_ci      printf("  {\n");
1061b8021494Sopenharmony_ci      printf("    ARRAY_SIZE(kOutputs_%s_%s),\n",
1062b8021494Sopenharmony_ci             mnemonic,
1063b8021494Sopenharmony_ci             kTests[i].identifier);
1064b8021494Sopenharmony_ci      printf("    kOutputs_%s_%s,\n", mnemonic, kTests[i].identifier);
1065b8021494Sopenharmony_ci      printf("  },\n");
1066b8021494Sopenharmony_ci    }
1067b8021494Sopenharmony_ci    printf("};\n");
1068b8021494Sopenharmony_ci  } else if (kCheckSimulatorTestResults) {
1069b8021494Sopenharmony_ci    // Check the results.
1070b8021494Sopenharmony_ci    unsigned total_error_count = 0;
1071b8021494Sopenharmony_ci    for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1072b8021494Sopenharmony_ci      bool instruction_has_errors = false;
1073b8021494Sopenharmony_ci      for (size_t j = 0; j < kTests[i].input_size; j++) {
1074b8021494Sopenharmony_ci        uint32_t apsr = results[i]->outputs[j].apsr;
1075b8021494Sopenharmony_ci        uint32_t rd = results[i]->outputs[j].rd;
1076b8021494Sopenharmony_ci        uint32_t rn = results[i]->outputs[j].rn;
1077b8021494Sopenharmony_ci        uint32_t apsr_input = kTests[i].inputs[j].apsr;
1078b8021494Sopenharmony_ci        uint32_t rd_input = kTests[i].inputs[j].rd;
1079b8021494Sopenharmony_ci        uint32_t rn_input = kTests[i].inputs[j].rn;
1080b8021494Sopenharmony_ci        uint32_t apsr_ref = reference[i].outputs[j].apsr;
1081b8021494Sopenharmony_ci        uint32_t rd_ref = reference[i].outputs[j].rd;
1082b8021494Sopenharmony_ci        uint32_t rn_ref = reference[i].outputs[j].rn;
1083b8021494Sopenharmony_ci
1084b8021494Sopenharmony_ci        if (((apsr != apsr_ref) || (rd != rd_ref) || (rn != rn_ref)) &&
1085b8021494Sopenharmony_ci            (++total_error_count <= kErrorReportLimit)) {
1086b8021494Sopenharmony_ci          // Print the instruction once even if it triggered multiple failures.
1087b8021494Sopenharmony_ci          if (!instruction_has_errors) {
1088b8021494Sopenharmony_ci            printf("Error(s) when testing \"%s %s\":\n",
1089b8021494Sopenharmony_ci                   mnemonic,
1090b8021494Sopenharmony_ci                   kTests[i].operands_description);
1091b8021494Sopenharmony_ci            instruction_has_errors = true;
1092b8021494Sopenharmony_ci          }
1093b8021494Sopenharmony_ci          // Print subsequent errors.
1094b8021494Sopenharmony_ci          printf("  Input:    ");
1095b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr_input);
1096b8021494Sopenharmony_ci          printf(", ");
1097b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd_input);
1098b8021494Sopenharmony_ci          printf(", ");
1099b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rn_input);
1100b8021494Sopenharmony_ci          printf("\n");
1101b8021494Sopenharmony_ci          printf("  Expected: ");
1102b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr_ref);
1103b8021494Sopenharmony_ci          printf(", ");
1104b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd_ref);
1105b8021494Sopenharmony_ci          printf(", ");
1106b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rn_ref);
1107b8021494Sopenharmony_ci          printf("\n");
1108b8021494Sopenharmony_ci          printf("  Found:    ");
1109b8021494Sopenharmony_ci          printf("0x%08" PRIx32, apsr);
1110b8021494Sopenharmony_ci          printf(", ");
1111b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rd);
1112b8021494Sopenharmony_ci          printf(", ");
1113b8021494Sopenharmony_ci          printf("0x%08" PRIx32, rn);
1114b8021494Sopenharmony_ci          printf("\n\n");
1115b8021494Sopenharmony_ci        }
1116b8021494Sopenharmony_ci      }
1117b8021494Sopenharmony_ci    }
1118b8021494Sopenharmony_ci
1119b8021494Sopenharmony_ci    if (total_error_count > kErrorReportLimit) {
1120b8021494Sopenharmony_ci      printf("%u other errors follow.\n",
1121b8021494Sopenharmony_ci             total_error_count - kErrorReportLimit);
1122b8021494Sopenharmony_ci    }
1123b8021494Sopenharmony_ci    VIXL_CHECK(total_error_count == 0);
1124b8021494Sopenharmony_ci  } else {
1125b8021494Sopenharmony_ci    VIXL_WARNING("Assembled the code, but did not run anything.\n");
1126b8021494Sopenharmony_ci  }
1127b8021494Sopenharmony_ci
1128b8021494Sopenharmony_ci  for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) {
1129b8021494Sopenharmony_ci    delete[] results[i]->outputs;
1130b8021494Sopenharmony_ci    delete results[i];
1131b8021494Sopenharmony_ci    delete[] scratch_memory_buffers[i];
1132b8021494Sopenharmony_ci  }
1133b8021494Sopenharmony_ci}
1134b8021494Sopenharmony_ci
1135b8021494Sopenharmony_ci// Instantiate tests for each instruction in the list.
1136b8021494Sopenharmony_ci// TODO: Remove this limitation by having a sandboxing mechanism.
1137b8021494Sopenharmony_ci#if defined(VIXL_HOST_POINTER_32)
1138b8021494Sopenharmony_ci#define TEST(mnemonic)                                                      \
1139b8021494Sopenharmony_ci  void Test_##mnemonic() {                                                  \
1140b8021494Sopenharmony_ci    TestHelper(&MacroAssembler::mnemonic, #mnemonic, kReference##mnemonic); \
1141b8021494Sopenharmony_ci  }                                                                         \
1142b8021494Sopenharmony_ci  Test test_##mnemonic(                                                     \
1143b8021494Sopenharmony_ci      "AARCH32_SIMULATOR_COND_RDLOW_RNLOW_OPERAND_IMMEDIATE_" #mnemonic     \
1144b8021494Sopenharmony_ci      "_T32",                                                               \
1145b8021494Sopenharmony_ci      &Test_##mnemonic);
1146b8021494Sopenharmony_ci#else
1147b8021494Sopenharmony_ci#define TEST(mnemonic)                                                  \
1148b8021494Sopenharmony_ci  void Test_##mnemonic() {                                              \
1149b8021494Sopenharmony_ci    VIXL_WARNING("This test can only run on a 32-bit host.\n");         \
1150b8021494Sopenharmony_ci    USE(TestHelper);                                                    \
1151b8021494Sopenharmony_ci  }                                                                     \
1152b8021494Sopenharmony_ci  Test test_##mnemonic(                                                 \
1153b8021494Sopenharmony_ci      "AARCH32_SIMULATOR_COND_RDLOW_RNLOW_OPERAND_IMMEDIATE_" #mnemonic \
1154b8021494Sopenharmony_ci      "_T32",                                                           \
1155b8021494Sopenharmony_ci      &Test_##mnemonic);
1156b8021494Sopenharmony_ci#endif
1157b8021494Sopenharmony_ci
1158b8021494Sopenharmony_ciFOREACH_INSTRUCTION(TEST)
1159b8021494Sopenharmony_ci#undef TEST
1160b8021494Sopenharmony_ci
1161b8021494Sopenharmony_ci}  // namespace
1162b8021494Sopenharmony_ci#endif
1163b8021494Sopenharmony_ci
1164b8021494Sopenharmony_ci}  // namespace aarch32
1165b8021494Sopenharmony_ci}  // namespace vixl
1166