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-assembler-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/macro-assembler-aarch32.h"
44b8021494Sopenharmony_ci
45b8021494Sopenharmony_ci#define BUF_SIZE (4096)
46b8021494Sopenharmony_ci
47b8021494Sopenharmony_cinamespace vixl {
48b8021494Sopenharmony_cinamespace aarch32 {
49b8021494Sopenharmony_ci
50b8021494Sopenharmony_ci// List of instruction mnemonics.
51b8021494Sopenharmony_ci#define FOREACH_INSTRUCTION(M) \
52b8021494Sopenharmony_ci  M(adc)                       \
53b8021494Sopenharmony_ci  M(and_)                      \
54b8021494Sopenharmony_ci  M(asr)                       \
55b8021494Sopenharmony_ci  M(bic)                       \
56b8021494Sopenharmony_ci  M(eor)                       \
57b8021494Sopenharmony_ci  M(lsl)                       \
58b8021494Sopenharmony_ci  M(lsr)                       \
59b8021494Sopenharmony_ci  M(orr)                       \
60b8021494Sopenharmony_ci  M(ror)                       \
61b8021494Sopenharmony_ci  M(sbc)
62b8021494Sopenharmony_ci
63b8021494Sopenharmony_ci
64b8021494Sopenharmony_ci// The following definitions are defined again in each generated test, therefore
65b8021494Sopenharmony_ci// we need to place them in an anonymous namespace. It expresses that they are
66b8021494Sopenharmony_ci// local to this file only, and the compiler is not allowed to share these types
67b8021494Sopenharmony_ci// across test files during template instantiation. Specifically, `Operands` has
68b8021494Sopenharmony_ci// various layouts across generated tests so it absolutely cannot be shared.
69b8021494Sopenharmony_ci
70b8021494Sopenharmony_ci#ifdef VIXL_INCLUDE_TARGET_T32
71b8021494Sopenharmony_cinamespace {
72b8021494Sopenharmony_ci
73b8021494Sopenharmony_ci// Values to be passed to the assembler to produce the instruction under test.
74b8021494Sopenharmony_cistruct Operands {
75b8021494Sopenharmony_ci  Condition cond;
76b8021494Sopenharmony_ci  Register rd;
77b8021494Sopenharmony_ci  Register rn;
78b8021494Sopenharmony_ci  Register rm;
79b8021494Sopenharmony_ci};
80b8021494Sopenharmony_ci
81b8021494Sopenharmony_ci// This structure contains all data needed to test one specific
82b8021494Sopenharmony_ci// instruction.
83b8021494Sopenharmony_cistruct TestData {
84b8021494Sopenharmony_ci  // The `operands` field represents what to pass to the assembler to
85b8021494Sopenharmony_ci  // produce the instruction.
86b8021494Sopenharmony_ci  Operands operands;
87b8021494Sopenharmony_ci  // True if we need to generate an IT instruction for this test to be valid.
88b8021494Sopenharmony_ci  bool in_it_block;
89b8021494Sopenharmony_ci  // The condition to give the IT instruction, this will be set to "al" by
90b8021494Sopenharmony_ci  // default.
91b8021494Sopenharmony_ci  Condition it_condition;
92b8021494Sopenharmony_ci  // Description of the operands, used for error reporting.
93b8021494Sopenharmony_ci  const char* operands_description;
94b8021494Sopenharmony_ci  // Unique identifier, used for generating traces.
95b8021494Sopenharmony_ci  const char* identifier;
96b8021494Sopenharmony_ci};
97b8021494Sopenharmony_ci
98b8021494Sopenharmony_cistruct TestResult {
99b8021494Sopenharmony_ci  size_t size;
100b8021494Sopenharmony_ci  const byte* encoding;
101b8021494Sopenharmony_ci};
102b8021494Sopenharmony_ci
103b8021494Sopenharmony_ci// Each element of this array produce one instruction encoding.
104b8021494Sopenharmony_ciconst TestData kTests[] =
105b8021494Sopenharmony_ci    {{{gt, r3, r3, r0}, true, gt, "gt r3 r3 r0", "gt_r3_r3_r0"},
106b8021494Sopenharmony_ci     {{ge, r6, r6, r1}, true, ge, "ge r6 r6 r1", "ge_r6_r6_r1"},
107b8021494Sopenharmony_ci     {{gt, r7, r7, r1}, true, gt, "gt r7 r7 r1", "gt_r7_r7_r1"},
108b8021494Sopenharmony_ci     {{gt, r2, r2, r0}, true, gt, "gt r2 r2 r0", "gt_r2_r2_r0"},
109b8021494Sopenharmony_ci     {{eq, r5, r5, r2}, true, eq, "eq r5 r5 r2", "eq_r5_r5_r2"},
110b8021494Sopenharmony_ci     {{gt, r0, r0, r0}, true, gt, "gt r0 r0 r0", "gt_r0_r0_r0"},
111b8021494Sopenharmony_ci     {{lt, r0, r0, r4}, true, lt, "lt r0 r0 r4", "lt_r0_r0_r4"},
112b8021494Sopenharmony_ci     {{hi, r6, r6, r3}, true, hi, "hi r6 r6 r3", "hi_r6_r6_r3"},
113b8021494Sopenharmony_ci     {{ge, r7, r7, r6}, true, ge, "ge r7 r7 r6", "ge_r7_r7_r6"},
114b8021494Sopenharmony_ci     {{eq, r5, r5, r5}, true, eq, "eq r5 r5 r5", "eq_r5_r5_r5"},
115b8021494Sopenharmony_ci     {{cc, r1, r1, r0}, true, cc, "cc r1 r1 r0", "cc_r1_r1_r0"},
116b8021494Sopenharmony_ci     {{cc, r1, r1, r1}, true, cc, "cc r1 r1 r1", "cc_r1_r1_r1"},
117b8021494Sopenharmony_ci     {{cc, r4, r4, r3}, true, cc, "cc r4 r4 r3", "cc_r4_r4_r3"},
118b8021494Sopenharmony_ci     {{mi, r5, r5, r3}, true, mi, "mi r5 r5 r3", "mi_r5_r5_r3"},
119b8021494Sopenharmony_ci     {{cs, r3, r3, r0}, true, cs, "cs r3 r3 r0", "cs_r3_r3_r0"},
120b8021494Sopenharmony_ci     {{pl, r0, r0, r6}, true, pl, "pl r0 r0 r6", "pl_r0_r0_r6"},
121b8021494Sopenharmony_ci     {{cc, r4, r4, r4}, true, cc, "cc r4 r4 r4", "cc_r4_r4_r4"},
122b8021494Sopenharmony_ci     {{cc, r3, r3, r6}, true, cc, "cc r3 r3 r6", "cc_r3_r3_r6"},
123b8021494Sopenharmony_ci     {{hi, r7, r7, r3}, true, hi, "hi r7 r7 r3", "hi_r7_r7_r3"},
124b8021494Sopenharmony_ci     {{vs, r7, r7, r5}, true, vs, "vs r7 r7 r5", "vs_r7_r7_r5"},
125b8021494Sopenharmony_ci     {{le, r2, r2, r7}, true, le, "le r2 r2 r7", "le_r2_r2_r7"},
126b8021494Sopenharmony_ci     {{le, r5, r5, r3}, true, le, "le r5 r5 r3", "le_r5_r5_r3"},
127b8021494Sopenharmony_ci     {{vs, r1, r1, r5}, true, vs, "vs r1 r1 r5", "vs_r1_r1_r5"},
128b8021494Sopenharmony_ci     {{vs, r7, r7, r3}, true, vs, "vs r7 r7 r3", "vs_r7_r7_r3"},
129b8021494Sopenharmony_ci     {{cc, r0, r0, r3}, true, cc, "cc r0 r0 r3", "cc_r0_r0_r3"},
130b8021494Sopenharmony_ci     {{cc, r2, r2, r5}, true, cc, "cc r2 r2 r5", "cc_r2_r2_r5"},
131b8021494Sopenharmony_ci     {{gt, r7, r7, r7}, true, gt, "gt r7 r7 r7", "gt_r7_r7_r7"},
132b8021494Sopenharmony_ci     {{ls, r7, r7, r2}, true, ls, "ls r7 r7 r2", "ls_r7_r7_r2"},
133b8021494Sopenharmony_ci     {{lt, r0, r0, r2}, true, lt, "lt r0 r0 r2", "lt_r0_r0_r2"},
134b8021494Sopenharmony_ci     {{ne, r3, r3, r4}, true, ne, "ne r3 r3 r4", "ne_r3_r3_r4"},
135b8021494Sopenharmony_ci     {{ge, r3, r3, r7}, true, ge, "ge r3 r3 r7", "ge_r3_r3_r7"},
136b8021494Sopenharmony_ci     {{hi, r5, r5, r7}, true, hi, "hi r5 r5 r7", "hi_r5_r5_r7"},
137b8021494Sopenharmony_ci     {{vc, r0, r0, r3}, true, vc, "vc r0 r0 r3", "vc_r0_r0_r3"},
138b8021494Sopenharmony_ci     {{cc, r7, r7, r3}, true, cc, "cc r7 r7 r3", "cc_r7_r7_r3"},
139b8021494Sopenharmony_ci     {{ls, r5, r5, r4}, true, ls, "ls r5 r5 r4", "ls_r5_r5_r4"},
140b8021494Sopenharmony_ci     {{vc, r0, r0, r1}, true, vc, "vc r0 r0 r1", "vc_r0_r0_r1"},
141b8021494Sopenharmony_ci     {{hi, r0, r0, r6}, true, hi, "hi r0 r0 r6", "hi_r0_r0_r6"},
142b8021494Sopenharmony_ci     {{mi, r7, r7, r3}, true, mi, "mi r7 r7 r3", "mi_r7_r7_r3"},
143b8021494Sopenharmony_ci     {{cc, r7, r7, r4}, true, cc, "cc r7 r7 r4", "cc_r7_r7_r4"},
144b8021494Sopenharmony_ci     {{pl, r0, r0, r3}, true, pl, "pl r0 r0 r3", "pl_r0_r0_r3"},
145b8021494Sopenharmony_ci     {{ls, r5, r5, r0}, true, ls, "ls r5 r5 r0", "ls_r5_r5_r0"},
146b8021494Sopenharmony_ci     {{ls, r2, r2, r5}, true, ls, "ls r2 r2 r5", "ls_r2_r2_r5"},
147b8021494Sopenharmony_ci     {{ls, r0, r0, r3}, true, ls, "ls r0 r0 r3", "ls_r0_r0_r3"},
148b8021494Sopenharmony_ci     {{pl, r5, r5, r1}, true, pl, "pl r5 r5 r1", "pl_r5_r5_r1"},
149b8021494Sopenharmony_ci     {{mi, r1, r1, r1}, true, mi, "mi r1 r1 r1", "mi_r1_r1_r1"},
150b8021494Sopenharmony_ci     {{ls, r5, r5, r3}, true, ls, "ls r5 r5 r3", "ls_r5_r5_r3"},
151b8021494Sopenharmony_ci     {{gt, r2, r2, r7}, true, gt, "gt r2 r2 r7", "gt_r2_r2_r7"},
152b8021494Sopenharmony_ci     {{ge, r2, r2, r5}, true, ge, "ge r2 r2 r5", "ge_r2_r2_r5"},
153b8021494Sopenharmony_ci     {{gt, r7, r7, r3}, true, gt, "gt r7 r7 r3", "gt_r7_r7_r3"},
154b8021494Sopenharmony_ci     {{vs, r6, r6, r3}, true, vs, "vs r6 r6 r3", "vs_r6_r6_r3"},
155b8021494Sopenharmony_ci     {{cc, r1, r1, r7}, true, cc, "cc r1 r1 r7", "cc_r1_r1_r7"},
156b8021494Sopenharmony_ci     {{ls, r0, r0, r1}, true, ls, "ls r0 r0 r1", "ls_r0_r0_r1"},
157b8021494Sopenharmony_ci     {{gt, r3, r3, r1}, true, gt, "gt r3 r3 r1", "gt_r3_r3_r1"},
158b8021494Sopenharmony_ci     {{cs, r7, r7, r3}, true, cs, "cs r7 r7 r3", "cs_r7_r7_r3"},
159b8021494Sopenharmony_ci     {{gt, r5, r5, r3}, true, gt, "gt r5 r5 r3", "gt_r5_r5_r3"},
160b8021494Sopenharmony_ci     {{le, r2, r2, r5}, true, le, "le r2 r2 r5", "le_r2_r2_r5"},
161b8021494Sopenharmony_ci     {{ne, r1, r1, r0}, true, ne, "ne r1 r1 r0", "ne_r1_r1_r0"},
162b8021494Sopenharmony_ci     {{ne, r7, r7, r7}, true, ne, "ne r7 r7 r7", "ne_r7_r7_r7"},
163b8021494Sopenharmony_ci     {{lt, r2, r2, r1}, true, lt, "lt r2 r2 r1", "lt_r2_r2_r1"},
164b8021494Sopenharmony_ci     {{vs, r3, r3, r1}, true, vs, "vs r3 r3 r1", "vs_r3_r3_r1"},
165b8021494Sopenharmony_ci     {{gt, r7, r7, r5}, true, gt, "gt r7 r7 r5", "gt_r7_r7_r5"},
166b8021494Sopenharmony_ci     {{ls, r6, r6, r1}, true, ls, "ls r6 r6 r1", "ls_r6_r6_r1"},
167b8021494Sopenharmony_ci     {{pl, r7, r7, r4}, true, pl, "pl r7 r7 r4", "pl_r7_r7_r4"},
168b8021494Sopenharmony_ci     {{ls, r6, r6, r7}, true, ls, "ls r6 r6 r7", "ls_r6_r6_r7"},
169b8021494Sopenharmony_ci     {{eq, r5, r5, r3}, true, eq, "eq r5 r5 r3", "eq_r5_r5_r3"},
170b8021494Sopenharmony_ci     {{lt, r2, r2, r7}, true, lt, "lt r2 r2 r7", "lt_r2_r2_r7"},
171b8021494Sopenharmony_ci     {{pl, r7, r7, r6}, true, pl, "pl r7 r7 r6", "pl_r7_r7_r6"},
172b8021494Sopenharmony_ci     {{cs, r1, r1, r6}, true, cs, "cs r1 r1 r6", "cs_r1_r1_r6"},
173b8021494Sopenharmony_ci     {{cs, r0, r0, r3}, true, cs, "cs r0 r0 r3", "cs_r0_r0_r3"},
174b8021494Sopenharmony_ci     {{mi, r3, r3, r2}, true, mi, "mi r3 r3 r2", "mi_r3_r3_r2"},
175b8021494Sopenharmony_ci     {{eq, r4, r4, r5}, true, eq, "eq r4 r4 r5", "eq_r4_r4_r5"},
176b8021494Sopenharmony_ci     {{cs, r3, r3, r4}, true, cs, "cs r3 r3 r4", "cs_r3_r3_r4"},
177b8021494Sopenharmony_ci     {{ls, r7, r7, r6}, true, ls, "ls r7 r7 r6", "ls_r7_r7_r6"},
178b8021494Sopenharmony_ci     {{vs, r0, r0, r7}, true, vs, "vs r0 r0 r7", "vs_r0_r0_r7"},
179b8021494Sopenharmony_ci     {{pl, r2, r2, r1}, true, pl, "pl r2 r2 r1", "pl_r2_r2_r1"},
180b8021494Sopenharmony_ci     {{vs, r0, r0, r5}, true, vs, "vs r0 r0 r5", "vs_r0_r0_r5"},
181b8021494Sopenharmony_ci     {{vc, r4, r4, r2}, true, vc, "vc r4 r4 r2", "vc_r4_r4_r2"},
182b8021494Sopenharmony_ci     {{vc, r4, r4, r7}, true, vc, "vc r4 r4 r7", "vc_r4_r4_r7"},
183b8021494Sopenharmony_ci     {{cs, r4, r4, r7}, true, cs, "cs r4 r4 r7", "cs_r4_r4_r7"},
184b8021494Sopenharmony_ci     {{ne, r5, r5, r2}, true, ne, "ne r5 r5 r2", "ne_r5_r5_r2"},
185b8021494Sopenharmony_ci     {{eq, r1, r1, r5}, true, eq, "eq r1 r1 r5", "eq_r1_r1_r5"},
186b8021494Sopenharmony_ci     {{cc, r0, r0, r7}, true, cc, "cc r0 r0 r7", "cc_r0_r0_r7"},
187b8021494Sopenharmony_ci     {{lt, r4, r4, r0}, true, lt, "lt r4 r4 r0", "lt_r4_r4_r0"},
188b8021494Sopenharmony_ci     {{eq, r2, r2, r6}, true, eq, "eq r2 r2 r6", "eq_r2_r2_r6"},
189b8021494Sopenharmony_ci     {{le, r2, r2, r1}, true, le, "le r2 r2 r1", "le_r2_r2_r1"},
190b8021494Sopenharmony_ci     {{mi, r4, r4, r4}, true, mi, "mi r4 r4 r4", "mi_r4_r4_r4"},
191b8021494Sopenharmony_ci     {{ne, r5, r5, r6}, true, ne, "ne r5 r5 r6", "ne_r5_r5_r6"},
192b8021494Sopenharmony_ci     {{gt, r0, r0, r7}, true, gt, "gt r0 r0 r7", "gt_r0_r0_r7"},
193b8021494Sopenharmony_ci     {{hi, r2, r2, r7}, true, hi, "hi r2 r2 r7", "hi_r2_r2_r7"},
194b8021494Sopenharmony_ci     {{vs, r5, r5, r6}, true, vs, "vs r5 r5 r6", "vs_r5_r5_r6"},
195b8021494Sopenharmony_ci     {{eq, r4, r4, r1}, true, eq, "eq r4 r4 r1", "eq_r4_r4_r1"},
196b8021494Sopenharmony_ci     {{eq, r7, r7, r0}, true, eq, "eq r7 r7 r0", "eq_r7_r7_r0"},
197b8021494Sopenharmony_ci     {{ne, r2, r2, r6}, true, ne, "ne r2 r2 r6", "ne_r2_r2_r6"},
198b8021494Sopenharmony_ci     {{vc, r4, r4, r1}, true, vc, "vc r4 r4 r1", "vc_r4_r4_r1"},
199b8021494Sopenharmony_ci     {{le, r2, r2, r0}, true, le, "le r2 r2 r0", "le_r2_r2_r0"},
200b8021494Sopenharmony_ci     {{lt, r5, r5, r5}, true, lt, "lt r5 r5 r5", "lt_r5_r5_r5"},
201b8021494Sopenharmony_ci     {{pl, r3, r3, r7}, true, pl, "pl r3 r3 r7", "pl_r3_r3_r7"},
202b8021494Sopenharmony_ci     {{pl, r1, r1, r5}, true, pl, "pl r1 r1 r5", "pl_r1_r1_r5"},
203b8021494Sopenharmony_ci     {{le, r3, r3, r1}, true, le, "le r3 r3 r1", "le_r3_r3_r1"},
204b8021494Sopenharmony_ci     {{vs, r3, r3, r2}, true, vs, "vs r3 r3 r2", "vs_r3_r3_r2"},
205b8021494Sopenharmony_ci     {{pl, r1, r1, r3}, true, pl, "pl r1 r1 r3", "pl_r1_r1_r3"},
206b8021494Sopenharmony_ci     {{le, r4, r4, r3}, true, le, "le r4 r4 r3", "le_r4_r4_r3"},
207b8021494Sopenharmony_ci     {{vs, r6, r6, r1}, true, vs, "vs r6 r6 r1", "vs_r6_r6_r1"},
208b8021494Sopenharmony_ci     {{cs, r1, r1, r1}, true, cs, "cs r1 r1 r1", "cs_r1_r1_r1"},
209b8021494Sopenharmony_ci     {{ge, r2, r2, r6}, true, ge, "ge r2 r2 r6", "ge_r2_r2_r6"},
210b8021494Sopenharmony_ci     {{ls, r0, r0, r0}, true, ls, "ls r0 r0 r0", "ls_r0_r0_r0"},
211b8021494Sopenharmony_ci     {{mi, r5, r5, r1}, true, mi, "mi r5 r5 r1", "mi_r5_r5_r1"},
212b8021494Sopenharmony_ci     {{hi, r4, r4, r1}, true, hi, "hi r4 r4 r1", "hi_r4_r4_r1"},
213b8021494Sopenharmony_ci     {{eq, r3, r3, r2}, true, eq, "eq r3 r3 r2", "eq_r3_r3_r2"},
214b8021494Sopenharmony_ci     {{cc, r5, r5, r1}, true, cc, "cc r5 r5 r1", "cc_r5_r5_r1"},
215b8021494Sopenharmony_ci     {{eq, r6, r6, r2}, true, eq, "eq r6 r6 r2", "eq_r6_r6_r2"},
216b8021494Sopenharmony_ci     {{hi, r4, r4, r2}, true, hi, "hi r4 r4 r2", "hi_r4_r4_r2"},
217b8021494Sopenharmony_ci     {{gt, r5, r5, r0}, true, gt, "gt r5 r5 r0", "gt_r5_r5_r0"},
218b8021494Sopenharmony_ci     {{hi, r3, r3, r2}, true, hi, "hi r3 r3 r2", "hi_r3_r3_r2"},
219b8021494Sopenharmony_ci     {{pl, r0, r0, r0}, true, pl, "pl r0 r0 r0", "pl_r0_r0_r0"},
220b8021494Sopenharmony_ci     {{lt, r3, r3, r7}, true, lt, "lt r3 r3 r7", "lt_r3_r3_r7"},
221b8021494Sopenharmony_ci     {{ls, r7, r7, r1}, true, ls, "ls r7 r7 r1", "ls_r7_r7_r1"},
222b8021494Sopenharmony_ci     {{gt, r3, r3, r3}, true, gt, "gt r3 r3 r3", "gt_r3_r3_r3"},
223b8021494Sopenharmony_ci     {{cs, r6, r6, r6}, true, cs, "cs r6 r6 r6", "cs_r6_r6_r6"},
224b8021494Sopenharmony_ci     {{cc, r3, r3, r2}, true, cc, "cc r3 r3 r2", "cc_r3_r3_r2"},
225b8021494Sopenharmony_ci     {{ne, r4, r4, r0}, true, ne, "ne r4 r4 r0", "ne_r4_r4_r0"},
226b8021494Sopenharmony_ci     {{vs, r4, r4, r5}, true, vs, "vs r4 r4 r5", "vs_r4_r4_r5"},
227b8021494Sopenharmony_ci     {{ge, r6, r6, r4}, true, ge, "ge r6 r6 r4", "ge_r6_r6_r4"},
228b8021494Sopenharmony_ci     {{ne, r5, r5, r3}, true, ne, "ne r5 r5 r3", "ne_r5_r5_r3"},
229b8021494Sopenharmony_ci     {{vs, r3, r3, r0}, true, vs, "vs r3 r3 r0", "vs_r3_r3_r0"},
230b8021494Sopenharmony_ci     {{lt, r5, r5, r2}, true, lt, "lt r5 r5 r2", "lt_r5_r5_r2"},
231b8021494Sopenharmony_ci     {{lt, r6, r6, r4}, true, lt, "lt r6 r6 r4", "lt_r6_r6_r4"},
232b8021494Sopenharmony_ci     {{hi, r2, r2, r5}, true, hi, "hi r2 r2 r5", "hi_r2_r2_r5"},
233b8021494Sopenharmony_ci     {{eq, r7, r7, r5}, true, eq, "eq r7 r7 r5", "eq_r7_r7_r5"},
234b8021494Sopenharmony_ci     {{lt, r4, r4, r5}, true, lt, "lt r4 r4 r5", "lt_r4_r4_r5"},
235b8021494Sopenharmony_ci     {{ls, r7, r7, r3}, true, ls, "ls r7 r7 r3", "ls_r7_r7_r3"},
236b8021494Sopenharmony_ci     {{lt, r3, r3, r5}, true, lt, "lt r3 r3 r5", "lt_r3_r3_r5"},
237b8021494Sopenharmony_ci     {{cs, r5, r5, r0}, true, cs, "cs r5 r5 r0", "cs_r5_r5_r0"},
238b8021494Sopenharmony_ci     {{vc, r2, r2, r3}, true, vc, "vc r2 r2 r3", "vc_r2_r2_r3"},
239b8021494Sopenharmony_ci     {{cs, r1, r1, r4}, true, cs, "cs r1 r1 r4", "cs_r1_r1_r4"},
240b8021494Sopenharmony_ci     {{pl, r5, r5, r4}, true, pl, "pl r5 r5 r4", "pl_r5_r5_r4"},
241b8021494Sopenharmony_ci     {{hi, r7, r7, r4}, true, hi, "hi r7 r7 r4", "hi_r7_r7_r4"},
242b8021494Sopenharmony_ci     {{ge, r3, r3, r6}, true, ge, "ge r3 r3 r6", "ge_r3_r3_r6"},
243b8021494Sopenharmony_ci     {{ls, r3, r3, r2}, true, ls, "ls r3 r3 r2", "ls_r3_r3_r2"},
244b8021494Sopenharmony_ci     {{mi, r3, r3, r3}, true, mi, "mi r3 r3 r3", "mi_r3_r3_r3"},
245b8021494Sopenharmony_ci     {{le, r6, r6, r5}, true, le, "le r6 r6 r5", "le_r6_r6_r5"},
246b8021494Sopenharmony_ci     {{pl, r5, r5, r7}, true, pl, "pl r5 r5 r7", "pl_r5_r5_r7"},
247b8021494Sopenharmony_ci     {{ne, r2, r2, r3}, true, ne, "ne r2 r2 r3", "ne_r2_r2_r3"},
248b8021494Sopenharmony_ci     {{ls, r2, r2, r6}, true, ls, "ls r2 r2 r6", "ls_r2_r2_r6"},
249b8021494Sopenharmony_ci     {{le, r1, r1, r6}, true, le, "le r1 r1 r6", "le_r1_r1_r6"},
250b8021494Sopenharmony_ci     {{cc, r6, r6, r7}, true, cc, "cc r6 r6 r7", "cc_r6_r6_r7"},
251b8021494Sopenharmony_ci     {{pl, r4, r4, r3}, true, pl, "pl r4 r4 r3", "pl_r4_r4_r3"},
252b8021494Sopenharmony_ci     {{ne, r0, r0, r3}, true, ne, "ne r0 r0 r3", "ne_r0_r0_r3"},
253b8021494Sopenharmony_ci     {{cc, r6, r6, r6}, true, cc, "cc r6 r6 r6", "cc_r6_r6_r6"},
254b8021494Sopenharmony_ci     {{ls, r7, r7, r5}, true, ls, "ls r7 r7 r5", "ls_r7_r7_r5"},
255b8021494Sopenharmony_ci     {{ls, r1, r1, r5}, true, ls, "ls r1 r1 r5", "ls_r1_r1_r5"},
256b8021494Sopenharmony_ci     {{le, r0, r0, r0}, true, le, "le r0 r0 r0", "le_r0_r0_r0"},
257b8021494Sopenharmony_ci     {{ge, r4, r4, r6}, true, ge, "ge r4 r4 r6", "ge_r4_r4_r6"},
258b8021494Sopenharmony_ci     {{cc, r1, r1, r6}, true, cc, "cc r1 r1 r6", "cc_r1_r1_r6"},
259b8021494Sopenharmony_ci     {{eq, r4, r4, r3}, true, eq, "eq r4 r4 r3", "eq_r4_r4_r3"},
260b8021494Sopenharmony_ci     {{ls, r7, r7, r4}, true, ls, "ls r7 r7 r4", "ls_r7_r7_r4"},
261b8021494Sopenharmony_ci     {{eq, r3, r3, r0}, true, eq, "eq r3 r3 r0", "eq_r3_r3_r0"},
262b8021494Sopenharmony_ci     {{lt, r4, r4, r3}, true, lt, "lt r4 r4 r3", "lt_r4_r4_r3"},
263b8021494Sopenharmony_ci     {{le, r3, r3, r4}, true, le, "le r3 r3 r4", "le_r3_r3_r4"},
264b8021494Sopenharmony_ci     {{le, r4, r4, r4}, true, le, "le r4 r4 r4", "le_r4_r4_r4"},
265b8021494Sopenharmony_ci     {{ge, r0, r0, r6}, true, ge, "ge r0 r0 r6", "ge_r0_r0_r6"},
266b8021494Sopenharmony_ci     {{hi, r7, r7, r2}, true, hi, "hi r7 r7 r2", "hi_r7_r7_r2"},
267b8021494Sopenharmony_ci     {{pl, r5, r5, r6}, true, pl, "pl r5 r5 r6", "pl_r5_r5_r6"},
268b8021494Sopenharmony_ci     {{pl, r4, r4, r7}, true, pl, "pl r4 r4 r7", "pl_r4_r4_r7"},
269b8021494Sopenharmony_ci     {{gt, r3, r3, r6}, true, gt, "gt r3 r3 r6", "gt_r3_r3_r6"},
270b8021494Sopenharmony_ci     {{eq, r6, r6, r6}, true, eq, "eq r6 r6 r6", "eq_r6_r6_r6"},
271b8021494Sopenharmony_ci     {{cc, r5, r5, r0}, true, cc, "cc r5 r5 r0", "cc_r5_r5_r0"},
272b8021494Sopenharmony_ci     {{hi, r5, r5, r0}, true, hi, "hi r5 r5 r0", "hi_r5_r5_r0"},
273b8021494Sopenharmony_ci     {{gt, r5, r5, r5}, true, gt, "gt r5 r5 r5", "gt_r5_r5_r5"},
274b8021494Sopenharmony_ci     {{vs, r2, r2, r4}, true, vs, "vs r2 r2 r4", "vs_r2_r2_r4"},
275b8021494Sopenharmony_ci     {{vs, r1, r1, r3}, true, vs, "vs r1 r1 r3", "vs_r1_r1_r3"},
276b8021494Sopenharmony_ci     {{lt, r7, r7, r6}, true, lt, "lt r7 r7 r6", "lt_r7_r7_r6"},
277b8021494Sopenharmony_ci     {{ge, r2, r2, r2}, true, ge, "ge r2 r2 r2", "ge_r2_r2_r2"},
278b8021494Sopenharmony_ci     {{mi, r1, r1, r5}, true, mi, "mi r1 r1 r5", "mi_r1_r1_r5"},
279b8021494Sopenharmony_ci     {{ge, r5, r5, r0}, true, ge, "ge r5 r5 r0", "ge_r5_r5_r0"},
280b8021494Sopenharmony_ci     {{le, r6, r6, r3}, true, le, "le r6 r6 r3", "le_r6_r6_r3"},
281b8021494Sopenharmony_ci     {{hi, r7, r7, r5}, true, hi, "hi r7 r7 r5", "hi_r7_r7_r5"},
282b8021494Sopenharmony_ci     {{gt, r3, r3, r4}, true, gt, "gt r3 r3 r4", "gt_r3_r3_r4"},
283b8021494Sopenharmony_ci     {{cc, r3, r3, r3}, true, cc, "cc r3 r3 r3", "cc_r3_r3_r3"},
284b8021494Sopenharmony_ci     {{hi, r2, r2, r2}, true, hi, "hi r2 r2 r2", "hi_r2_r2_r2"},
285b8021494Sopenharmony_ci     {{lt, r7, r7, r3}, true, lt, "lt r7 r7 r3", "lt_r7_r7_r3"},
286b8021494Sopenharmony_ci     {{ls, r6, r6, r6}, true, ls, "ls r6 r6 r6", "ls_r6_r6_r6"},
287b8021494Sopenharmony_ci     {{le, r7, r7, r7}, true, le, "le r7 r7 r7", "le_r7_r7_r7"},
288b8021494Sopenharmony_ci     {{cs, r4, r4, r6}, true, cs, "cs r4 r4 r6", "cs_r4_r4_r6"},
289b8021494Sopenharmony_ci     {{ge, r5, r5, r4}, true, ge, "ge r5 r5 r4", "ge_r5_r5_r4"},
290b8021494Sopenharmony_ci     {{ge, r1, r1, r2}, true, ge, "ge r1 r1 r2", "ge_r1_r1_r2"},
291b8021494Sopenharmony_ci     {{pl, r0, r0, r7}, true, pl, "pl r0 r0 r7", "pl_r0_r0_r7"},
292b8021494Sopenharmony_ci     {{vs, r1, r1, r2}, true, vs, "vs r1 r1 r2", "vs_r1_r1_r2"},
293b8021494Sopenharmony_ci     {{mi, r6, r6, r5}, true, mi, "mi r6 r6 r5", "mi_r6_r6_r5"},
294b8021494Sopenharmony_ci     {{mi, r0, r0, r1}, true, mi, "mi r0 r0 r1", "mi_r0_r0_r1"},
295b8021494Sopenharmony_ci     {{vc, r0, r0, r5}, true, vc, "vc r0 r0 r5", "vc_r0_r0_r5"},
296b8021494Sopenharmony_ci     {{cc, r5, r5, r5}, true, cc, "cc r5 r5 r5", "cc_r5_r5_r5"},
297b8021494Sopenharmony_ci     {{pl, r5, r5, r5}, true, pl, "pl r5 r5 r5", "pl_r5_r5_r5"},
298b8021494Sopenharmony_ci     {{ne, r2, r2, r0}, true, ne, "ne r2 r2 r0", "ne_r2_r2_r0"},
299b8021494Sopenharmony_ci     {{cc, r3, r3, r4}, true, cc, "cc r3 r3 r4", "cc_r3_r3_r4"},
300b8021494Sopenharmony_ci     {{ls, r3, r3, r3}, true, ls, "ls r3 r3 r3", "ls_r3_r3_r3"},
301b8021494Sopenharmony_ci     {{cc, r2, r2, r1}, true, cc, "cc r2 r2 r1", "cc_r2_r2_r1"},
302b8021494Sopenharmony_ci     {{ge, r3, r3, r4}, true, ge, "ge r3 r3 r4", "ge_r3_r3_r4"},
303b8021494Sopenharmony_ci     {{ne, r0, r0, r6}, true, ne, "ne r0 r0 r6", "ne_r0_r0_r6"},
304b8021494Sopenharmony_ci     {{vs, r2, r2, r0}, true, vs, "vs r2 r2 r0", "vs_r2_r2_r0"},
305b8021494Sopenharmony_ci     {{ne, r1, r1, r2}, true, ne, "ne r1 r1 r2", "ne_r1_r1_r2"},
306b8021494Sopenharmony_ci     {{ne, r6, r6, r5}, true, ne, "ne r6 r6 r5", "ne_r6_r6_r5"},
307b8021494Sopenharmony_ci     {{pl, r7, r7, r0}, true, pl, "pl r7 r7 r0", "pl_r7_r7_r0"},
308b8021494Sopenharmony_ci     {{pl, r6, r6, r2}, true, pl, "pl r6 r6 r2", "pl_r6_r6_r2"},
309b8021494Sopenharmony_ci     {{pl, r1, r1, r2}, true, pl, "pl r1 r1 r2", "pl_r1_r1_r2"},
310b8021494Sopenharmony_ci     {{gt, r6, r6, r3}, true, gt, "gt r6 r6 r3", "gt_r6_r6_r3"},
311b8021494Sopenharmony_ci     {{vc, r0, r0, r4}, true, vc, "vc r0 r0 r4", "vc_r0_r0_r4"},
312b8021494Sopenharmony_ci     {{vc, r4, r4, r5}, true, vc, "vc r4 r4 r5", "vc_r4_r4_r5"},
313b8021494Sopenharmony_ci     {{vs, r2, r2, r3}, true, vs, "vs r2 r2 r3", "vs_r2_r2_r3"},
314b8021494Sopenharmony_ci     {{pl, r2, r2, r3}, true, pl, "pl r2 r2 r3", "pl_r2_r2_r3"},
315b8021494Sopenharmony_ci     {{hi, r5, r5, r2}, true, hi, "hi r5 r5 r2", "hi_r5_r5_r2"},
316b8021494Sopenharmony_ci     {{le, r6, r6, r1}, true, le, "le r6 r6 r1", "le_r6_r6_r1"},
317b8021494Sopenharmony_ci     {{ne, r3, r3, r0}, true, ne, "ne r3 r3 r0", "ne_r3_r3_r0"},
318b8021494Sopenharmony_ci     {{mi, r7, r7, r1}, true, mi, "mi r7 r7 r1", "mi_r7_r7_r1"},
319b8021494Sopenharmony_ci     {{lt, r7, r7, r7}, true, lt, "lt r7 r7 r7", "lt_r7_r7_r7"},
320b8021494Sopenharmony_ci     {{gt, r5, r5, r7}, true, gt, "gt r5 r5 r7", "gt_r5_r5_r7"},
321b8021494Sopenharmony_ci     {{vc, r1, r1, r1}, true, vc, "vc r1 r1 r1", "vc_r1_r1_r1"},
322b8021494Sopenharmony_ci     {{lt, r1, r1, r2}, true, lt, "lt r1 r1 r2", "lt_r1_r1_r2"},
323b8021494Sopenharmony_ci     {{vs, r6, r6, r6}, true, vs, "vs r6 r6 r6", "vs_r6_r6_r6"},
324b8021494Sopenharmony_ci     {{le, r5, r5, r5}, true, le, "le r5 r5 r5", "le_r5_r5_r5"},
325b8021494Sopenharmony_ci     {{gt, r6, r6, r7}, true, gt, "gt r6 r6 r7", "gt_r6_r6_r7"},
326b8021494Sopenharmony_ci     {{cc, r3, r3, r1}, true, cc, "cc r3 r3 r1", "cc_r3_r3_r1"},
327b8021494Sopenharmony_ci     {{ls, r1, r1, r0}, true, ls, "ls r1 r1 r0", "ls_r1_r1_r0"},
328b8021494Sopenharmony_ci     {{vs, r6, r6, r2}, true, vs, "vs r6 r6 r2", "vs_r6_r6_r2"},
329b8021494Sopenharmony_ci     {{mi, r7, r7, r0}, true, mi, "mi r7 r7 r0", "mi_r7_r7_r0"},
330b8021494Sopenharmony_ci     {{gt, r0, r0, r1}, true, gt, "gt r0 r0 r1", "gt_r0_r0_r1"},
331b8021494Sopenharmony_ci     {{ne, r0, r0, r0}, true, ne, "ne r0 r0 r0", "ne_r0_r0_r0"},
332b8021494Sopenharmony_ci     {{lt, r6, r6, r1}, true, lt, "lt r6 r6 r1", "lt_r6_r6_r1"},
333b8021494Sopenharmony_ci     {{ge, r5, r5, r5}, true, ge, "ge r5 r5 r5", "ge_r5_r5_r5"},
334b8021494Sopenharmony_ci     {{lt, r2, r2, r4}, true, lt, "lt r2 r2 r4", "lt_r2_r2_r4"},
335b8021494Sopenharmony_ci     {{vs, r4, r4, r3}, true, vs, "vs r4 r4 r3", "vs_r4_r4_r3"},
336b8021494Sopenharmony_ci     {{cs, r5, r5, r2}, true, cs, "cs r5 r5 r2", "cs_r5_r5_r2"},
337b8021494Sopenharmony_ci     {{gt, r1, r1, r1}, true, gt, "gt r1 r1 r1", "gt_r1_r1_r1"},
338b8021494Sopenharmony_ci     {{cs, r5, r5, r6}, true, cs, "cs r5 r5 r6", "cs_r5_r5_r6"},
339b8021494Sopenharmony_ci     {{gt, r6, r6, r2}, true, gt, "gt r6 r6 r2", "gt_r6_r6_r2"},
340b8021494Sopenharmony_ci     {{cc, r2, r2, r0}, true, cc, "cc r2 r2 r0", "cc_r2_r2_r0"},
341b8021494Sopenharmony_ci     {{lt, r2, r2, r5}, true, lt, "lt r2 r2 r5", "lt_r2_r2_r5"},
342b8021494Sopenharmony_ci     {{mi, r1, r1, r6}, true, mi, "mi r1 r1 r6", "mi_r1_r1_r6"},
343b8021494Sopenharmony_ci     {{hi, r4, r4, r0}, true, hi, "hi r4 r4 r0", "hi_r4_r4_r0"},
344b8021494Sopenharmony_ci     {{le, r5, r5, r2}, true, le, "le r5 r5 r2", "le_r5_r5_r2"},
345b8021494Sopenharmony_ci     {{eq, r5, r5, r7}, true, eq, "eq r5 r5 r7", "eq_r5_r5_r7"},
346b8021494Sopenharmony_ci     {{eq, r5, r5, r0}, true, eq, "eq r5 r5 r0", "eq_r5_r5_r0"},
347b8021494Sopenharmony_ci     {{le, r0, r0, r1}, true, le, "le r0 r0 r1", "le_r0_r0_r1"},
348b8021494Sopenharmony_ci     {{cs, r2, r2, r4}, true, cs, "cs r2 r2 r4", "cs_r2_r2_r4"},
349b8021494Sopenharmony_ci     {{cc, r5, r5, r4}, true, cc, "cc r5 r5 r4", "cc_r5_r5_r4"},
350b8021494Sopenharmony_ci     {{mi, r5, r5, r0}, true, mi, "mi r5 r5 r0", "mi_r5_r5_r0"},
351b8021494Sopenharmony_ci     {{le, r1, r1, r0}, true, le, "le r1 r1 r0", "le_r1_r1_r0"},
352b8021494Sopenharmony_ci     {{mi, r2, r2, r2}, true, mi, "mi r2 r2 r2", "mi_r2_r2_r2"},
353b8021494Sopenharmony_ci     {{ls, r4, r4, r2}, true, ls, "ls r4 r4 r2", "ls_r4_r4_r2"},
354b8021494Sopenharmony_ci     {{ne, r3, r3, r1}, true, ne, "ne r3 r3 r1", "ne_r3_r3_r1"},
355b8021494Sopenharmony_ci     {{hi, r3, r3, r1}, true, hi, "hi r3 r3 r1", "hi_r3_r3_r1"},
356b8021494Sopenharmony_ci     {{pl, r4, r4, r1}, true, pl, "pl r4 r4 r1", "pl_r4_r4_r1"},
357b8021494Sopenharmony_ci     {{pl, r7, r7, r7}, true, pl, "pl r7 r7 r7", "pl_r7_r7_r7"},
358b8021494Sopenharmony_ci     {{ge, r3, r3, r0}, true, ge, "ge r3 r3 r0", "ge_r3_r3_r0"},
359b8021494Sopenharmony_ci     {{vs, r6, r6, r0}, true, vs, "vs r6 r6 r0", "vs_r6_r6_r0"},
360b8021494Sopenharmony_ci     {{gt, r1, r1, r5}, true, gt, "gt r1 r1 r5", "gt_r1_r1_r5"},
361b8021494Sopenharmony_ci     {{ls, r1, r1, r7}, true, ls, "ls r1 r1 r7", "ls_r1_r1_r7"},
362b8021494Sopenharmony_ci     {{hi, r5, r5, r3}, true, hi, "hi r5 r5 r3", "hi_r5_r5_r3"},
363b8021494Sopenharmony_ci     {{ls, r5, r5, r2}, true, ls, "ls r5 r5 r2", "ls_r5_r5_r2"},
364b8021494Sopenharmony_ci     {{ls, r6, r6, r2}, true, ls, "ls r6 r6 r2", "ls_r6_r6_r2"},
365b8021494Sopenharmony_ci     {{cs, r7, r7, r7}, true, cs, "cs r7 r7 r7", "cs_r7_r7_r7"},
366b8021494Sopenharmony_ci     {{le, r3, r3, r2}, true, le, "le r3 r3 r2", "le_r3_r3_r2"},
367b8021494Sopenharmony_ci     {{le, r6, r6, r0}, true, le, "le r6 r6 r0", "le_r6_r6_r0"},
368b8021494Sopenharmony_ci     {{pl, r4, r4, r4}, true, pl, "pl r4 r4 r4", "pl_r4_r4_r4"},
369b8021494Sopenharmony_ci     {{ne, r1, r1, r3}, true, ne, "ne r1 r1 r3", "ne_r1_r1_r3"},
370b8021494Sopenharmony_ci     {{ge, r5, r5, r1}, true, ge, "ge r5 r5 r1", "ge_r5_r5_r1"},
371b8021494Sopenharmony_ci     {{eq, r4, r4, r7}, true, eq, "eq r4 r4 r7", "eq_r4_r4_r7"},
372b8021494Sopenharmony_ci     {{pl, r7, r7, r1}, true, pl, "pl r7 r7 r1", "pl_r7_r7_r1"},
373b8021494Sopenharmony_ci     {{vs, r6, r6, r7}, true, vs, "vs r6 r6 r7", "vs_r6_r6_r7"},
374b8021494Sopenharmony_ci     {{vc, r2, r2, r6}, true, vc, "vc r2 r2 r6", "vc_r2_r2_r6"},
375b8021494Sopenharmony_ci     {{hi, r7, r7, r6}, true, hi, "hi r7 r7 r6", "hi_r7_r7_r6"},
376b8021494Sopenharmony_ci     {{le, r1, r1, r1}, true, le, "le r1 r1 r1", "le_r1_r1_r1"},
377b8021494Sopenharmony_ci     {{cs, r4, r4, r1}, true, cs, "cs r4 r4 r1", "cs_r4_r4_r1"},
378b8021494Sopenharmony_ci     {{mi, r1, r1, r2}, true, mi, "mi r1 r1 r2", "mi_r1_r1_r2"},
379b8021494Sopenharmony_ci     {{pl, r3, r3, r5}, true, pl, "pl r3 r3 r5", "pl_r3_r3_r5"},
380b8021494Sopenharmony_ci     {{eq, r7, r7, r1}, true, eq, "eq r7 r7 r1", "eq_r7_r7_r1"},
381b8021494Sopenharmony_ci     {{cs, r0, r0, r5}, true, cs, "cs r0 r0 r5", "cs_r0_r0_r5"},
382b8021494Sopenharmony_ci     {{ge, r3, r3, r5}, true, ge, "ge r3 r3 r5", "ge_r3_r3_r5"},
383b8021494Sopenharmony_ci     {{pl, r6, r6, r3}, true, pl, "pl r6 r6 r3", "pl_r6_r6_r3"},
384b8021494Sopenharmony_ci     {{cc, r7, r7, r5}, true, cc, "cc r7 r7 r5", "cc_r7_r7_r5"},
385b8021494Sopenharmony_ci     {{lt, r4, r4, r6}, true, lt, "lt r4 r4 r6", "lt_r4_r4_r6"},
386b8021494Sopenharmony_ci     {{ne, r7, r7, r2}, true, ne, "ne r7 r7 r2", "ne_r7_r7_r2"},
387b8021494Sopenharmony_ci     {{vc, r3, r3, r0}, true, vc, "vc r3 r3 r0", "vc_r3_r3_r0"},
388b8021494Sopenharmony_ci     {{cc, r7, r7, r6}, true, cc, "cc r7 r7 r6", "cc_r7_r7_r6"},
389b8021494Sopenharmony_ci     {{vc, r0, r0, r0}, true, vc, "vc r0 r0 r0", "vc_r0_r0_r0"},
390b8021494Sopenharmony_ci     {{vc, r7, r7, r3}, true, vc, "vc r7 r7 r3", "vc_r7_r7_r3"},
391b8021494Sopenharmony_ci     {{vs, r7, r7, r0}, true, vs, "vs r7 r7 r0", "vs_r7_r7_r0"},
392b8021494Sopenharmony_ci     {{eq, r2, r2, r0}, true, eq, "eq r2 r2 r0", "eq_r2_r2_r0"},
393b8021494Sopenharmony_ci     {{ne, r2, r2, r1}, true, ne, "ne r2 r2 r1", "ne_r2_r2_r1"},
394b8021494Sopenharmony_ci     {{pl, r7, r7, r2}, true, pl, "pl r7 r7 r2", "pl_r7_r7_r2"},
395b8021494Sopenharmony_ci     {{vc, r3, r3, r6}, true, vc, "vc r3 r3 r6", "vc_r3_r3_r6"},
396b8021494Sopenharmony_ci     {{vs, r5, r5, r1}, true, vs, "vs r5 r5 r1", "vs_r5_r5_r1"},
397b8021494Sopenharmony_ci     {{vs, r2, r2, r2}, true, vs, "vs r2 r2 r2", "vs_r2_r2_r2"},
398b8021494Sopenharmony_ci     {{pl, r6, r6, r6}, true, pl, "pl r6 r6 r6", "pl_r6_r6_r6"},
399b8021494Sopenharmony_ci     {{ge, r6, r6, r3}, true, ge, "ge r6 r6 r3", "ge_r6_r6_r3"},
400b8021494Sopenharmony_ci     {{lt, r2, r2, r6}, true, lt, "lt r2 r2 r6", "lt_r2_r2_r6"},
401b8021494Sopenharmony_ci     {{ls, r5, r5, r6}, true, ls, "ls r5 r5 r6", "ls_r5_r5_r6"},
402b8021494Sopenharmony_ci     {{le, r7, r7, r6}, true, le, "le r7 r7 r6", "le_r7_r7_r6"},
403b8021494Sopenharmony_ci     {{ge, r0, r0, r2}, true, ge, "ge r0 r0 r2", "ge_r0_r0_r2"},
404b8021494Sopenharmony_ci     {{le, r0, r0, r4}, true, le, "le r0 r0 r4", "le_r0_r0_r4"},
405b8021494Sopenharmony_ci     {{ls, r6, r6, r3}, true, ls, "ls r6 r6 r3", "ls_r6_r6_r3"},
406b8021494Sopenharmony_ci     {{ls, r6, r6, r0}, true, ls, "ls r6 r6 r0", "ls_r6_r6_r0"},
407b8021494Sopenharmony_ci     {{vs, r4, r4, r7}, true, vs, "vs r4 r4 r7", "vs_r4_r4_r7"},
408b8021494Sopenharmony_ci     {{cs, r4, r4, r4}, true, cs, "cs r4 r4 r4", "cs_r4_r4_r4"},
409b8021494Sopenharmony_ci     {{cs, r7, r7, r5}, true, cs, "cs r7 r7 r5", "cs_r7_r7_r5"},
410b8021494Sopenharmony_ci     {{cs, r6, r6, r3}, true, cs, "cs r6 r6 r3", "cs_r6_r6_r3"},
411b8021494Sopenharmony_ci     {{eq, r7, r7, r4}, true, eq, "eq r7 r7 r4", "eq_r7_r7_r4"},
412b8021494Sopenharmony_ci     {{pl, r6, r6, r0}, true, pl, "pl r6 r6 r0", "pl_r6_r6_r0"},
413b8021494Sopenharmony_ci     {{hi, r5, r5, r4}, true, hi, "hi r5 r5 r4", "hi_r5_r5_r4"},
414b8021494Sopenharmony_ci     {{lt, r6, r6, r6}, true, lt, "lt r6 r6 r6", "lt_r6_r6_r6"},
415b8021494Sopenharmony_ci     {{le, r7, r7, r2}, true, le, "le r7 r7 r2", "le_r7_r7_r2"},
416b8021494Sopenharmony_ci     {{le, r4, r4, r1}, true, le, "le r4 r4 r1", "le_r4_r4_r1"},
417b8021494Sopenharmony_ci     {{ne, r4, r4, r6}, true, ne, "ne r4 r4 r6", "ne_r4_r4_r6"},
418b8021494Sopenharmony_ci     {{hi, r0, r0, r1}, true, hi, "hi r0 r0 r1", "hi_r0_r0_r1"},
419b8021494Sopenharmony_ci     {{gt, r6, r6, r5}, true, gt, "gt r6 r6 r5", "gt_r6_r6_r5"},
420b8021494Sopenharmony_ci     {{cc, r5, r5, r6}, true, cc, "cc r5 r5 r6", "cc_r5_r5_r6"},
421b8021494Sopenharmony_ci     {{ls, r3, r3, r4}, true, ls, "ls r3 r3 r4", "ls_r3_r3_r4"},
422b8021494Sopenharmony_ci     {{vc, r6, r6, r6}, true, vc, "vc r6 r6 r6", "vc_r6_r6_r6"},
423b8021494Sopenharmony_ci     {{pl, r4, r4, r2}, true, pl, "pl r4 r4 r2", "pl_r4_r4_r2"},
424b8021494Sopenharmony_ci     {{lt, r6, r6, r3}, true, lt, "lt r6 r6 r3", "lt_r6_r6_r3"},
425b8021494Sopenharmony_ci     {{mi, r1, r1, r0}, true, mi, "mi r1 r1 r0", "mi_r1_r1_r0"},
426b8021494Sopenharmony_ci     {{cc, r0, r0, r2}, true, cc, "cc r0 r0 r2", "cc_r0_r0_r2"},
427b8021494Sopenharmony_ci     {{ne, r5, r5, r5}, true, ne, "ne r5 r5 r5", "ne_r5_r5_r5"},
428b8021494Sopenharmony_ci     {{cs, r7, r7, r4}, true, cs, "cs r7 r7 r4", "cs_r7_r7_r4"},
429b8021494Sopenharmony_ci     {{vc, r7, r7, r0}, true, vc, "vc r7 r7 r0", "vc_r7_r7_r0"},
430b8021494Sopenharmony_ci     {{cc, r2, r2, r2}, true, cc, "cc r2 r2 r2", "cc_r2_r2_r2"},
431b8021494Sopenharmony_ci     {{ge, r0, r0, r4}, true, ge, "ge r0 r0 r4", "ge_r0_r0_r4"},
432b8021494Sopenharmony_ci     {{gt, r4, r4, r4}, true, gt, "gt r4 r4 r4", "gt_r4_r4_r4"},
433b8021494Sopenharmony_ci     {{cs, r3, r3, r6}, true, cs, "cs r3 r3 r6", "cs_r3_r3_r6"},
434b8021494Sopenharmony_ci     {{cc, r4, r4, r2}, true, cc, "cc r4 r4 r2", "cc_r4_r4_r2"},
435b8021494Sopenharmony_ci     {{eq, r1, r1, r6}, true, eq, "eq r1 r1 r6", "eq_r1_r1_r6"},
436b8021494Sopenharmony_ci     {{mi, r4, r4, r6}, true, mi, "mi r4 r4 r6", "mi_r4_r4_r6"},
437b8021494Sopenharmony_ci     {{eq, r4, r4, r4}, true, eq, "eq r4 r4 r4", "eq_r4_r4_r4"},
438b8021494Sopenharmony_ci     {{gt, r2, r2, r6}, true, gt, "gt r2 r2 r6", "gt_r2_r2_r6"},
439b8021494Sopenharmony_ci     {{lt, r5, r5, r7}, true, lt, "lt r5 r5 r7", "lt_r5_r5_r7"},
440b8021494Sopenharmony_ci     {{lt, r4, r4, r2}, true, lt, "lt r4 r4 r2", "lt_r4_r4_r2"},
441b8021494Sopenharmony_ci     {{cs, r6, r6, r1}, true, cs, "cs r6 r6 r1", "cs_r6_r6_r1"},
442b8021494Sopenharmony_ci     {{vs, r2, r2, r7}, true, vs, "vs r2 r2 r7", "vs_r2_r2_r7"},
443b8021494Sopenharmony_ci     {{hi, r6, r6, r6}, true, hi, "hi r6 r6 r6", "hi_r6_r6_r6"},
444b8021494Sopenharmony_ci     {{vs, r0, r0, r3}, true, vs, "vs r0 r0 r3", "vs_r0_r0_r3"},
445b8021494Sopenharmony_ci     {{mi, r0, r0, r2}, true, mi, "mi r0 r0 r2", "mi_r0_r0_r2"},
446b8021494Sopenharmony_ci     {{cs, r7, r7, r1}, true, cs, "cs r7 r7 r1", "cs_r7_r7_r1"},
447b8021494Sopenharmony_ci     {{gt, r1, r1, r6}, true, gt, "gt r1 r1 r6", "gt_r1_r1_r6"},
448b8021494Sopenharmony_ci     {{vs, r3, r3, r7}, true, vs, "vs r3 r3 r7", "vs_r3_r3_r7"},
449b8021494Sopenharmony_ci     {{hi, r1, r1, r5}, true, hi, "hi r1 r1 r5", "hi_r1_r1_r5"},
450b8021494Sopenharmony_ci     {{lt, r4, r4, r1}, true, lt, "lt r4 r4 r1", "lt_r4_r4_r1"},
451b8021494Sopenharmony_ci     {{le, r6, r6, r6}, true, le, "le r6 r6 r6", "le_r6_r6_r6"},
452b8021494Sopenharmony_ci     {{vc, r7, r7, r6}, true, vc, "vc r7 r7 r6", "vc_r7_r7_r6"},
453b8021494Sopenharmony_ci     {{gt, r4, r4, r5}, true, gt, "gt r4 r4 r5", "gt_r4_r4_r5"},
454b8021494Sopenharmony_ci     {{le, r1, r1, r4}, true, le, "le r1 r1 r4", "le_r1_r1_r4"},
455b8021494Sopenharmony_ci     {{mi, r2, r2, r1}, true, mi, "mi r2 r2 r1", "mi_r2_r2_r1"},
456b8021494Sopenharmony_ci     {{ls, r3, r3, r1}, true, ls, "ls r3 r3 r1", "ls_r3_r3_r1"},
457b8021494Sopenharmony_ci     {{vc, r1, r1, r0}, true, vc, "vc r1 r1 r0", "vc_r1_r1_r0"},
458b8021494Sopenharmony_ci     {{ge, r2, r2, r0}, true, ge, "ge r2 r2 r0", "ge_r2_r2_r0"},
459b8021494Sopenharmony_ci     {{ne, r5, r5, r7}, true, ne, "ne r5 r5 r7", "ne_r5_r5_r7"},
460b8021494Sopenharmony_ci     {{hi, r3, r3, r0}, true, hi, "hi r3 r3 r0", "hi_r3_r3_r0"},
461b8021494Sopenharmony_ci     {{gt, r4, r4, r1}, true, gt, "gt r4 r4 r1", "gt_r4_r4_r1"},
462b8021494Sopenharmony_ci     {{hi, r6, r6, r7}, true, hi, "hi r6 r6 r7", "hi_r6_r6_r7"},
463b8021494Sopenharmony_ci     {{cs, r6, r6, r2}, true, cs, "cs r6 r6 r2", "cs_r6_r6_r2"},
464b8021494Sopenharmony_ci     {{ne, r6, r6, r2}, true, ne, "ne r6 r6 r2", "ne_r6_r6_r2"},
465b8021494Sopenharmony_ci     {{le, r7, r7, r0}, true, le, "le r7 r7 r0", "le_r7_r7_r0"},
466b8021494Sopenharmony_ci     {{vs, r0, r0, r1}, true, vs, "vs r0 r0 r1", "vs_r0_r0_r1"},
467b8021494Sopenharmony_ci     {{vs, r4, r4, r2}, true, vs, "vs r4 r4 r2", "vs_r4_r4_r2"},
468b8021494Sopenharmony_ci     {{eq, r0, r0, r7}, true, eq, "eq r0 r0 r7", "eq_r0_r0_r7"},
469b8021494Sopenharmony_ci     {{lt, r2, r2, r3}, true, lt, "lt r2 r2 r3", "lt_r2_r2_r3"},
470b8021494Sopenharmony_ci     {{ne, r5, r5, r4}, true, ne, "ne r5 r5 r4", "ne_r5_r5_r4"},
471b8021494Sopenharmony_ci     {{cc, r4, r4, r5}, true, cc, "cc r4 r4 r5", "cc_r4_r4_r5"},
472b8021494Sopenharmony_ci     {{lt, r1, r1, r4}, true, lt, "lt r1 r1 r4", "lt_r1_r1_r4"},
473b8021494Sopenharmony_ci     {{eq, r0, r0, r0}, true, eq, "eq r0 r0 r0", "eq_r0_r0_r0"},
474b8021494Sopenharmony_ci     {{vs, r5, r5, r4}, true, vs, "vs r5 r5 r4", "vs_r5_r5_r4"},
475b8021494Sopenharmony_ci     {{ne, r0, r0, r5}, true, ne, "ne r0 r0 r5", "ne_r0_r0_r5"},
476b8021494Sopenharmony_ci     {{pl, r2, r2, r0}, true, pl, "pl r2 r2 r0", "pl_r2_r2_r0"},
477b8021494Sopenharmony_ci     {{vc, r2, r2, r5}, true, vc, "vc r2 r2 r5", "vc_r2_r2_r5"},
478b8021494Sopenharmony_ci     {{lt, r3, r3, r1}, true, lt, "lt r3 r3 r1", "lt_r3_r3_r1"},
479b8021494Sopenharmony_ci     {{hi, r1, r1, r0}, true, hi, "hi r1 r1 r0", "hi_r1_r1_r0"},
480b8021494Sopenharmony_ci     {{eq, r4, r4, r6}, true, eq, "eq r4 r4 r6", "eq_r4_r4_r6"},
481b8021494Sopenharmony_ci     {{vs, r3, r3, r6}, true, vs, "vs r3 r3 r6", "vs_r3_r3_r6"},
482b8021494Sopenharmony_ci     {{lt, r1, r1, r0}, true, lt, "lt r1 r1 r0", "lt_r1_r1_r0"},
483b8021494Sopenharmony_ci     {{ls, r2, r2, r2}, true, ls, "ls r2 r2 r2", "ls_r2_r2_r2"},
484b8021494Sopenharmony_ci     {{ge, r3, r3, r3}, true, ge, "ge r3 r3 r3", "ge_r3_r3_r3"},
485b8021494Sopenharmony_ci     {{ls, r2, r2, r7}, true, ls, "ls r2 r2 r7", "ls_r2_r2_r7"},
486b8021494Sopenharmony_ci     {{ge, r4, r4, r5}, true, ge, "ge r4 r4 r5", "ge_r4_r4_r5"},
487b8021494Sopenharmony_ci     {{eq, r6, r6, r5}, true, eq, "eq r6 r6 r5", "eq_r6_r6_r5"},
488b8021494Sopenharmony_ci     {{mi, r2, r2, r3}, true, mi, "mi r2 r2 r3", "mi_r2_r2_r3"},
489b8021494Sopenharmony_ci     {{mi, r7, r7, r6}, true, mi, "mi r7 r7 r6", "mi_r7_r7_r6"},
490b8021494Sopenharmony_ci     {{ge, r2, r2, r3}, true, ge, "ge r2 r2 r3", "ge_r2_r2_r3"},
491b8021494Sopenharmony_ci     {{le, r5, r5, r1}, true, le, "le r5 r5 r1", "le_r5_r5_r1"},
492b8021494Sopenharmony_ci     {{le, r7, r7, r5}, true, le, "le r7 r7 r5", "le_r7_r7_r5"},
493b8021494Sopenharmony_ci     {{ne, r7, r7, r4}, true, ne, "ne r7 r7 r4", "ne_r7_r7_r4"},
494b8021494Sopenharmony_ci     {{lt, r2, r2, r0}, true, lt, "lt r2 r2 r0", "lt_r2_r2_r0"},
495b8021494Sopenharmony_ci     {{cs, r2, r2, r2}, true, cs, "cs r2 r2 r2", "cs_r2_r2_r2"},
496b8021494Sopenharmony_ci     {{hi, r5, r5, r1}, true, hi, "hi r5 r5 r1", "hi_r5_r5_r1"},
497b8021494Sopenharmony_ci     {{cc, r5, r5, r2}, true, cc, "cc r5 r5 r2", "cc_r5_r5_r2"},
498b8021494Sopenharmony_ci     {{eq, r6, r6, r0}, true, eq, "eq r6 r6 r0", "eq_r6_r6_r0"},
499b8021494Sopenharmony_ci     {{hi, r5, r5, r5}, true, hi, "hi r5 r5 r5", "hi_r5_r5_r5"},
500b8021494Sopenharmony_ci     {{hi, r1, r1, r1}, true, hi, "hi r1 r1 r1", "hi_r1_r1_r1"},
501b8021494Sopenharmony_ci     {{eq, r3, r3, r7}, true, eq, "eq r3 r3 r7", "eq_r3_r3_r7"},
502b8021494Sopenharmony_ci     {{lt, r0, r0, r3}, true, lt, "lt r0 r0 r3", "lt_r0_r0_r3"},
503b8021494Sopenharmony_ci     {{ne, r7, r7, r0}, true, ne, "ne r7 r7 r0", "ne_r7_r7_r0"},
504b8021494Sopenharmony_ci     {{cs, r1, r1, r0}, true, cs, "cs r1 r1 r0", "cs_r1_r1_r0"},
505b8021494Sopenharmony_ci     {{le, r0, r0, r2}, true, le, "le r0 r0 r2", "le_r0_r0_r2"},
506b8021494Sopenharmony_ci     {{gt, r5, r5, r4}, true, gt, "gt r5 r5 r4", "gt_r5_r5_r4"},
507b8021494Sopenharmony_ci     {{le, r0, r0, r3}, true, le, "le r0 r0 r3", "le_r0_r0_r3"},
508b8021494Sopenharmony_ci     {{cs, r7, r7, r0}, true, cs, "cs r7 r7 r0", "cs_r7_r7_r0"},
509b8021494Sopenharmony_ci     {{eq, r7, r7, r2}, true, eq, "eq r7 r7 r2", "eq_r7_r7_r2"},
510b8021494Sopenharmony_ci     {{ne, r4, r4, r3}, true, ne, "ne r4 r4 r3", "ne_r4_r4_r3"},
511b8021494Sopenharmony_ci     {{mi, r0, r0, r3}, true, mi, "mi r0 r0 r3", "mi_r0_r0_r3"},
512b8021494Sopenharmony_ci     {{cs, r4, r4, r0}, true, cs, "cs r4 r4 r0", "cs_r4_r4_r0"},
513b8021494Sopenharmony_ci     {{ls, r4, r4, r4}, true, ls, "ls r4 r4 r4", "ls_r4_r4_r4"},
514b8021494Sopenharmony_ci     {{le, r3, r3, r6}, true, le, "le r3 r3 r6", "le_r3_r3_r6"},
515b8021494Sopenharmony_ci     {{mi, r7, r7, r5}, true, mi, "mi r7 r7 r5", "mi_r7_r7_r5"},
516b8021494Sopenharmony_ci     {{vs, r7, r7, r4}, true, vs, "vs r7 r7 r4", "vs_r7_r7_r4"},
517b8021494Sopenharmony_ci     {{cc, r0, r0, r4}, true, cc, "cc r0 r0 r4", "cc_r0_r0_r4"},
518b8021494Sopenharmony_ci     {{ls, r0, r0, r4}, true, ls, "ls r0 r0 r4", "ls_r0_r0_r4"},
519b8021494Sopenharmony_ci     {{vs, r3, r3, r5}, true, vs, "vs r3 r3 r5", "vs_r3_r3_r5"},
520b8021494Sopenharmony_ci     {{lt, r7, r7, r5}, true, lt, "lt r7 r7 r5", "lt_r7_r7_r5"},
521b8021494Sopenharmony_ci     {{eq, r1, r1, r7}, true, eq, "eq r1 r1 r7", "eq_r1_r1_r7"},
522b8021494Sopenharmony_ci     {{lt, r7, r7, r4}, true, lt, "lt r7 r7 r4", "lt_r7_r7_r4"},
523b8021494Sopenharmony_ci     {{cc, r3, r3, r5}, true, cc, "cc r3 r3 r5", "cc_r3_r3_r5"},
524b8021494Sopenharmony_ci     {{ge, r4, r4, r3}, true, ge, "ge r4 r4 r3", "ge_r4_r4_r3"},
525b8021494Sopenharmony_ci     {{cc, r4, r4, r6}, true, cc, "cc r4 r4 r6", "cc_r4_r4_r6"},
526b8021494Sopenharmony_ci     {{hi, r3, r3, r6}, true, hi, "hi r3 r3 r6", "hi_r3_r3_r6"},
527b8021494Sopenharmony_ci     {{gt, r0, r0, r6}, true, gt, "gt r0 r0 r6", "gt_r0_r0_r6"},
528b8021494Sopenharmony_ci     {{mi, r7, r7, r7}, true, mi, "mi r7 r7 r7", "mi_r7_r7_r7"},
529b8021494Sopenharmony_ci     {{mi, r6, r6, r2}, true, mi, "mi r6 r6 r2", "mi_r6_r6_r2"},
530b8021494Sopenharmony_ci     {{ne, r1, r1, r5}, true, ne, "ne r1 r1 r5", "ne_r1_r1_r5"},
531b8021494Sopenharmony_ci     {{gt, r1, r1, r2}, true, gt, "gt r1 r1 r2", "gt_r1_r1_r2"},
532b8021494Sopenharmony_ci     {{lt, r7, r7, r2}, true, lt, "lt r7 r7 r2", "lt_r7_r7_r2"},
533b8021494Sopenharmony_ci     {{cs, r5, r5, r5}, true, cs, "cs r5 r5 r5", "cs_r5_r5_r5"},
534b8021494Sopenharmony_ci     {{vc, r1, r1, r2}, true, vc, "vc r1 r1 r2", "vc_r1_r1_r2"},
535b8021494Sopenharmony_ci     {{eq, r5, r5, r6}, true, eq, "eq r5 r5 r6", "eq_r5_r5_r6"},
536b8021494Sopenharmony_ci     {{vc, r5, r5, r2}, true, vc, "vc r5 r5 r2", "vc_r5_r5_r2"},
537b8021494Sopenharmony_ci     {{le, r6, r6, r2}, true, le, "le r6 r6 r2", "le_r6_r6_r2"},
538b8021494Sopenharmony_ci     {{le, r6, r6, r4}, true, le, "le r6 r6 r4", "le_r6_r6_r4"},
539b8021494Sopenharmony_ci     {{pl, r3, r3, r2}, true, pl, "pl r3 r3 r2", "pl_r3_r3_r2"},
540b8021494Sopenharmony_ci     {{gt, r7, r7, r2}, true, gt, "gt r7 r7 r2", "gt_r7_r7_r2"},
541b8021494Sopenharmony_ci     {{lt, r6, r6, r7}, true, lt, "lt r6 r6 r7", "lt_r6_r6_r7"},
542b8021494Sopenharmony_ci     {{gt, r4, r4, r7}, true, gt, "gt r4 r4 r7", "gt_r4_r4_r7"},
543b8021494Sopenharmony_ci     {{vc, r4, r4, r4}, true, vc, "vc r4 r4 r4", "vc_r4_r4_r4"},
544b8021494Sopenharmony_ci     {{vc, r1, r1, r4}, true, vc, "vc r1 r1 r4", "vc_r1_r1_r4"},
545b8021494Sopenharmony_ci     {{hi, r3, r3, r5}, true, hi, "hi r3 r3 r5", "hi_r3_r3_r5"},
546b8021494Sopenharmony_ci     {{gt, r3, r3, r2}, true, gt, "gt r3 r3 r2", "gt_r3_r3_r2"},
547b8021494Sopenharmony_ci     {{ge, r5, r5, r7}, true, ge, "ge r5 r5 r7", "ge_r5_r5_r7"},
548b8021494Sopenharmony_ci     {{vs, r2, r2, r6}, true, vs, "vs r2 r2 r6", "vs_r2_r2_r6"},
549b8021494Sopenharmony_ci     {{ge, r1, r1, r7}, true, ge, "ge r1 r1 r7", "ge_r1_r1_r7"},
550b8021494Sopenharmony_ci     {{ne, r6, r6, r1}, true, ne, "ne r6 r6 r1", "ne_r6_r6_r1"},
551b8021494Sopenharmony_ci     {{eq, r6, r6, r1}, true, eq, "eq r6 r6 r1", "eq_r6_r6_r1"},
552b8021494Sopenharmony_ci     {{lt, r1, r1, r6}, true, lt, "lt r1 r1 r6", "lt_r1_r1_r6"},
553b8021494Sopenharmony_ci     {{pl, r4, r4, r0}, true, pl, "pl r4 r4 r0", "pl_r4_r4_r0"},
554b8021494Sopenharmony_ci     {{mi, r3, r3, r0}, true, mi, "mi r3 r3 r0", "mi_r3_r3_r0"},
555b8021494Sopenharmony_ci     {{ne, r6, r6, r6}, true, ne, "ne r6 r6 r6", "ne_r6_r6_r6"},
556b8021494Sopenharmony_ci     {{cs, r1, r1, r3}, true, cs, "cs r1 r1 r3", "cs_r1_r1_r3"},
557b8021494Sopenharmony_ci     {{gt, r7, r7, r6}, true, gt, "gt r7 r7 r6", "gt_r7_r7_r6"},
558b8021494Sopenharmony_ci     {{cc, r1, r1, r2}, true, cc, "cc r1 r1 r2", "cc_r1_r1_r2"},
559b8021494Sopenharmony_ci     {{vs, r0, r0, r4}, true, vs, "vs r0 r0 r4", "vs_r0_r0_r4"},
560b8021494Sopenharmony_ci     {{ge, r0, r0, r5}, true, ge, "ge r0 r0 r5", "ge_r0_r0_r5"},
561b8021494Sopenharmony_ci     {{ls, r0, r0, r2}, true, ls, "ls r0 r0 r2", "ls_r0_r0_r2"},
562b8021494Sopenharmony_ci     {{lt, r0, r0, r6}, true, lt, "lt r0 r0 r6", "lt_r0_r0_r6"},
563b8021494Sopenharmony_ci     {{vc, r3, r3, r4}, true, vc, "vc r3 r3 r4", "vc_r3_r3_r4"},
564b8021494Sopenharmony_ci     {{eq, r3, r3, r1}, true, eq, "eq r3 r3 r1", "eq_r3_r3_r1"},
565b8021494Sopenharmony_ci     {{vc, r7, r7, r4}, true, vc, "vc r7 r7 r4", "vc_r7_r7_r4"},
566b8021494Sopenharmony_ci     {{vs, r5, r5, r2}, true, vs, "vs r5 r5 r2", "vs_r5_r5_r2"},
567b8021494Sopenharmony_ci     {{cc, r2, r2, r6}, true, cc, "cc r2 r2 r6", "cc_r2_r2_r6"},
568b8021494Sopenharmony_ci     {{cs, r0, r0, r7}, true, cs, "cs r0 r0 r7", "cs_r0_r0_r7"},
569b8021494Sopenharmony_ci     {{vc, r3, r3, r1}, true, vc, "vc r3 r3 r1", "vc_r3_r3_r1"},
570b8021494Sopenharmony_ci     {{cc, r6, r6, r1}, true, cc, "cc r6 r6 r1", "cc_r6_r6_r1"},
571b8021494Sopenharmony_ci     {{gt, r4, r4, r0}, true, gt, "gt r4 r4 r0", "gt_r4_r4_r0"},
572b8021494Sopenharmony_ci     {{mi, r4, r4, r3}, true, mi, "mi r4 r4 r3", "mi_r4_r4_r3"},
573b8021494Sopenharmony_ci     {{ge, r4, r4, r2}, true, ge, "ge r4 r4 r2", "ge_r4_r4_r2"},
574b8021494Sopenharmony_ci     {{vc, r2, r2, r1}, true, vc, "vc r2 r2 r1", "vc_r2_r2_r1"},
575b8021494Sopenharmony_ci     {{mi, r0, r0, r6}, true, mi, "mi r0 r0 r6", "mi_r0_r0_r6"},
576b8021494Sopenharmony_ci     {{gt, r4, r4, r6}, true, gt, "gt r4 r4 r6", "gt_r4_r4_r6"},
577b8021494Sopenharmony_ci     {{lt, r5, r5, r3}, true, lt, "lt r5 r5 r3", "lt_r5_r5_r3"},
578b8021494Sopenharmony_ci     {{hi, r0, r0, r3}, true, hi, "hi r0 r0 r3", "hi_r0_r0_r3"},
579b8021494Sopenharmony_ci     {{ne, r0, r0, r1}, true, ne, "ne r0 r0 r1", "ne_r0_r0_r1"},
580b8021494Sopenharmony_ci     {{ne, r4, r4, r4}, true, ne, "ne r4 r4 r4", "ne_r4_r4_r4"},
581b8021494Sopenharmony_ci     {{vc, r3, r3, r7}, true, vc, "vc r3 r3 r7", "vc_r3_r3_r7"},
582b8021494Sopenharmony_ci     {{eq, r2, r2, r4}, true, eq, "eq r2 r2 r4", "eq_r2_r2_r4"},
583b8021494Sopenharmony_ci     {{ge, r6, r6, r5}, true, ge, "ge r6 r6 r5", "ge_r6_r6_r5"},
584b8021494Sopenharmony_ci     {{vc, r6, r6, r2}, true, vc, "vc r6 r6 r2", "vc_r6_r6_r2"},
585b8021494Sopenharmony_ci     {{hi, r1, r1, r3}, true, hi, "hi r1 r1 r3", "hi_r1_r1_r3"},
586b8021494Sopenharmony_ci     {{pl, r0, r0, r4}, true, pl, "pl r0 r0 r4", "pl_r0_r0_r4"},
587b8021494Sopenharmony_ci     {{vs, r1, r1, r6}, true, vs, "vs r1 r1 r6", "vs_r1_r1_r6"},
588b8021494Sopenharmony_ci     {{cc, r1, r1, r4}, true, cc, "cc r1 r1 r4", "cc_r1_r1_r4"},
589b8021494Sopenharmony_ci     {{lt, r1, r1, r3}, true, lt, "lt r1 r1 r3", "lt_r1_r1_r3"},
590b8021494Sopenharmony_ci     {{pl, r1, r1, r4}, true, pl, "pl r1 r1 r4", "pl_r1_r1_r4"},
591b8021494Sopenharmony_ci     {{cs, r3, r3, r3}, true, cs, "cs r3 r3 r3", "cs_r3_r3_r3"},
592b8021494Sopenharmony_ci     {{ge, r7, r7, r0}, true, ge, "ge r7 r7 r0", "ge_r7_r7_r0"},
593b8021494Sopenharmony_ci     {{ls, r5, r5, r1}, true, ls, "ls r5 r5 r1", "ls_r5_r5_r1"},
594b8021494Sopenharmony_ci     {{pl, r7, r7, r3}, true, pl, "pl r7 r7 r3", "pl_r7_r7_r3"},
595b8021494Sopenharmony_ci     {{eq, r2, r2, r1}, true, eq, "eq r2 r2 r1", "eq_r2_r2_r1"},
596b8021494Sopenharmony_ci     {{mi, r4, r4, r5}, true, mi, "mi r4 r4 r5", "mi_r4_r4_r5"},
597b8021494Sopenharmony_ci     {{vc, r1, r1, r7}, true, vc, "vc r1 r1 r7", "vc_r1_r1_r7"},
598b8021494Sopenharmony_ci     {{lt, r6, r6, r5}, true, lt, "lt r6 r6 r5", "lt_r6_r6_r5"},
599b8021494Sopenharmony_ci     {{ge, r4, r4, r1}, true, ge, "ge r4 r4 r1", "ge_r4_r4_r1"},
600b8021494Sopenharmony_ci     {{gt, r1, r1, r7}, true, gt, "gt r1 r1 r7", "gt_r1_r1_r7"},
601b8021494Sopenharmony_ci     {{lt, r0, r0, r5}, true, lt, "lt r0 r0 r5", "lt_r0_r0_r5"},
602b8021494Sopenharmony_ci     {{le, r4, r4, r0}, true, le, "le r4 r4 r0", "le_r4_r4_r0"},
603b8021494Sopenharmony_ci     {{le, r1, r1, r3}, true, le, "le r1 r1 r3", "le_r1_r1_r3"},
604b8021494Sopenharmony_ci     {{cs, r6, r6, r0}, true, cs, "cs r6 r6 r0", "cs_r6_r6_r0"}};
605b8021494Sopenharmony_ci
606b8021494Sopenharmony_ci// These headers each contain an array of `TestResult` with the reference output
607b8021494Sopenharmony_ci// values. The reference arrays are names `kReference{mnemonic}`.
608b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-all-low-rd-is-rn-in-it-block-adc-t32.h"
609b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-all-low-rd-is-rn-in-it-block-and-t32.h"
610b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-all-low-rd-is-rn-in-it-block-asr-t32.h"
611b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-all-low-rd-is-rn-in-it-block-bic-t32.h"
612b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-all-low-rd-is-rn-in-it-block-eor-t32.h"
613b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-all-low-rd-is-rn-in-it-block-lsl-t32.h"
614b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-all-low-rd-is-rn-in-it-block-lsr-t32.h"
615b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-all-low-rd-is-rn-in-it-block-orr-t32.h"
616b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-all-low-rd-is-rn-in-it-block-ror-t32.h"
617b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-all-low-rd-is-rn-in-it-block-sbc-t32.h"
618b8021494Sopenharmony_ci
619b8021494Sopenharmony_ci
620b8021494Sopenharmony_ci// The maximum number of errors to report in detail for each test.
621b8021494Sopenharmony_ciconst unsigned kErrorReportLimit = 8;
622b8021494Sopenharmony_ci
623b8021494Sopenharmony_citypedef void (MacroAssembler::*Fn)(Condition cond,
624b8021494Sopenharmony_ci                                   Register rd,
625b8021494Sopenharmony_ci                                   Register rn,
626b8021494Sopenharmony_ci                                   const Operand& op);
627b8021494Sopenharmony_ci
628b8021494Sopenharmony_civoid TestHelper(Fn instruction,
629b8021494Sopenharmony_ci                const char* mnemonic,
630b8021494Sopenharmony_ci                const TestResult reference[]) {
631b8021494Sopenharmony_ci  unsigned total_error_count = 0;
632b8021494Sopenharmony_ci  MacroAssembler masm(BUF_SIZE);
633b8021494Sopenharmony_ci
634b8021494Sopenharmony_ci  masm.UseT32();
635b8021494Sopenharmony_ci
636b8021494Sopenharmony_ci  for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) {
637b8021494Sopenharmony_ci    // Values to pass to the macro-assembler.
638b8021494Sopenharmony_ci    Condition cond = kTests[i].operands.cond;
639b8021494Sopenharmony_ci    Register rd = kTests[i].operands.rd;
640b8021494Sopenharmony_ci    Register rn = kTests[i].operands.rn;
641b8021494Sopenharmony_ci    Register rm = kTests[i].operands.rm;
642b8021494Sopenharmony_ci    Operand op(rm);
643b8021494Sopenharmony_ci
644b8021494Sopenharmony_ci    int32_t start = masm.GetCursorOffset();
645b8021494Sopenharmony_ci    {
646b8021494Sopenharmony_ci      // We never generate more that 4 bytes, as IT instructions are only
647b8021494Sopenharmony_ci      // allowed for narrow encodings.
648b8021494Sopenharmony_ci      ExactAssemblyScope scope(&masm, 4, ExactAssemblyScope::kMaximumSize);
649b8021494Sopenharmony_ci      if (kTests[i].in_it_block) {
650b8021494Sopenharmony_ci        masm.it(kTests[i].it_condition);
651b8021494Sopenharmony_ci      }
652b8021494Sopenharmony_ci      (masm.*instruction)(cond, rd, rn, op);
653b8021494Sopenharmony_ci    }
654b8021494Sopenharmony_ci    int32_t end = masm.GetCursorOffset();
655b8021494Sopenharmony_ci
656b8021494Sopenharmony_ci    const byte* result_ptr =
657b8021494Sopenharmony_ci        masm.GetBuffer()->GetOffsetAddress<const byte*>(start);
658b8021494Sopenharmony_ci    VIXL_ASSERT(start < end);
659b8021494Sopenharmony_ci    uint32_t result_size = end - start;
660b8021494Sopenharmony_ci
661b8021494Sopenharmony_ci    if (Test::generate_test_trace()) {
662b8021494Sopenharmony_ci      // Print the result bytes.
663b8021494Sopenharmony_ci      printf("const byte kInstruction_%s_%s[] = {\n",
664b8021494Sopenharmony_ci             mnemonic,
665b8021494Sopenharmony_ci             kTests[i].identifier);
666b8021494Sopenharmony_ci      for (uint32_t j = 0; j < result_size; j++) {
667b8021494Sopenharmony_ci        if (j == 0) {
668b8021494Sopenharmony_ci          printf("  0x%02" PRIx8, result_ptr[j]);
669b8021494Sopenharmony_ci        } else {
670b8021494Sopenharmony_ci          printf(", 0x%02" PRIx8, result_ptr[j]);
671b8021494Sopenharmony_ci        }
672b8021494Sopenharmony_ci      }
673b8021494Sopenharmony_ci      // This comment is meant to be used by external tools to validate
674b8021494Sopenharmony_ci      // the encoding. We can parse the comment to figure out what
675b8021494Sopenharmony_ci      // instruction this corresponds to.
676b8021494Sopenharmony_ci      if (kTests[i].in_it_block) {
677b8021494Sopenharmony_ci        printf(" // It %s; %s %s\n};\n",
678b8021494Sopenharmony_ci               kTests[i].it_condition.GetName(),
679b8021494Sopenharmony_ci               mnemonic,
680b8021494Sopenharmony_ci               kTests[i].operands_description);
681b8021494Sopenharmony_ci      } else {
682b8021494Sopenharmony_ci        printf(" // %s %s\n};\n", mnemonic, kTests[i].operands_description);
683b8021494Sopenharmony_ci      }
684b8021494Sopenharmony_ci    } else {
685b8021494Sopenharmony_ci      // Check we've emitted the exact same encoding as present in the
686b8021494Sopenharmony_ci      // trace file. Only print up to `kErrorReportLimit` errors.
687b8021494Sopenharmony_ci      if (((result_size != reference[i].size) ||
688b8021494Sopenharmony_ci           (memcmp(result_ptr, reference[i].encoding, reference[i].size) !=
689b8021494Sopenharmony_ci            0)) &&
690b8021494Sopenharmony_ci          (++total_error_count <= kErrorReportLimit)) {
691b8021494Sopenharmony_ci        printf("Error when testing \"%s\" with operands \"%s\":\n",
692b8021494Sopenharmony_ci               mnemonic,
693b8021494Sopenharmony_ci               kTests[i].operands_description);
694b8021494Sopenharmony_ci        printf("  Expected: ");
695b8021494Sopenharmony_ci        for (uint32_t j = 0; j < reference[i].size; j++) {
696b8021494Sopenharmony_ci          if (j == 0) {
697b8021494Sopenharmony_ci            printf("0x%02" PRIx8, reference[i].encoding[j]);
698b8021494Sopenharmony_ci          } else {
699b8021494Sopenharmony_ci            printf(", 0x%02" PRIx8, reference[i].encoding[j]);
700b8021494Sopenharmony_ci          }
701b8021494Sopenharmony_ci        }
702b8021494Sopenharmony_ci        printf("\n");
703b8021494Sopenharmony_ci        printf("  Found:    ");
704b8021494Sopenharmony_ci        for (uint32_t j = 0; j < result_size; j++) {
705b8021494Sopenharmony_ci          if (j == 0) {
706b8021494Sopenharmony_ci            printf("0x%02" PRIx8, result_ptr[j]);
707b8021494Sopenharmony_ci          } else {
708b8021494Sopenharmony_ci            printf(", 0x%02" PRIx8, result_ptr[j]);
709b8021494Sopenharmony_ci          }
710b8021494Sopenharmony_ci        }
711b8021494Sopenharmony_ci        printf("\n");
712b8021494Sopenharmony_ci      }
713b8021494Sopenharmony_ci    }
714b8021494Sopenharmony_ci  }
715b8021494Sopenharmony_ci
716b8021494Sopenharmony_ci  masm.FinalizeCode();
717b8021494Sopenharmony_ci
718b8021494Sopenharmony_ci  if (Test::generate_test_trace()) {
719b8021494Sopenharmony_ci    // Finalize the trace file by writing the final `TestResult` array
720b8021494Sopenharmony_ci    // which links all generated instruction encodings.
721b8021494Sopenharmony_ci    printf("const TestResult kReference%s[] = {\n", mnemonic);
722b8021494Sopenharmony_ci    for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) {
723b8021494Sopenharmony_ci      printf("  {\n");
724b8021494Sopenharmony_ci      printf("    ARRAY_SIZE(kInstruction_%s_%s),\n",
725b8021494Sopenharmony_ci             mnemonic,
726b8021494Sopenharmony_ci             kTests[i].identifier);
727b8021494Sopenharmony_ci      printf("    kInstruction_%s_%s,\n", mnemonic, kTests[i].identifier);
728b8021494Sopenharmony_ci      printf("  },\n");
729b8021494Sopenharmony_ci    }
730b8021494Sopenharmony_ci    printf("};\n");
731b8021494Sopenharmony_ci  } else {
732b8021494Sopenharmony_ci    if (total_error_count > kErrorReportLimit) {
733b8021494Sopenharmony_ci      printf("%u other errors follow.\n",
734b8021494Sopenharmony_ci             total_error_count - kErrorReportLimit);
735b8021494Sopenharmony_ci    }
736b8021494Sopenharmony_ci    // Crash if the test failed.
737b8021494Sopenharmony_ci    VIXL_CHECK(total_error_count == 0);
738b8021494Sopenharmony_ci  }
739b8021494Sopenharmony_ci}
740b8021494Sopenharmony_ci
741b8021494Sopenharmony_ci// Instantiate tests for each instruction in the list.
742b8021494Sopenharmony_ci#define TEST(mnemonic)                                                      \
743b8021494Sopenharmony_ci  void Test_##mnemonic() {                                                  \
744b8021494Sopenharmony_ci    TestHelper(&MacroAssembler::mnemonic, #mnemonic, kReference##mnemonic); \
745b8021494Sopenharmony_ci  }                                                                         \
746b8021494Sopenharmony_ci  Test test_##mnemonic(                                                     \
747b8021494Sopenharmony_ci      "AARCH32_ASSEMBLER_COND_RD_RN_OPERAND_RM_ALL_LOW_RD_IS_RN_IN_IT_"     \
748b8021494Sopenharmony_ci      "BLOCK_" #mnemonic "_T32",                                            \
749b8021494Sopenharmony_ci      &Test_##mnemonic);
750b8021494Sopenharmony_ciFOREACH_INSTRUCTION(TEST)
751b8021494Sopenharmony_ci#undef TEST
752b8021494Sopenharmony_ci
753b8021494Sopenharmony_ci}  // namespace
754b8021494Sopenharmony_ci#endif
755b8021494Sopenharmony_ci
756b8021494Sopenharmony_ci}  // namespace aarch32
757b8021494Sopenharmony_ci}  // namespace vixl
758