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) M(mov) 52b8021494Sopenharmony_ci 53b8021494Sopenharmony_ci 54b8021494Sopenharmony_ci// The following definitions are defined again in each generated test, therefore 55b8021494Sopenharmony_ci// we need to place them in an anonymous namespace. It expresses that they are 56b8021494Sopenharmony_ci// local to this file only, and the compiler is not allowed to share these types 57b8021494Sopenharmony_ci// across test files during template instantiation. Specifically, `Operands` has 58b8021494Sopenharmony_ci// various layouts across generated tests so it absolutely cannot be shared. 59b8021494Sopenharmony_ci 60b8021494Sopenharmony_ci#ifdef VIXL_INCLUDE_TARGET_T32 61b8021494Sopenharmony_cinamespace { 62b8021494Sopenharmony_ci 63b8021494Sopenharmony_ci// Values to be passed to the assembler to produce the instruction under test. 64b8021494Sopenharmony_cistruct Operands { 65b8021494Sopenharmony_ci Condition cond; 66b8021494Sopenharmony_ci Register rd; 67b8021494Sopenharmony_ci Register rn; 68b8021494Sopenharmony_ci ShiftType shift; 69b8021494Sopenharmony_ci uint32_t amount; 70b8021494Sopenharmony_ci}; 71b8021494Sopenharmony_ci 72b8021494Sopenharmony_ci// This structure contains all data needed to test one specific 73b8021494Sopenharmony_ci// instruction. 74b8021494Sopenharmony_cistruct TestData { 75b8021494Sopenharmony_ci // The `operands` field represents what to pass to the assembler to 76b8021494Sopenharmony_ci // produce the instruction. 77b8021494Sopenharmony_ci Operands operands; 78b8021494Sopenharmony_ci // True if we need to generate an IT instruction for this test to be valid. 79b8021494Sopenharmony_ci bool in_it_block; 80b8021494Sopenharmony_ci // The condition to give the IT instruction, this will be set to "al" by 81b8021494Sopenharmony_ci // default. 82b8021494Sopenharmony_ci Condition it_condition; 83b8021494Sopenharmony_ci // Description of the operands, used for error reporting. 84b8021494Sopenharmony_ci const char* operands_description; 85b8021494Sopenharmony_ci // Unique identifier, used for generating traces. 86b8021494Sopenharmony_ci const char* identifier; 87b8021494Sopenharmony_ci}; 88b8021494Sopenharmony_ci 89b8021494Sopenharmony_cistruct TestResult { 90b8021494Sopenharmony_ci size_t size; 91b8021494Sopenharmony_ci const byte* encoding; 92b8021494Sopenharmony_ci}; 93b8021494Sopenharmony_ci 94b8021494Sopenharmony_ci// Each element of this array produce one instruction encoding. 95b8021494Sopenharmony_ciconst TestData kTests[] = 96b8021494Sopenharmony_ci {{{ge, r7, r6, LSR, 20}, true, ge, "ge r7 r6 LSR 20", "ge_r7_r6_LSR_20"}, 97b8021494Sopenharmony_ci {{gt, r4, r6, LSR, 32}, true, gt, "gt r4 r6 LSR 32", "gt_r4_r6_LSR_32"}, 98b8021494Sopenharmony_ci {{hi, r6, r7, LSR, 29}, true, hi, "hi r6 r7 LSR 29", "hi_r6_r7_LSR_29"}, 99b8021494Sopenharmony_ci {{mi, r7, r1, LSR, 10}, true, mi, "mi r7 r1 LSR 10", "mi_r7_r1_LSR_10"}, 100b8021494Sopenharmony_ci {{ls, r7, r6, LSR, 14}, true, ls, "ls r7 r6 LSR 14", "ls_r7_r6_LSR_14"}, 101b8021494Sopenharmony_ci {{eq, r7, r2, ASR, 14}, true, eq, "eq r7 r2 ASR 14", "eq_r7_r2_ASR_14"}, 102b8021494Sopenharmony_ci {{le, r3, r7, LSR, 2}, true, le, "le r3 r7 LSR 2", "le_r3_r7_LSR_2"}, 103b8021494Sopenharmony_ci {{mi, r2, r7, LSR, 32}, true, mi, "mi r2 r7 LSR 32", "mi_r2_r7_LSR_32"}, 104b8021494Sopenharmony_ci {{ge, r5, r0, ASR, 23}, true, ge, "ge r5 r0 ASR 23", "ge_r5_r0_ASR_23"}, 105b8021494Sopenharmony_ci {{ne, r3, r7, LSR, 28}, true, ne, "ne r3 r7 LSR 28", "ne_r3_r7_LSR_28"}, 106b8021494Sopenharmony_ci {{gt, r6, r4, LSR, 13}, true, gt, "gt r6 r4 LSR 13", "gt_r6_r4_LSR_13"}, 107b8021494Sopenharmony_ci {{hi, r6, r5, LSR, 12}, true, hi, "hi r6 r5 LSR 12", "hi_r6_r5_LSR_12"}, 108b8021494Sopenharmony_ci {{pl, r6, r1, ASR, 12}, true, pl, "pl r6 r1 ASR 12", "pl_r6_r1_ASR_12"}, 109b8021494Sopenharmony_ci {{hi, r7, r1, ASR, 30}, true, hi, "hi r7 r1 ASR 30", "hi_r7_r1_ASR_30"}, 110b8021494Sopenharmony_ci {{mi, r7, r6, ASR, 20}, true, mi, "mi r7 r6 ASR 20", "mi_r7_r6_ASR_20"}, 111b8021494Sopenharmony_ci {{cc, r3, r6, ASR, 22}, true, cc, "cc r3 r6 ASR 22", "cc_r3_r6_ASR_22"}, 112b8021494Sopenharmony_ci {{vc, r2, r1, ASR, 29}, true, vc, "vc r2 r1 ASR 29", "vc_r2_r1_ASR_29"}, 113b8021494Sopenharmony_ci {{pl, r0, r1, ASR, 15}, true, pl, "pl r0 r1 ASR 15", "pl_r0_r1_ASR_15"}, 114b8021494Sopenharmony_ci {{mi, r2, r1, LSR, 22}, true, mi, "mi r2 r1 LSR 22", "mi_r2_r1_LSR_22"}, 115b8021494Sopenharmony_ci {{pl, r6, r4, ASR, 6}, true, pl, "pl r6 r4 ASR 6", "pl_r6_r4_ASR_6"}, 116b8021494Sopenharmony_ci {{hi, r1, r3, ASR, 15}, true, hi, "hi r1 r3 ASR 15", "hi_r1_r3_ASR_15"}, 117b8021494Sopenharmony_ci {{eq, r3, r5, ASR, 13}, true, eq, "eq r3 r5 ASR 13", "eq_r3_r5_ASR_13"}, 118b8021494Sopenharmony_ci {{le, r4, r6, ASR, 31}, true, le, "le r4 r6 ASR 31", "le_r4_r6_ASR_31"}, 119b8021494Sopenharmony_ci {{gt, r5, r1, ASR, 15}, true, gt, "gt r5 r1 ASR 15", "gt_r5_r1_ASR_15"}, 120b8021494Sopenharmony_ci {{pl, r3, r7, ASR, 29}, true, pl, "pl r3 r7 ASR 29", "pl_r3_r7_ASR_29"}, 121b8021494Sopenharmony_ci {{cs, r3, r1, ASR, 15}, true, cs, "cs r3 r1 ASR 15", "cs_r3_r1_ASR_15"}, 122b8021494Sopenharmony_ci {{le, r1, r7, ASR, 32}, true, le, "le r1 r7 ASR 32", "le_r1_r7_ASR_32"}, 123b8021494Sopenharmony_ci {{vs, r5, r7, LSR, 5}, true, vs, "vs r5 r7 LSR 5", "vs_r5_r7_LSR_5"}, 124b8021494Sopenharmony_ci {{cs, r3, r1, ASR, 30}, true, cs, "cs r3 r1 ASR 30", "cs_r3_r1_ASR_30"}, 125b8021494Sopenharmony_ci {{gt, r7, r0, LSR, 26}, true, gt, "gt r7 r0 LSR 26", "gt_r7_r0_LSR_26"}, 126b8021494Sopenharmony_ci {{ne, r2, r6, LSR, 24}, true, ne, "ne r2 r6 LSR 24", "ne_r2_r6_LSR_24"}, 127b8021494Sopenharmony_ci {{pl, r2, r3, ASR, 5}, true, pl, "pl r2 r3 ASR 5", "pl_r2_r3_ASR_5"}, 128b8021494Sopenharmony_ci {{le, r3, r4, ASR, 30}, true, le, "le r3 r4 ASR 30", "le_r3_r4_ASR_30"}, 129b8021494Sopenharmony_ci {{cs, r5, r7, ASR, 13}, true, cs, "cs r5 r7 ASR 13", "cs_r5_r7_ASR_13"}, 130b8021494Sopenharmony_ci {{eq, r0, r1, LSR, 31}, true, eq, "eq r0 r1 LSR 31", "eq_r0_r1_LSR_31"}, 131b8021494Sopenharmony_ci {{eq, r7, r2, LSR, 2}, true, eq, "eq r7 r2 LSR 2", "eq_r7_r2_LSR_2"}, 132b8021494Sopenharmony_ci {{vc, r2, r5, ASR, 30}, true, vc, "vc r2 r5 ASR 30", "vc_r2_r5_ASR_30"}, 133b8021494Sopenharmony_ci {{eq, r2, r1, ASR, 5}, true, eq, "eq r2 r1 ASR 5", "eq_r2_r1_ASR_5"}, 134b8021494Sopenharmony_ci {{le, r4, r7, LSR, 10}, true, le, "le r4 r7 LSR 10", "le_r4_r7_LSR_10"}, 135b8021494Sopenharmony_ci {{cs, r6, r1, ASR, 13}, true, cs, "cs r6 r1 ASR 13", "cs_r6_r1_ASR_13"}, 136b8021494Sopenharmony_ci {{ls, r7, r4, LSR, 26}, true, ls, "ls r7 r4 LSR 26", "ls_r7_r4_LSR_26"}, 137b8021494Sopenharmony_ci {{ge, r7, r3, ASR, 28}, true, ge, "ge r7 r3 ASR 28", "ge_r7_r3_ASR_28"}, 138b8021494Sopenharmony_ci {{mi, r4, r4, LSR, 16}, true, mi, "mi r4 r4 LSR 16", "mi_r4_r4_LSR_16"}, 139b8021494Sopenharmony_ci {{ge, r3, r7, LSR, 23}, true, ge, "ge r3 r7 LSR 23", "ge_r3_r7_LSR_23"}, 140b8021494Sopenharmony_ci {{ge, r3, r3, LSR, 25}, true, ge, "ge r3 r3 LSR 25", "ge_r3_r3_LSR_25"}, 141b8021494Sopenharmony_ci {{ne, r2, r2, ASR, 19}, true, ne, "ne r2 r2 ASR 19", "ne_r2_r2_ASR_19"}, 142b8021494Sopenharmony_ci {{hi, r0, r5, LSR, 29}, true, hi, "hi r0 r5 LSR 29", "hi_r0_r5_LSR_29"}, 143b8021494Sopenharmony_ci {{vc, r0, r0, ASR, 18}, true, vc, "vc r0 r0 ASR 18", "vc_r0_r0_ASR_18"}, 144b8021494Sopenharmony_ci {{gt, r5, r3, ASR, 3}, true, gt, "gt r5 r3 ASR 3", "gt_r5_r3_ASR_3"}, 145b8021494Sopenharmony_ci {{mi, r6, r2, ASR, 28}, true, mi, "mi r6 r2 ASR 28", "mi_r6_r2_ASR_28"}, 146b8021494Sopenharmony_ci {{ls, r2, r6, LSR, 31}, true, ls, "ls r2 r6 LSR 31", "ls_r2_r6_LSR_31"}, 147b8021494Sopenharmony_ci {{cs, r4, r0, LSR, 5}, true, cs, "cs r4 r0 LSR 5", "cs_r4_r0_LSR_5"}, 148b8021494Sopenharmony_ci {{eq, r6, r2, ASR, 17}, true, eq, "eq r6 r2 ASR 17", "eq_r6_r2_ASR_17"}, 149b8021494Sopenharmony_ci {{cs, r7, r5, LSR, 2}, true, cs, "cs r7 r5 LSR 2", "cs_r7_r5_LSR_2"}, 150b8021494Sopenharmony_ci {{vc, r5, r3, LSR, 17}, true, vc, "vc r5 r3 LSR 17", "vc_r5_r3_LSR_17"}, 151b8021494Sopenharmony_ci {{pl, r5, r1, LSR, 12}, true, pl, "pl r5 r1 LSR 12", "pl_r5_r1_LSR_12"}, 152b8021494Sopenharmony_ci {{lt, r2, r1, LSR, 2}, true, lt, "lt r2 r1 LSR 2", "lt_r2_r1_LSR_2"}, 153b8021494Sopenharmony_ci {{hi, r6, r5, ASR, 3}, true, hi, "hi r6 r5 ASR 3", "hi_r6_r5_ASR_3"}, 154b8021494Sopenharmony_ci {{gt, r1, r6, ASR, 19}, true, gt, "gt r1 r6 ASR 19", "gt_r1_r6_ASR_19"}, 155b8021494Sopenharmony_ci {{ne, r3, r7, ASR, 24}, true, ne, "ne r3 r7 ASR 24", "ne_r3_r7_ASR_24"}, 156b8021494Sopenharmony_ci {{mi, r3, r2, ASR, 27}, true, mi, "mi r3 r2 ASR 27", "mi_r3_r2_ASR_27"}, 157b8021494Sopenharmony_ci {{ge, r0, r5, ASR, 24}, true, ge, "ge r0 r5 ASR 24", "ge_r0_r5_ASR_24"}, 158b8021494Sopenharmony_ci {{hi, r0, r2, ASR, 12}, true, hi, "hi r0 r2 ASR 12", "hi_r0_r2_ASR_12"}, 159b8021494Sopenharmony_ci {{vs, r4, r7, LSR, 8}, true, vs, "vs r4 r7 LSR 8", "vs_r4_r7_LSR_8"}, 160b8021494Sopenharmony_ci {{vc, r0, r4, LSR, 6}, true, vc, "vc r0 r4 LSR 6", "vc_r0_r4_LSR_6"}, 161b8021494Sopenharmony_ci {{cs, r3, r7, LSR, 2}, true, cs, "cs r3 r7 LSR 2", "cs_r3_r7_LSR_2"}, 162b8021494Sopenharmony_ci {{cc, r2, r3, ASR, 7}, true, cc, "cc r2 r3 ASR 7", "cc_r2_r3_ASR_7"}, 163b8021494Sopenharmony_ci {{lt, r5, r4, LSR, 26}, true, lt, "lt r5 r4 LSR 26", "lt_r5_r4_LSR_26"}, 164b8021494Sopenharmony_ci {{vs, r6, r3, LSR, 16}, true, vs, "vs r6 r3 LSR 16", "vs_r6_r3_LSR_16"}, 165b8021494Sopenharmony_ci {{hi, r5, r3, ASR, 19}, true, hi, "hi r5 r3 ASR 19", "hi_r5_r3_ASR_19"}, 166b8021494Sopenharmony_ci {{cc, r3, r6, LSR, 16}, true, cc, "cc r3 r6 LSR 16", "cc_r3_r6_LSR_16"}, 167b8021494Sopenharmony_ci {{cc, r0, r6, LSR, 31}, true, cc, "cc r0 r6 LSR 31", "cc_r0_r6_LSR_31"}, 168b8021494Sopenharmony_ci {{hi, r6, r7, ASR, 32}, true, hi, "hi r6 r7 ASR 32", "hi_r6_r7_ASR_32"}, 169b8021494Sopenharmony_ci {{vc, r3, r4, ASR, 12}, true, vc, "vc r3 r4 ASR 12", "vc_r3_r4_ASR_12"}, 170b8021494Sopenharmony_ci {{cs, r5, r7, ASR, 9}, true, cs, "cs r5 r7 ASR 9", "cs_r5_r7_ASR_9"}, 171b8021494Sopenharmony_ci {{lt, r5, r0, ASR, 4}, true, lt, "lt r5 r0 ASR 4", "lt_r5_r0_ASR_4"}, 172b8021494Sopenharmony_ci {{cc, r3, r1, ASR, 17}, true, cc, "cc r3 r1 ASR 17", "cc_r3_r1_ASR_17"}, 173b8021494Sopenharmony_ci {{vs, r7, r4, ASR, 16}, true, vs, "vs r7 r4 ASR 16", "vs_r7_r4_ASR_16"}, 174b8021494Sopenharmony_ci {{eq, r7, r6, ASR, 14}, true, eq, "eq r7 r6 ASR 14", "eq_r7_r6_ASR_14"}, 175b8021494Sopenharmony_ci {{ne, r1, r0, ASR, 21}, true, ne, "ne r1 r0 ASR 21", "ne_r1_r0_ASR_21"}, 176b8021494Sopenharmony_ci {{ls, r0, r1, LSR, 19}, true, ls, "ls r0 r1 LSR 19", "ls_r0_r1_LSR_19"}, 177b8021494Sopenharmony_ci {{cc, r1, r7, ASR, 6}, true, cc, "cc r1 r7 ASR 6", "cc_r1_r7_ASR_6"}, 178b8021494Sopenharmony_ci {{lt, r5, r2, LSR, 1}, true, lt, "lt r5 r2 LSR 1", "lt_r5_r2_LSR_1"}, 179b8021494Sopenharmony_ci {{lt, r7, r0, LSR, 13}, true, lt, "lt r7 r0 LSR 13", "lt_r7_r0_LSR_13"}, 180b8021494Sopenharmony_ci {{gt, r2, r6, ASR, 14}, true, gt, "gt r2 r6 ASR 14", "gt_r2_r6_ASR_14"}, 181b8021494Sopenharmony_ci {{ls, r5, r5, ASR, 23}, true, ls, "ls r5 r5 ASR 23", "ls_r5_r5_ASR_23"}, 182b8021494Sopenharmony_ci {{cs, r1, r1, ASR, 12}, true, cs, "cs r1 r1 ASR 12", "cs_r1_r1_ASR_12"}, 183b8021494Sopenharmony_ci {{pl, r0, r2, LSR, 3}, true, pl, "pl r0 r2 LSR 3", "pl_r0_r2_LSR_3"}, 184b8021494Sopenharmony_ci {{le, r0, r1, LSR, 5}, true, le, "le r0 r1 LSR 5", "le_r0_r1_LSR_5"}, 185b8021494Sopenharmony_ci {{ne, r0, r5, LSR, 29}, true, ne, "ne r0 r5 LSR 29", "ne_r0_r5_LSR_29"}, 186b8021494Sopenharmony_ci {{vs, r6, r5, LSR, 14}, true, vs, "vs r6 r5 LSR 14", "vs_r6_r5_LSR_14"}, 187b8021494Sopenharmony_ci {{hi, r1, r7, ASR, 25}, true, hi, "hi r1 r7 ASR 25", "hi_r1_r7_ASR_25"}, 188b8021494Sopenharmony_ci {{mi, r2, r5, ASR, 24}, true, mi, "mi r2 r5 ASR 24", "mi_r2_r5_ASR_24"}, 189b8021494Sopenharmony_ci {{vc, r3, r4, ASR, 3}, true, vc, "vc r3 r4 ASR 3", "vc_r3_r4_ASR_3"}, 190b8021494Sopenharmony_ci {{cs, r4, r0, LSR, 29}, true, cs, "cs r4 r0 LSR 29", "cs_r4_r0_LSR_29"}, 191b8021494Sopenharmony_ci {{ne, r6, r6, ASR, 24}, true, ne, "ne r6 r6 ASR 24", "ne_r6_r6_ASR_24"}, 192b8021494Sopenharmony_ci {{lt, r1, r1, LSR, 1}, true, lt, "lt r1 r1 LSR 1", "lt_r1_r1_LSR_1"}, 193b8021494Sopenharmony_ci {{gt, r5, r3, ASR, 8}, true, gt, "gt r5 r3 ASR 8", "gt_r5_r3_ASR_8"}, 194b8021494Sopenharmony_ci {{mi, r4, r3, LSR, 10}, true, mi, "mi r4 r3 LSR 10", "mi_r4_r3_LSR_10"}, 195b8021494Sopenharmony_ci {{ge, r0, r4, LSR, 24}, true, ge, "ge r0 r4 LSR 24", "ge_r0_r4_LSR_24"}, 196b8021494Sopenharmony_ci {{hi, r0, r5, LSR, 17}, true, hi, "hi r0 r5 LSR 17", "hi_r0_r5_LSR_17"}, 197b8021494Sopenharmony_ci {{gt, r6, r7, ASR, 12}, true, gt, "gt r6 r7 ASR 12", "gt_r6_r7_ASR_12"}, 198b8021494Sopenharmony_ci {{mi, r2, r2, LSR, 15}, true, mi, "mi r2 r2 LSR 15", "mi_r2_r2_LSR_15"}, 199b8021494Sopenharmony_ci {{ls, r3, r0, ASR, 1}, true, ls, "ls r3 r0 ASR 1", "ls_r3_r0_ASR_1"}, 200b8021494Sopenharmony_ci {{lt, r4, r0, LSR, 5}, true, lt, "lt r4 r0 LSR 5", "lt_r4_r0_LSR_5"}, 201b8021494Sopenharmony_ci {{hi, r0, r1, LSR, 18}, true, hi, "hi r0 r1 LSR 18", "hi_r0_r1_LSR_18"}, 202b8021494Sopenharmony_ci {{hi, r6, r4, LSR, 28}, true, hi, "hi r6 r4 LSR 28", "hi_r6_r4_LSR_28"}, 203b8021494Sopenharmony_ci {{pl, r1, r1, LSR, 24}, true, pl, "pl r1 r1 LSR 24", "pl_r1_r1_LSR_24"}, 204b8021494Sopenharmony_ci {{vs, r6, r0, ASR, 8}, true, vs, "vs r6 r0 ASR 8", "vs_r6_r0_ASR_8"}, 205b8021494Sopenharmony_ci {{vs, r3, r4, LSR, 8}, true, vs, "vs r3 r4 LSR 8", "vs_r3_r4_LSR_8"}, 206b8021494Sopenharmony_ci {{cs, r2, r6, LSR, 13}, true, cs, "cs r2 r6 LSR 13", "cs_r2_r6_LSR_13"}, 207b8021494Sopenharmony_ci {{lt, r7, r6, ASR, 15}, true, lt, "lt r7 r6 ASR 15", "lt_r7_r6_ASR_15"}, 208b8021494Sopenharmony_ci {{le, r6, r1, ASR, 32}, true, le, "le r6 r1 ASR 32", "le_r6_r1_ASR_32"}, 209b8021494Sopenharmony_ci {{cc, r7, r5, LSR, 3}, true, cc, "cc r7 r5 LSR 3", "cc_r7_r5_LSR_3"}, 210b8021494Sopenharmony_ci {{hi, r5, r1, LSR, 7}, true, hi, "hi r5 r1 LSR 7", "hi_r5_r1_LSR_7"}, 211b8021494Sopenharmony_ci {{lt, r5, r4, LSR, 5}, true, lt, "lt r5 r4 LSR 5", "lt_r5_r4_LSR_5"}, 212b8021494Sopenharmony_ci {{mi, r4, r2, LSR, 9}, true, mi, "mi r4 r2 LSR 9", "mi_r4_r2_LSR_9"}, 213b8021494Sopenharmony_ci {{pl, r3, r3, ASR, 10}, true, pl, "pl r3 r3 ASR 10", "pl_r3_r3_ASR_10"}, 214b8021494Sopenharmony_ci {{ge, r3, r7, LSR, 17}, true, ge, "ge r3 r7 LSR 17", "ge_r3_r7_LSR_17"}, 215b8021494Sopenharmony_ci {{ls, r4, r1, LSR, 5}, true, ls, "ls r4 r1 LSR 5", "ls_r4_r1_LSR_5"}, 216b8021494Sopenharmony_ci {{mi, r4, r3, LSR, 28}, true, mi, "mi r4 r3 LSR 28", "mi_r4_r3_LSR_28"}, 217b8021494Sopenharmony_ci {{ne, r7, r1, ASR, 14}, true, ne, "ne r7 r1 ASR 14", "ne_r7_r1_ASR_14"}, 218b8021494Sopenharmony_ci {{ge, r7, r7, ASR, 20}, true, ge, "ge r7 r7 ASR 20", "ge_r7_r7_ASR_20"}, 219b8021494Sopenharmony_ci {{ne, r2, r3, LSR, 11}, true, ne, "ne r2 r3 LSR 11", "ne_r2_r3_LSR_11"}, 220b8021494Sopenharmony_ci {{lt, r6, r5, ASR, 15}, true, lt, "lt r6 r5 ASR 15", "lt_r6_r5_ASR_15"}, 221b8021494Sopenharmony_ci {{cs, r6, r7, ASR, 3}, true, cs, "cs r6 r7 ASR 3", "cs_r6_r7_ASR_3"}, 222b8021494Sopenharmony_ci {{hi, r7, r7, LSR, 12}, true, hi, "hi r7 r7 LSR 12", "hi_r7_r7_LSR_12"}, 223b8021494Sopenharmony_ci {{cs, r2, r4, ASR, 4}, true, cs, "cs r2 r4 ASR 4", "cs_r2_r4_ASR_4"}, 224b8021494Sopenharmony_ci {{lt, r7, r7, ASR, 3}, true, lt, "lt r7 r7 ASR 3", "lt_r7_r7_ASR_3"}, 225b8021494Sopenharmony_ci {{le, r1, r3, ASR, 27}, true, le, "le r1 r3 ASR 27", "le_r1_r3_ASR_27"}, 226b8021494Sopenharmony_ci {{vs, r2, r3, LSR, 28}, true, vs, "vs r2 r3 LSR 28", "vs_r2_r3_LSR_28"}, 227b8021494Sopenharmony_ci {{pl, r2, r0, ASR, 8}, true, pl, "pl r2 r0 ASR 8", "pl_r2_r0_ASR_8"}, 228b8021494Sopenharmony_ci {{hi, r5, r2, ASR, 15}, true, hi, "hi r5 r2 ASR 15", "hi_r5_r2_ASR_15"}, 229b8021494Sopenharmony_ci {{vs, r6, r0, LSR, 5}, true, vs, "vs r6 r0 LSR 5", "vs_r6_r0_LSR_5"}, 230b8021494Sopenharmony_ci {{le, r1, r6, ASR, 22}, true, le, "le r1 r6 ASR 22", "le_r1_r6_ASR_22"}, 231b8021494Sopenharmony_ci {{hi, r3, r2, ASR, 17}, true, hi, "hi r3 r2 ASR 17", "hi_r3_r2_ASR_17"}, 232b8021494Sopenharmony_ci {{gt, r1, r5, ASR, 16}, true, gt, "gt r1 r5 ASR 16", "gt_r1_r5_ASR_16"}, 233b8021494Sopenharmony_ci {{hi, r2, r0, ASR, 26}, true, hi, "hi r2 r0 ASR 26", "hi_r2_r0_ASR_26"}, 234b8021494Sopenharmony_ci {{vs, r1, r4, LSR, 27}, true, vs, "vs r1 r4 LSR 27", "vs_r1_r4_LSR_27"}, 235b8021494Sopenharmony_ci {{ls, r3, r4, ASR, 15}, true, ls, "ls r3 r4 ASR 15", "ls_r3_r4_ASR_15"}, 236b8021494Sopenharmony_ci {{ge, r7, r4, LSR, 15}, true, ge, "ge r7 r4 LSR 15", "ge_r7_r4_LSR_15"}, 237b8021494Sopenharmony_ci {{vc, r7, r2, LSR, 21}, true, vc, "vc r7 r2 LSR 21", "vc_r7_r2_LSR_21"}, 238b8021494Sopenharmony_ci {{ls, r2, r7, ASR, 22}, true, ls, "ls r2 r7 ASR 22", "ls_r2_r7_ASR_22"}, 239b8021494Sopenharmony_ci {{pl, r5, r5, LSR, 21}, true, pl, "pl r5 r5 LSR 21", "pl_r5_r5_LSR_21"}, 240b8021494Sopenharmony_ci {{cs, r2, r4, ASR, 25}, true, cs, "cs r2 r4 ASR 25", "cs_r2_r4_ASR_25"}, 241b8021494Sopenharmony_ci {{gt, r7, r6, LSR, 5}, true, gt, "gt r7 r6 LSR 5", "gt_r7_r6_LSR_5"}, 242b8021494Sopenharmony_ci {{gt, r5, r6, ASR, 25}, true, gt, "gt r5 r6 ASR 25", "gt_r5_r6_ASR_25"}, 243b8021494Sopenharmony_ci {{vs, r3, r0, LSR, 30}, true, vs, "vs r3 r0 LSR 30", "vs_r3_r0_LSR_30"}, 244b8021494Sopenharmony_ci {{pl, r6, r0, LSR, 17}, true, pl, "pl r6 r0 LSR 17", "pl_r6_r0_LSR_17"}, 245b8021494Sopenharmony_ci {{pl, r6, r2, ASR, 7}, true, pl, "pl r6 r2 ASR 7", "pl_r6_r2_ASR_7"}, 246b8021494Sopenharmony_ci {{lt, r4, r4, LSR, 17}, true, lt, "lt r4 r4 LSR 17", "lt_r4_r4_LSR_17"}, 247b8021494Sopenharmony_ci {{vc, r4, r5, LSR, 3}, true, vc, "vc r4 r5 LSR 3", "vc_r4_r5_LSR_3"}, 248b8021494Sopenharmony_ci {{cc, r4, r4, ASR, 21}, true, cc, "cc r4 r4 ASR 21", "cc_r4_r4_ASR_21"}, 249b8021494Sopenharmony_ci {{vs, r4, r2, ASR, 10}, true, vs, "vs r4 r2 ASR 10", "vs_r4_r2_ASR_10"}, 250b8021494Sopenharmony_ci {{cs, r7, r4, ASR, 10}, true, cs, "cs r7 r4 ASR 10", "cs_r7_r4_ASR_10"}, 251b8021494Sopenharmony_ci {{hi, r6, r1, LSR, 17}, true, hi, "hi r6 r1 LSR 17", "hi_r6_r1_LSR_17"}, 252b8021494Sopenharmony_ci {{vc, r4, r6, LSR, 24}, true, vc, "vc r4 r6 LSR 24", "vc_r4_r6_LSR_24"}, 253b8021494Sopenharmony_ci {{pl, r3, r2, ASR, 7}, true, pl, "pl r3 r2 ASR 7", "pl_r3_r2_ASR_7"}, 254b8021494Sopenharmony_ci {{mi, r3, r7, LSR, 17}, true, mi, "mi r3 r7 LSR 17", "mi_r3_r7_LSR_17"}, 255b8021494Sopenharmony_ci {{pl, r7, r3, ASR, 7}, true, pl, "pl r7 r3 ASR 7", "pl_r7_r3_ASR_7"}, 256b8021494Sopenharmony_ci {{vc, r0, r4, LSR, 10}, true, vc, "vc r0 r4 LSR 10", "vc_r0_r4_LSR_10"}, 257b8021494Sopenharmony_ci {{le, r2, r1, ASR, 24}, true, le, "le r2 r1 ASR 24", "le_r2_r1_ASR_24"}, 258b8021494Sopenharmony_ci {{le, r2, r7, LSR, 11}, true, le, "le r2 r7 LSR 11", "le_r2_r7_LSR_11"}, 259b8021494Sopenharmony_ci {{cs, r6, r0, ASR, 13}, true, cs, "cs r6 r0 ASR 13", "cs_r6_r0_ASR_13"}, 260b8021494Sopenharmony_ci {{ge, r3, r0, ASR, 27}, true, ge, "ge r3 r0 ASR 27", "ge_r3_r0_ASR_27"}, 261b8021494Sopenharmony_ci {{cc, r6, r0, ASR, 17}, true, cc, "cc r6 r0 ASR 17", "cc_r6_r0_ASR_17"}, 262b8021494Sopenharmony_ci {{hi, r7, r7, ASR, 6}, true, hi, "hi r7 r7 ASR 6", "hi_r7_r7_ASR_6"}, 263b8021494Sopenharmony_ci {{vc, r6, r7, LSR, 21}, true, vc, "vc r6 r7 LSR 21", "vc_r6_r7_LSR_21"}, 264b8021494Sopenharmony_ci {{ge, r6, r4, ASR, 25}, true, ge, "ge r6 r4 ASR 25", "ge_r6_r4_ASR_25"}, 265b8021494Sopenharmony_ci {{gt, r5, r2, ASR, 7}, true, gt, "gt r5 r2 ASR 7", "gt_r5_r2_ASR_7"}, 266b8021494Sopenharmony_ci {{gt, r6, r1, LSR, 8}, true, gt, "gt r6 r1 LSR 8", "gt_r6_r1_LSR_8"}, 267b8021494Sopenharmony_ci {{le, r1, r6, ASR, 13}, true, le, "le r1 r6 ASR 13", "le_r1_r6_ASR_13"}, 268b8021494Sopenharmony_ci {{hi, r6, r0, ASR, 24}, true, hi, "hi r6 r0 ASR 24", "hi_r6_r0_ASR_24"}, 269b8021494Sopenharmony_ci {{le, r1, r5, ASR, 29}, true, le, "le r1 r5 ASR 29", "le_r1_r5_ASR_29"}, 270b8021494Sopenharmony_ci {{vs, r5, r1, ASR, 23}, true, vs, "vs r5 r1 ASR 23", "vs_r5_r1_ASR_23"}, 271b8021494Sopenharmony_ci {{le, r0, r6, LSR, 7}, true, le, "le r0 r6 LSR 7", "le_r0_r6_LSR_7"}, 272b8021494Sopenharmony_ci {{pl, r7, r1, LSR, 17}, true, pl, "pl r7 r1 LSR 17", "pl_r7_r1_LSR_17"}, 273b8021494Sopenharmony_ci {{ne, r4, r7, ASR, 5}, true, ne, "ne r4 r7 ASR 5", "ne_r4_r7_ASR_5"}, 274b8021494Sopenharmony_ci {{ne, r5, r5, LSR, 22}, true, ne, "ne r5 r5 LSR 22", "ne_r5_r5_LSR_22"}, 275b8021494Sopenharmony_ci {{lt, r7, r2, ASR, 29}, true, lt, "lt r7 r2 ASR 29", "lt_r7_r2_ASR_29"}, 276b8021494Sopenharmony_ci {{le, r5, r3, LSR, 28}, true, le, "le r5 r3 LSR 28", "le_r5_r3_LSR_28"}, 277b8021494Sopenharmony_ci {{eq, r7, r5, ASR, 29}, true, eq, "eq r7 r5 ASR 29", "eq_r7_r5_ASR_29"}, 278b8021494Sopenharmony_ci {{cs, r2, r6, LSR, 4}, true, cs, "cs r2 r6 LSR 4", "cs_r2_r6_LSR_4"}, 279b8021494Sopenharmony_ci {{ne, r1, r0, LSR, 17}, true, ne, "ne r1 r0 LSR 17", "ne_r1_r0_LSR_17"}, 280b8021494Sopenharmony_ci {{ls, r2, r6, ASR, 28}, true, ls, "ls r2 r6 ASR 28", "ls_r2_r6_ASR_28"}, 281b8021494Sopenharmony_ci {{ge, r5, r7, ASR, 32}, true, ge, "ge r5 r7 ASR 32", "ge_r5_r7_ASR_32"}, 282b8021494Sopenharmony_ci {{cs, r0, r0, ASR, 1}, true, cs, "cs r0 r0 ASR 1", "cs_r0_r0_ASR_1"}, 283b8021494Sopenharmony_ci {{mi, r6, r5, LSR, 11}, true, mi, "mi r6 r5 LSR 11", "mi_r6_r5_LSR_11"}, 284b8021494Sopenharmony_ci {{mi, r5, r3, ASR, 29}, true, mi, "mi r5 r3 ASR 29", "mi_r5_r3_ASR_29"}, 285b8021494Sopenharmony_ci {{eq, r2, r2, LSR, 30}, true, eq, "eq r2 r2 LSR 30", "eq_r2_r2_LSR_30"}, 286b8021494Sopenharmony_ci {{mi, r4, r2, ASR, 25}, true, mi, "mi r4 r2 ASR 25", "mi_r4_r2_ASR_25"}, 287b8021494Sopenharmony_ci {{cs, r5, r0, LSR, 13}, true, cs, "cs r5 r0 LSR 13", "cs_r5_r0_LSR_13"}, 288b8021494Sopenharmony_ci {{cc, r7, r4, ASR, 10}, true, cc, "cc r7 r4 ASR 10", "cc_r7_r4_ASR_10"}, 289b8021494Sopenharmony_ci {{mi, r1, r5, LSR, 21}, true, mi, "mi r1 r5 LSR 21", "mi_r1_r5_LSR_21"}, 290b8021494Sopenharmony_ci {{vs, r3, r2, LSR, 2}, true, vs, "vs r3 r2 LSR 2", "vs_r3_r2_LSR_2"}, 291b8021494Sopenharmony_ci {{ls, r4, r4, ASR, 14}, true, ls, "ls r4 r4 ASR 14", "ls_r4_r4_ASR_14"}, 292b8021494Sopenharmony_ci {{eq, r5, r4, LSR, 23}, true, eq, "eq r5 r4 LSR 23", "eq_r5_r4_LSR_23"}, 293b8021494Sopenharmony_ci {{gt, r7, r1, ASR, 20}, true, gt, "gt r7 r1 ASR 20", "gt_r7_r1_ASR_20"}, 294b8021494Sopenharmony_ci {{vs, r2, r5, ASR, 5}, true, vs, "vs r2 r5 ASR 5", "vs_r2_r5_ASR_5"}, 295b8021494Sopenharmony_ci {{le, r6, r0, LSR, 14}, true, le, "le r6 r0 LSR 14", "le_r6_r0_LSR_14"}, 296b8021494Sopenharmony_ci {{cs, r6, r5, LSR, 14}, true, cs, "cs r6 r5 LSR 14", "cs_r6_r5_LSR_14"}, 297b8021494Sopenharmony_ci {{ls, r7, r4, ASR, 22}, true, ls, "ls r7 r4 ASR 22", "ls_r7_r4_ASR_22"}, 298b8021494Sopenharmony_ci {{cs, r3, r2, ASR, 1}, true, cs, "cs r3 r2 ASR 1", "cs_r3_r2_ASR_1"}, 299b8021494Sopenharmony_ci {{ne, r7, r1, LSR, 30}, true, ne, "ne r7 r1 LSR 30", "ne_r7_r1_LSR_30"}, 300b8021494Sopenharmony_ci {{ge, r3, r6, LSR, 32}, true, ge, "ge r3 r6 LSR 32", "ge_r3_r6_LSR_32"}, 301b8021494Sopenharmony_ci {{ne, r2, r5, ASR, 11}, true, ne, "ne r2 r5 ASR 11", "ne_r2_r5_ASR_11"}, 302b8021494Sopenharmony_ci {{cc, r4, r4, LSR, 4}, true, cc, "cc r4 r4 LSR 4", "cc_r4_r4_LSR_4"}, 303b8021494Sopenharmony_ci {{lt, r6, r0, ASR, 31}, true, lt, "lt r6 r0 ASR 31", "lt_r6_r0_ASR_31"}, 304b8021494Sopenharmony_ci {{cc, r7, r0, LSR, 26}, true, cc, "cc r7 r0 LSR 26", "cc_r7_r0_LSR_26"}, 305b8021494Sopenharmony_ci {{vs, r1, r4, LSR, 31}, true, vs, "vs r1 r4 LSR 31", "vs_r1_r4_LSR_31"}, 306b8021494Sopenharmony_ci {{vc, r3, r6, LSR, 11}, true, vc, "vc r3 r6 LSR 11", "vc_r3_r6_LSR_11"}, 307b8021494Sopenharmony_ci {{cs, r0, r4, LSR, 26}, true, cs, "cs r0 r4 LSR 26", "cs_r0_r4_LSR_26"}, 308b8021494Sopenharmony_ci {{eq, r0, r6, ASR, 31}, true, eq, "eq r0 r6 ASR 31", "eq_r0_r6_ASR_31"}, 309b8021494Sopenharmony_ci {{eq, r0, r1, ASR, 27}, true, eq, "eq r0 r1 ASR 27", "eq_r0_r1_ASR_27"}, 310b8021494Sopenharmony_ci {{ls, r2, r0, LSR, 16}, true, ls, "ls r2 r0 LSR 16", "ls_r2_r0_LSR_16"}, 311b8021494Sopenharmony_ci {{vs, r1, r7, LSR, 10}, true, vs, "vs r1 r7 LSR 10", "vs_r1_r7_LSR_10"}, 312b8021494Sopenharmony_ci {{gt, r1, r2, ASR, 7}, true, gt, "gt r1 r2 ASR 7", "gt_r1_r2_ASR_7"}, 313b8021494Sopenharmony_ci {{vc, r6, r5, LSR, 6}, true, vc, "vc r6 r5 LSR 6", "vc_r6_r5_LSR_6"}, 314b8021494Sopenharmony_ci {{ge, r7, r2, ASR, 4}, true, ge, "ge r7 r2 ASR 4", "ge_r7_r2_ASR_4"}, 315b8021494Sopenharmony_ci {{cs, r6, r0, LSR, 24}, true, cs, "cs r6 r0 LSR 24", "cs_r6_r0_LSR_24"}, 316b8021494Sopenharmony_ci {{vc, r3, r0, LSR, 25}, true, vc, "vc r3 r0 LSR 25", "vc_r3_r0_LSR_25"}, 317b8021494Sopenharmony_ci {{vc, r6, r6, ASR, 4}, true, vc, "vc r6 r6 ASR 4", "vc_r6_r6_ASR_4"}, 318b8021494Sopenharmony_ci {{vc, r1, r3, LSR, 15}, true, vc, "vc r1 r3 LSR 15", "vc_r1_r3_LSR_15"}, 319b8021494Sopenharmony_ci {{cc, r4, r2, ASR, 26}, true, cc, "cc r4 r2 ASR 26", "cc_r4_r2_ASR_26"}, 320b8021494Sopenharmony_ci {{pl, r2, r2, LSR, 10}, true, pl, "pl r2 r2 LSR 10", "pl_r2_r2_LSR_10"}, 321b8021494Sopenharmony_ci {{pl, r3, r0, LSR, 27}, true, pl, "pl r3 r0 LSR 27", "pl_r3_r0_LSR_27"}, 322b8021494Sopenharmony_ci {{pl, r7, r7, LSR, 21}, true, pl, "pl r7 r7 LSR 21", "pl_r7_r7_LSR_21"}, 323b8021494Sopenharmony_ci {{le, r3, r3, LSR, 31}, true, le, "le r3 r3 LSR 31", "le_r3_r3_LSR_31"}, 324b8021494Sopenharmony_ci {{ge, r2, r2, LSR, 10}, true, ge, "ge r2 r2 LSR 10", "ge_r2_r2_LSR_10"}, 325b8021494Sopenharmony_ci {{le, r2, r1, LSR, 20}, true, le, "le r2 r1 LSR 20", "le_r2_r1_LSR_20"}, 326b8021494Sopenharmony_ci {{eq, r3, r3, LSR, 4}, true, eq, "eq r3 r3 LSR 4", "eq_r3_r3_LSR_4"}, 327b8021494Sopenharmony_ci {{mi, r3, r6, ASR, 7}, true, mi, "mi r3 r6 ASR 7", "mi_r3_r6_ASR_7"}, 328b8021494Sopenharmony_ci {{hi, r2, r6, ASR, 29}, true, hi, "hi r2 r6 ASR 29", "hi_r2_r6_ASR_29"}, 329b8021494Sopenharmony_ci {{pl, r2, r0, LSR, 14}, true, pl, "pl r2 r0 LSR 14", "pl_r2_r0_LSR_14"}, 330b8021494Sopenharmony_ci {{gt, r0, r7, ASR, 26}, true, gt, "gt r0 r7 ASR 26", "gt_r0_r7_ASR_26"}, 331b8021494Sopenharmony_ci {{lt, r1, r6, LSR, 20}, true, lt, "lt r1 r6 LSR 20", "lt_r1_r6_LSR_20"}, 332b8021494Sopenharmony_ci {{le, r7, r1, ASR, 20}, true, le, "le r7 r1 ASR 20", "le_r7_r1_ASR_20"}, 333b8021494Sopenharmony_ci {{mi, r5, r5, LSR, 7}, true, mi, "mi r5 r5 LSR 7", "mi_r5_r5_LSR_7"}, 334b8021494Sopenharmony_ci {{cc, r2, r3, LSR, 23}, true, cc, "cc r2 r3 LSR 23", "cc_r2_r3_LSR_23"}, 335b8021494Sopenharmony_ci {{gt, r4, r2, LSR, 4}, true, gt, "gt r4 r2 LSR 4", "gt_r4_r2_LSR_4"}, 336b8021494Sopenharmony_ci {{vc, r3, r0, LSR, 32}, true, vc, "vc r3 r0 LSR 32", "vc_r3_r0_LSR_32"}, 337b8021494Sopenharmony_ci {{mi, r4, r0, LSR, 15}, true, mi, "mi r4 r0 LSR 15", "mi_r4_r0_LSR_15"}, 338b8021494Sopenharmony_ci {{pl, r4, r2, ASR, 19}, true, pl, "pl r4 r2 ASR 19", "pl_r4_r2_ASR_19"}, 339b8021494Sopenharmony_ci {{ge, r3, r3, ASR, 3}, true, ge, "ge r3 r3 ASR 3", "ge_r3_r3_ASR_3"}, 340b8021494Sopenharmony_ci {{cc, r4, r1, ASR, 11}, true, cc, "cc r4 r1 ASR 11", "cc_r4_r1_ASR_11"}, 341b8021494Sopenharmony_ci {{ne, r4, r1, LSR, 14}, true, ne, "ne r4 r1 LSR 14", "ne_r4_r1_LSR_14"}, 342b8021494Sopenharmony_ci {{hi, r4, r7, ASR, 29}, true, hi, "hi r4 r7 ASR 29", "hi_r4_r7_ASR_29"}, 343b8021494Sopenharmony_ci {{ls, r0, r2, LSR, 6}, true, ls, "ls r0 r2 LSR 6", "ls_r0_r2_LSR_6"}, 344b8021494Sopenharmony_ci {{hi, r3, r0, LSR, 18}, true, hi, "hi r3 r0 LSR 18", "hi_r3_r0_LSR_18"}, 345b8021494Sopenharmony_ci {{ge, r2, r5, ASR, 27}, true, ge, "ge r2 r5 ASR 27", "ge_r2_r5_ASR_27"}, 346b8021494Sopenharmony_ci {{vs, r6, r3, ASR, 10}, true, vs, "vs r6 r3 ASR 10", "vs_r6_r3_ASR_10"}, 347b8021494Sopenharmony_ci {{cs, r7, r2, LSR, 19}, true, cs, "cs r7 r2 LSR 19", "cs_r7_r2_LSR_19"}, 348b8021494Sopenharmony_ci {{vs, r2, r6, ASR, 4}, true, vs, "vs r2 r6 ASR 4", "vs_r2_r6_ASR_4"}, 349b8021494Sopenharmony_ci {{vs, r3, r2, ASR, 26}, true, vs, "vs r3 r2 ASR 26", "vs_r3_r2_ASR_26"}, 350b8021494Sopenharmony_ci {{gt, r3, r3, LSR, 14}, true, gt, "gt r3 r3 LSR 14", "gt_r3_r3_LSR_14"}, 351b8021494Sopenharmony_ci {{mi, r1, r3, ASR, 20}, true, mi, "mi r1 r3 ASR 20", "mi_r1_r3_ASR_20"}, 352b8021494Sopenharmony_ci {{eq, r2, r0, LSR, 3}, true, eq, "eq r2 r0 LSR 3", "eq_r2_r0_LSR_3"}, 353b8021494Sopenharmony_ci {{lt, r4, r3, LSR, 14}, true, lt, "lt r4 r3 LSR 14", "lt_r4_r3_LSR_14"}, 354b8021494Sopenharmony_ci {{vs, r2, r7, ASR, 13}, true, vs, "vs r2 r7 ASR 13", "vs_r2_r7_ASR_13"}, 355b8021494Sopenharmony_ci {{ls, r4, r1, ASR, 31}, true, ls, "ls r4 r1 ASR 31", "ls_r4_r1_ASR_31"}, 356b8021494Sopenharmony_ci {{le, r4, r3, ASR, 17}, true, le, "le r4 r3 ASR 17", "le_r4_r3_ASR_17"}, 357b8021494Sopenharmony_ci {{mi, r7, r0, LSR, 14}, true, mi, "mi r7 r0 LSR 14", "mi_r7_r0_LSR_14"}, 358b8021494Sopenharmony_ci {{ne, r5, r6, LSR, 6}, true, ne, "ne r5 r6 LSR 6", "ne_r5_r6_LSR_6"}, 359b8021494Sopenharmony_ci {{lt, r5, r2, LSR, 6}, true, lt, "lt r5 r2 LSR 6", "lt_r5_r2_LSR_6"}, 360b8021494Sopenharmony_ci {{gt, r6, r1, ASR, 30}, true, gt, "gt r6 r1 ASR 30", "gt_r6_r1_ASR_30"}, 361b8021494Sopenharmony_ci {{ne, r7, r7, ASR, 30}, true, ne, "ne r7 r7 ASR 30", "ne_r7_r7_ASR_30"}, 362b8021494Sopenharmony_ci {{ls, r5, r1, ASR, 25}, true, ls, "ls r5 r1 ASR 25", "ls_r5_r1_ASR_25"}, 363b8021494Sopenharmony_ci {{lt, r3, r2, LSR, 29}, true, lt, "lt r3 r2 LSR 29", "lt_r3_r2_LSR_29"}, 364b8021494Sopenharmony_ci {{le, r6, r1, LSR, 6}, true, le, "le r6 r1 LSR 6", "le_r6_r1_LSR_6"}, 365b8021494Sopenharmony_ci {{gt, r7, r6, ASR, 12}, true, gt, "gt r7 r6 ASR 12", "gt_r7_r6_ASR_12"}, 366b8021494Sopenharmony_ci {{ls, r6, r2, ASR, 10}, true, ls, "ls r6 r2 ASR 10", "ls_r6_r2_ASR_10"}, 367b8021494Sopenharmony_ci {{ne, r7, r7, LSR, 6}, true, ne, "ne r7 r7 LSR 6", "ne_r7_r7_LSR_6"}, 368b8021494Sopenharmony_ci {{mi, r0, r3, ASR, 5}, true, mi, "mi r0 r3 ASR 5", "mi_r0_r3_ASR_5"}, 369b8021494Sopenharmony_ci {{ne, r0, r4, LSR, 3}, true, ne, "ne r0 r4 LSR 3", "ne_r0_r4_LSR_3"}, 370b8021494Sopenharmony_ci {{ge, r3, r4, ASR, 16}, true, ge, "ge r3 r4 ASR 16", "ge_r3_r4_ASR_16"}, 371b8021494Sopenharmony_ci {{ls, r4, r5, ASR, 19}, true, ls, "ls r4 r5 ASR 19", "ls_r4_r5_ASR_19"}, 372b8021494Sopenharmony_ci {{eq, r1, r7, ASR, 21}, true, eq, "eq r1 r7 ASR 21", "eq_r1_r7_ASR_21"}, 373b8021494Sopenharmony_ci {{hi, r6, r4, ASR, 30}, true, hi, "hi r6 r4 ASR 30", "hi_r6_r4_ASR_30"}, 374b8021494Sopenharmony_ci {{eq, r7, r1, LSR, 3}, true, eq, "eq r7 r1 LSR 3", "eq_r7_r1_LSR_3"}, 375b8021494Sopenharmony_ci {{pl, r6, r2, ASR, 12}, true, pl, "pl r6 r2 ASR 12", "pl_r6_r2_ASR_12"}, 376b8021494Sopenharmony_ci {{eq, r6, r3, LSR, 28}, true, eq, "eq r6 r3 LSR 28", "eq_r6_r3_LSR_28"}, 377b8021494Sopenharmony_ci {{cc, r6, r6, LSR, 5}, true, cc, "cc r6 r6 LSR 5", "cc_r6_r6_LSR_5"}, 378b8021494Sopenharmony_ci {{le, r2, r4, ASR, 3}, true, le, "le r2 r4 ASR 3", "le_r2_r4_ASR_3"}, 379b8021494Sopenharmony_ci {{vc, r7, r4, LSR, 30}, true, vc, "vc r7 r4 LSR 30", "vc_r7_r4_LSR_30"}, 380b8021494Sopenharmony_ci {{ge, r0, r0, LSR, 25}, true, ge, "ge r0 r0 LSR 25", "ge_r0_r0_LSR_25"}, 381b8021494Sopenharmony_ci {{ls, r0, r2, ASR, 27}, true, ls, "ls r0 r2 ASR 27", "ls_r0_r2_ASR_27"}, 382b8021494Sopenharmony_ci {{cc, r5, r6, LSR, 22}, true, cc, "cc r5 r6 LSR 22", "cc_r5_r6_LSR_22"}, 383b8021494Sopenharmony_ci {{lt, r0, r4, LSR, 17}, true, lt, "lt r0 r4 LSR 17", "lt_r0_r4_LSR_17"}, 384b8021494Sopenharmony_ci {{le, r0, r4, ASR, 1}, true, le, "le r0 r4 ASR 1", "le_r0_r4_ASR_1"}, 385b8021494Sopenharmony_ci {{hi, r5, r5, ASR, 6}, true, hi, "hi r5 r5 ASR 6", "hi_r5_r5_ASR_6"}, 386b8021494Sopenharmony_ci {{vc, r7, r0, LSR, 16}, true, vc, "vc r7 r0 LSR 16", "vc_r7_r0_LSR_16"}, 387b8021494Sopenharmony_ci {{ne, r6, r1, ASR, 16}, true, ne, "ne r6 r1 ASR 16", "ne_r6_r1_ASR_16"}, 388b8021494Sopenharmony_ci {{vs, r7, r0, LSR, 31}, true, vs, "vs r7 r0 LSR 31", "vs_r7_r0_LSR_31"}, 389b8021494Sopenharmony_ci {{ne, r3, r2, ASR, 18}, true, ne, "ne r3 r2 ASR 18", "ne_r3_r2_ASR_18"}, 390b8021494Sopenharmony_ci {{vs, r2, r2, LSR, 18}, true, vs, "vs r2 r2 LSR 18", "vs_r2_r2_LSR_18"}, 391b8021494Sopenharmony_ci {{mi, r6, r2, ASR, 25}, true, mi, "mi r6 r2 ASR 25", "mi_r6_r2_ASR_25"}, 392b8021494Sopenharmony_ci {{hi, r7, r6, ASR, 28}, true, hi, "hi r7 r6 ASR 28", "hi_r7_r6_ASR_28"}, 393b8021494Sopenharmony_ci {{gt, r2, r1, ASR, 3}, true, gt, "gt r2 r1 ASR 3", "gt_r2_r1_ASR_3"}, 394b8021494Sopenharmony_ci {{ne, r0, r1, ASR, 31}, true, ne, "ne r0 r1 ASR 31", "ne_r0_r1_ASR_31"}, 395b8021494Sopenharmony_ci {{hi, r2, r7, ASR, 24}, true, hi, "hi r2 r7 ASR 24", "hi_r2_r7_ASR_24"}, 396b8021494Sopenharmony_ci {{hi, r2, r5, ASR, 30}, true, hi, "hi r2 r5 ASR 30", "hi_r2_r5_ASR_30"}, 397b8021494Sopenharmony_ci {{gt, r3, r2, ASR, 11}, true, gt, "gt r3 r2 ASR 11", "gt_r3_r2_ASR_11"}, 398b8021494Sopenharmony_ci {{ge, r4, r0, ASR, 3}, true, ge, "ge r4 r0 ASR 3", "ge_r4_r0_ASR_3"}, 399b8021494Sopenharmony_ci {{mi, r0, r4, LSR, 19}, true, mi, "mi r0 r4 LSR 19", "mi_r0_r4_LSR_19"}, 400b8021494Sopenharmony_ci {{gt, r0, r5, ASR, 30}, true, gt, "gt r0 r5 ASR 30", "gt_r0_r5_ASR_30"}, 401b8021494Sopenharmony_ci {{vs, r0, r3, LSR, 16}, true, vs, "vs r0 r3 LSR 16", "vs_r0_r3_LSR_16"}, 402b8021494Sopenharmony_ci {{ls, r4, r1, LSR, 3}, true, ls, "ls r4 r1 LSR 3", "ls_r4_r1_LSR_3"}, 403b8021494Sopenharmony_ci {{vc, r4, r3, ASR, 17}, true, vc, "vc r4 r3 ASR 17", "vc_r4_r3_ASR_17"}, 404b8021494Sopenharmony_ci {{gt, r0, r1, LSR, 5}, true, gt, "gt r0 r1 LSR 5", "gt_r0_r1_LSR_5"}, 405b8021494Sopenharmony_ci {{ls, r1, r4, ASR, 6}, true, ls, "ls r1 r4 ASR 6", "ls_r1_r4_ASR_6"}, 406b8021494Sopenharmony_ci {{ge, r1, r1, ASR, 23}, true, ge, "ge r1 r1 ASR 23", "ge_r1_r1_ASR_23"}, 407b8021494Sopenharmony_ci {{hi, r1, r3, ASR, 28}, true, hi, "hi r1 r3 ASR 28", "hi_r1_r3_ASR_28"}, 408b8021494Sopenharmony_ci {{vc, r1, r1, ASR, 11}, true, vc, "vc r1 r1 ASR 11", "vc_r1_r1_ASR_11"}, 409b8021494Sopenharmony_ci {{le, r0, r4, ASR, 24}, true, le, "le r0 r4 ASR 24", "le_r0_r4_ASR_24"}, 410b8021494Sopenharmony_ci {{cc, r4, r7, LSR, 4}, true, cc, "cc r4 r7 LSR 4", "cc_r4_r7_LSR_4"}, 411b8021494Sopenharmony_ci {{hi, r6, r2, LSR, 7}, true, hi, "hi r6 r2 LSR 7", "hi_r6_r2_LSR_7"}, 412b8021494Sopenharmony_ci {{le, r1, r1, LSR, 22}, true, le, "le r1 r1 LSR 22", "le_r1_r1_LSR_22"}, 413b8021494Sopenharmony_ci {{le, r6, r4, LSR, 6}, true, le, "le r6 r4 LSR 6", "le_r6_r4_LSR_6"}, 414b8021494Sopenharmony_ci {{le, r2, r5, ASR, 11}, true, le, "le r2 r5 ASR 11", "le_r2_r5_ASR_11"}, 415b8021494Sopenharmony_ci {{vc, r5, r1, ASR, 2}, true, vc, "vc r5 r1 ASR 2", "vc_r5_r1_ASR_2"}, 416b8021494Sopenharmony_ci {{lt, r7, r4, LSR, 31}, true, lt, "lt r7 r4 LSR 31", "lt_r7_r4_LSR_31"}, 417b8021494Sopenharmony_ci {{hi, r6, r1, LSR, 28}, true, hi, "hi r6 r1 LSR 28", "hi_r6_r1_LSR_28"}, 418b8021494Sopenharmony_ci {{ne, r7, r7, LSR, 24}, true, ne, "ne r7 r7 LSR 24", "ne_r7_r7_LSR_24"}, 419b8021494Sopenharmony_ci {{ge, r7, r6, LSR, 32}, true, ge, "ge r7 r6 LSR 32", "ge_r7_r6_LSR_32"}, 420b8021494Sopenharmony_ci {{hi, r6, r4, LSR, 25}, true, hi, "hi r6 r4 LSR 25", "hi_r6_r4_LSR_25"}, 421b8021494Sopenharmony_ci {{pl, r2, r6, ASR, 3}, true, pl, "pl r2 r6 ASR 3", "pl_r2_r6_ASR_3"}, 422b8021494Sopenharmony_ci {{ls, r5, r1, LSR, 20}, true, ls, "ls r5 r1 LSR 20", "ls_r5_r1_LSR_20"}, 423b8021494Sopenharmony_ci {{hi, r1, r1, LSR, 10}, true, hi, "hi r1 r1 LSR 10", "hi_r1_r1_LSR_10"}, 424b8021494Sopenharmony_ci {{lt, r6, r1, ASR, 29}, true, lt, "lt r6 r1 ASR 29", "lt_r6_r1_ASR_29"}, 425b8021494Sopenharmony_ci {{mi, r7, r5, ASR, 14}, true, mi, "mi r7 r5 ASR 14", "mi_r7_r5_ASR_14"}, 426b8021494Sopenharmony_ci {{le, r1, r0, ASR, 5}, true, le, "le r1 r0 ASR 5", "le_r1_r0_ASR_5"}, 427b8021494Sopenharmony_ci {{gt, r7, r2, ASR, 18}, true, gt, "gt r7 r2 ASR 18", "gt_r7_r2_ASR_18"}, 428b8021494Sopenharmony_ci {{pl, r5, r4, LSR, 12}, true, pl, "pl r5 r4 LSR 12", "pl_r5_r4_LSR_12"}, 429b8021494Sopenharmony_ci {{mi, r1, r3, ASR, 21}, true, mi, "mi r1 r3 ASR 21", "mi_r1_r3_ASR_21"}, 430b8021494Sopenharmony_ci {{mi, r7, r7, LSR, 13}, true, mi, "mi r7 r7 LSR 13", "mi_r7_r7_LSR_13"}, 431b8021494Sopenharmony_ci {{gt, r1, r4, LSR, 7}, true, gt, "gt r1 r4 LSR 7", "gt_r1_r4_LSR_7"}, 432b8021494Sopenharmony_ci {{vc, r5, r5, ASR, 28}, true, vc, "vc r5 r5 ASR 28", "vc_r5_r5_ASR_28"}, 433b8021494Sopenharmony_ci {{mi, r3, r3, LSR, 24}, true, mi, "mi r3 r3 LSR 24", "mi_r3_r3_LSR_24"}, 434b8021494Sopenharmony_ci {{ls, r4, r7, LSR, 32}, true, ls, "ls r4 r7 LSR 32", "ls_r4_r7_LSR_32"}, 435b8021494Sopenharmony_ci {{mi, r1, r4, LSR, 18}, true, mi, "mi r1 r4 LSR 18", "mi_r1_r4_LSR_18"}, 436b8021494Sopenharmony_ci {{le, r3, r6, LSR, 10}, true, le, "le r3 r6 LSR 10", "le_r3_r6_LSR_10"}, 437b8021494Sopenharmony_ci {{gt, r3, r3, ASR, 17}, true, gt, "gt r3 r3 ASR 17", "gt_r3_r3_ASR_17"}, 438b8021494Sopenharmony_ci {{ls, r1, r5, LSR, 25}, true, ls, "ls r1 r5 LSR 25", "ls_r1_r5_LSR_25"}, 439b8021494Sopenharmony_ci {{vs, r1, r0, ASR, 11}, true, vs, "vs r1 r0 ASR 11", "vs_r1_r0_ASR_11"}, 440b8021494Sopenharmony_ci {{cs, r0, r6, ASR, 17}, true, cs, "cs r0 r6 ASR 17", "cs_r0_r6_ASR_17"}, 441b8021494Sopenharmony_ci {{cs, r0, r6, LSR, 14}, true, cs, "cs r0 r6 LSR 14", "cs_r0_r6_LSR_14"}, 442b8021494Sopenharmony_ci {{lt, r4, r6, LSR, 13}, true, lt, "lt r4 r6 LSR 13", "lt_r4_r6_LSR_13"}, 443b8021494Sopenharmony_ci {{vs, r6, r4, ASR, 23}, true, vs, "vs r6 r4 ASR 23", "vs_r6_r4_ASR_23"}, 444b8021494Sopenharmony_ci {{cc, r4, r4, ASR, 12}, true, cc, "cc r4 r4 ASR 12", "cc_r4_r4_ASR_12"}, 445b8021494Sopenharmony_ci {{lt, r1, r6, LSR, 28}, true, lt, "lt r1 r6 LSR 28", "lt_r1_r6_LSR_28"}, 446b8021494Sopenharmony_ci {{cc, r4, r2, ASR, 2}, true, cc, "cc r4 r2 ASR 2", "cc_r4_r2_ASR_2"}, 447b8021494Sopenharmony_ci {{ls, r2, r0, ASR, 27}, true, ls, "ls r2 r0 ASR 27", "ls_r2_r0_ASR_27"}, 448b8021494Sopenharmony_ci {{le, r6, r3, LSR, 32}, true, le, "le r6 r3 LSR 32", "le_r6_r3_LSR_32"}, 449b8021494Sopenharmony_ci {{cs, r6, r7, ASR, 10}, true, cs, "cs r6 r7 ASR 10", "cs_r6_r7_ASR_10"}, 450b8021494Sopenharmony_ci {{vs, r0, r1, ASR, 31}, true, vs, "vs r0 r1 ASR 31", "vs_r0_r1_ASR_31"}, 451b8021494Sopenharmony_ci {{vc, r2, r3, ASR, 2}, true, vc, "vc r2 r3 ASR 2", "vc_r2_r3_ASR_2"}, 452b8021494Sopenharmony_ci {{ge, r1, r7, ASR, 24}, true, ge, "ge r1 r7 ASR 24", "ge_r1_r7_ASR_24"}, 453b8021494Sopenharmony_ci {{eq, r3, r2, LSR, 21}, true, eq, "eq r3 r2 LSR 21", "eq_r3_r2_LSR_21"}, 454b8021494Sopenharmony_ci {{ge, r4, r3, ASR, 22}, true, ge, "ge r4 r3 ASR 22", "ge_r4_r3_ASR_22"}, 455b8021494Sopenharmony_ci {{hi, r2, r0, LSR, 1}, true, hi, "hi r2 r0 LSR 1", "hi_r2_r0_LSR_1"}, 456b8021494Sopenharmony_ci {{vs, r2, r4, LSR, 9}, true, vs, "vs r2 r4 LSR 9", "vs_r2_r4_LSR_9"}, 457b8021494Sopenharmony_ci {{ls, r5, r3, LSR, 20}, true, ls, "ls r5 r3 LSR 20", "ls_r5_r3_LSR_20"}, 458b8021494Sopenharmony_ci {{cs, r4, r0, ASR, 5}, true, cs, "cs r4 r0 ASR 5", "cs_r4_r0_ASR_5"}, 459b8021494Sopenharmony_ci {{lt, r6, r2, LSR, 5}, true, lt, "lt r6 r2 LSR 5", "lt_r6_r2_LSR_5"}, 460b8021494Sopenharmony_ci {{ls, r4, r6, LSR, 24}, true, ls, "ls r4 r6 LSR 24", "ls_r4_r6_LSR_24"}, 461b8021494Sopenharmony_ci {{le, r6, r3, LSR, 26}, true, le, "le r6 r3 LSR 26", "le_r6_r3_LSR_26"}, 462b8021494Sopenharmony_ci {{ne, r4, r5, ASR, 27}, true, ne, "ne r4 r5 ASR 27", "ne_r4_r5_ASR_27"}, 463b8021494Sopenharmony_ci {{hi, r2, r1, LSR, 19}, true, hi, "hi r2 r1 LSR 19", "hi_r2_r1_LSR_19"}, 464b8021494Sopenharmony_ci {{mi, r2, r3, LSR, 17}, true, mi, "mi r2 r3 LSR 17", "mi_r2_r3_LSR_17"}, 465b8021494Sopenharmony_ci {{eq, r6, r4, LSR, 3}, true, eq, "eq r6 r4 LSR 3", "eq_r6_r4_LSR_3"}, 466b8021494Sopenharmony_ci {{ne, r3, r1, LSR, 5}, true, ne, "ne r3 r1 LSR 5", "ne_r3_r1_LSR_5"}, 467b8021494Sopenharmony_ci {{vs, r1, r4, ASR, 4}, true, vs, "vs r1 r4 ASR 4", "vs_r1_r4_ASR_4"}, 468b8021494Sopenharmony_ci {{ls, r0, r3, LSR, 22}, true, ls, "ls r0 r3 LSR 22", "ls_r0_r3_LSR_22"}, 469b8021494Sopenharmony_ci {{mi, r6, r4, LSR, 1}, true, mi, "mi r6 r4 LSR 1", "mi_r6_r4_LSR_1"}, 470b8021494Sopenharmony_ci {{hi, r5, r4, LSR, 12}, true, hi, "hi r5 r4 LSR 12", "hi_r5_r4_LSR_12"}, 471b8021494Sopenharmony_ci {{le, r0, r3, LSR, 3}, true, le, "le r0 r3 LSR 3", "le_r0_r3_LSR_3"}, 472b8021494Sopenharmony_ci {{pl, r1, r6, LSR, 30}, true, pl, "pl r1 r6 LSR 30", "pl_r1_r6_LSR_30"}, 473b8021494Sopenharmony_ci {{ne, r7, r2, ASR, 31}, true, ne, "ne r7 r2 ASR 31", "ne_r7_r2_ASR_31"}, 474b8021494Sopenharmony_ci {{ge, r6, r2, ASR, 11}, true, ge, "ge r6 r2 ASR 11", "ge_r6_r2_ASR_11"}, 475b8021494Sopenharmony_ci {{pl, r0, r1, LSR, 28}, true, pl, "pl r0 r1 LSR 28", "pl_r0_r1_LSR_28"}, 476b8021494Sopenharmony_ci {{lt, r6, r4, LSR, 23}, true, lt, "lt r6 r4 LSR 23", "lt_r6_r4_LSR_23"}, 477b8021494Sopenharmony_ci {{mi, r2, r4, LSR, 1}, true, mi, "mi r2 r4 LSR 1", "mi_r2_r4_LSR_1"}, 478b8021494Sopenharmony_ci {{mi, r7, r3, ASR, 18}, true, mi, "mi r7 r3 ASR 18", "mi_r7_r3_ASR_18"}, 479b8021494Sopenharmony_ci {{ls, r4, r1, LSR, 24}, true, ls, "ls r4 r1 LSR 24", "ls_r4_r1_LSR_24"}, 480b8021494Sopenharmony_ci {{ne, r4, r4, ASR, 7}, true, ne, "ne r4 r4 ASR 7", "ne_r4_r4_ASR_7"}, 481b8021494Sopenharmony_ci {{lt, r4, r4, ASR, 23}, true, lt, "lt r4 r4 ASR 23", "lt_r4_r4_ASR_23"}, 482b8021494Sopenharmony_ci {{vs, r7, r2, ASR, 24}, true, vs, "vs r7 r2 ASR 24", "vs_r7_r2_ASR_24"}, 483b8021494Sopenharmony_ci {{cs, r2, r4, ASR, 24}, true, cs, "cs r2 r4 ASR 24", "cs_r2_r4_ASR_24"}, 484b8021494Sopenharmony_ci {{ge, r6, r0, LSR, 9}, true, ge, "ge r6 r0 LSR 9", "ge_r6_r0_LSR_9"}, 485b8021494Sopenharmony_ci {{mi, r2, r1, ASR, 10}, true, mi, "mi r2 r1 ASR 10", "mi_r2_r1_ASR_10"}, 486b8021494Sopenharmony_ci {{mi, r6, r3, ASR, 13}, true, mi, "mi r6 r3 ASR 13", "mi_r6_r3_ASR_13"}, 487b8021494Sopenharmony_ci {{vc, r4, r6, ASR, 28}, true, vc, "vc r4 r6 ASR 28", "vc_r4_r6_ASR_28"}, 488b8021494Sopenharmony_ci {{pl, r6, r7, ASR, 1}, true, pl, "pl r6 r7 ASR 1", "pl_r6_r7_ASR_1"}, 489b8021494Sopenharmony_ci {{gt, r1, r2, ASR, 18}, true, gt, "gt r1 r2 ASR 18", "gt_r1_r2_ASR_18"}, 490b8021494Sopenharmony_ci {{hi, r6, r2, LSR, 32}, true, hi, "hi r6 r2 LSR 32", "hi_r6_r2_LSR_32"}, 491b8021494Sopenharmony_ci {{eq, r3, r0, ASR, 10}, true, eq, "eq r3 r0 ASR 10", "eq_r3_r0_ASR_10"}, 492b8021494Sopenharmony_ci {{mi, r0, r3, ASR, 8}, true, mi, "mi r0 r3 ASR 8", "mi_r0_r3_ASR_8"}, 493b8021494Sopenharmony_ci {{pl, r6, r0, ASR, 27}, true, pl, "pl r6 r0 ASR 27", "pl_r6_r0_ASR_27"}, 494b8021494Sopenharmony_ci {{lt, r6, r4, ASR, 28}, true, lt, "lt r6 r4 ASR 28", "lt_r6_r4_ASR_28"}, 495b8021494Sopenharmony_ci {{ne, r6, r3, ASR, 25}, true, ne, "ne r6 r3 ASR 25", "ne_r6_r3_ASR_25"}, 496b8021494Sopenharmony_ci {{lt, r1, r1, LSR, 16}, true, lt, "lt r1 r1 LSR 16", "lt_r1_r1_LSR_16"}, 497b8021494Sopenharmony_ci {{vs, r4, r3, ASR, 18}, true, vs, "vs r4 r3 ASR 18", "vs_r4_r3_ASR_18"}, 498b8021494Sopenharmony_ci {{vs, r3, r5, LSR, 16}, true, vs, "vs r3 r5 LSR 16", "vs_r3_r5_LSR_16"}, 499b8021494Sopenharmony_ci {{le, r6, r1, LSR, 31}, true, le, "le r6 r1 LSR 31", "le_r6_r1_LSR_31"}, 500b8021494Sopenharmony_ci {{ls, r6, r3, LSR, 14}, true, ls, "ls r6 r3 LSR 14", "ls_r6_r3_LSR_14"}, 501b8021494Sopenharmony_ci {{pl, r3, r6, ASR, 17}, true, pl, "pl r3 r6 ASR 17", "pl_r3_r6_ASR_17"}, 502b8021494Sopenharmony_ci {{vc, r7, r7, ASR, 1}, true, vc, "vc r7 r7 ASR 1", "vc_r7_r7_ASR_1"}, 503b8021494Sopenharmony_ci {{cc, r2, r0, ASR, 17}, true, cc, "cc r2 r0 ASR 17", "cc_r2_r0_ASR_17"}, 504b8021494Sopenharmony_ci {{le, r7, r1, LSR, 32}, true, le, "le r7 r1 LSR 32", "le_r7_r1_LSR_32"}, 505b8021494Sopenharmony_ci {{eq, r1, r3, ASR, 8}, true, eq, "eq r1 r3 ASR 8", "eq_r1_r3_ASR_8"}, 506b8021494Sopenharmony_ci {{vc, r4, r5, LSR, 18}, true, vc, "vc r4 r5 LSR 18", "vc_r4_r5_LSR_18"}, 507b8021494Sopenharmony_ci {{hi, r0, r2, ASR, 32}, true, hi, "hi r0 r2 ASR 32", "hi_r0_r2_ASR_32"}, 508b8021494Sopenharmony_ci {{le, r4, r6, ASR, 4}, true, le, "le r4 r6 ASR 4", "le_r4_r6_ASR_4"}, 509b8021494Sopenharmony_ci {{mi, r5, r5, ASR, 7}, true, mi, "mi r5 r5 ASR 7", "mi_r5_r5_ASR_7"}, 510b8021494Sopenharmony_ci {{eq, r6, r5, LSR, 24}, true, eq, "eq r6 r5 LSR 24", "eq_r6_r5_LSR_24"}, 511b8021494Sopenharmony_ci {{pl, r5, r5, ASR, 9}, true, pl, "pl r5 r5 ASR 9", "pl_r5_r5_ASR_9"}, 512b8021494Sopenharmony_ci {{ne, r6, r2, ASR, 24}, true, ne, "ne r6 r2 ASR 24", "ne_r6_r2_ASR_24"}, 513b8021494Sopenharmony_ci {{eq, r3, r7, ASR, 3}, true, eq, "eq r3 r7 ASR 3", "eq_r3_r7_ASR_3"}, 514b8021494Sopenharmony_ci {{lt, r6, r0, LSR, 25}, true, lt, "lt r6 r0 LSR 25", "lt_r6_r0_LSR_25"}, 515b8021494Sopenharmony_ci {{ls, r5, r5, ASR, 8}, true, ls, "ls r5 r5 ASR 8", "ls_r5_r5_ASR_8"}, 516b8021494Sopenharmony_ci {{hi, r5, r6, ASR, 17}, true, hi, "hi r5 r6 ASR 17", "hi_r5_r6_ASR_17"}, 517b8021494Sopenharmony_ci {{ne, r4, r0, ASR, 18}, true, ne, "ne r4 r0 ASR 18", "ne_r4_r0_ASR_18"}, 518b8021494Sopenharmony_ci {{mi, r2, r4, LSR, 30}, true, mi, "mi r2 r4 LSR 30", "mi_r2_r4_LSR_30"}, 519b8021494Sopenharmony_ci {{cc, r1, r6, ASR, 5}, true, cc, "cc r1 r6 ASR 5", "cc_r1_r6_ASR_5"}, 520b8021494Sopenharmony_ci {{hi, r7, r2, LSR, 15}, true, hi, "hi r7 r2 LSR 15", "hi_r7_r2_LSR_15"}, 521b8021494Sopenharmony_ci {{cc, r7, r7, ASR, 29}, true, cc, "cc r7 r7 ASR 29", "cc_r7_r7_ASR_29"}, 522b8021494Sopenharmony_ci {{eq, r7, r4, ASR, 22}, true, eq, "eq r7 r4 ASR 22", "eq_r7_r4_ASR_22"}, 523b8021494Sopenharmony_ci {{mi, r3, r3, ASR, 2}, true, mi, "mi r3 r3 ASR 2", "mi_r3_r3_ASR_2"}, 524b8021494Sopenharmony_ci {{le, r2, r5, LSR, 14}, true, le, "le r2 r5 LSR 14", "le_r2_r5_LSR_14"}, 525b8021494Sopenharmony_ci {{pl, r6, r5, ASR, 12}, true, pl, "pl r6 r5 ASR 12", "pl_r6_r5_ASR_12"}, 526b8021494Sopenharmony_ci {{ne, r5, r6, LSR, 11}, true, ne, "ne r5 r6 LSR 11", "ne_r5_r6_LSR_11"}, 527b8021494Sopenharmony_ci {{cs, r0, r1, ASR, 29}, true, cs, "cs r0 r1 ASR 29", "cs_r0_r1_ASR_29"}, 528b8021494Sopenharmony_ci {{cc, r3, r6, LSR, 5}, true, cc, "cc r3 r6 LSR 5", "cc_r3_r6_LSR_5"}, 529b8021494Sopenharmony_ci {{ge, r5, r4, LSR, 10}, true, ge, "ge r5 r4 LSR 10", "ge_r5_r4_LSR_10"}, 530b8021494Sopenharmony_ci {{vs, r7, r5, ASR, 9}, true, vs, "vs r7 r5 ASR 9", "vs_r7_r5_ASR_9"}, 531b8021494Sopenharmony_ci {{ge, r6, r4, LSR, 22}, true, ge, "ge r6 r4 LSR 22", "ge_r6_r4_LSR_22"}, 532b8021494Sopenharmony_ci {{vs, r0, r7, ASR, 20}, true, vs, "vs r0 r7 ASR 20", "vs_r0_r7_ASR_20"}, 533b8021494Sopenharmony_ci {{ls, r1, r5, LSR, 21}, true, ls, "ls r1 r5 LSR 21", "ls_r1_r5_LSR_21"}, 534b8021494Sopenharmony_ci {{cc, r3, r3, ASR, 16}, true, cc, "cc r3 r3 ASR 16", "cc_r3_r3_ASR_16"}, 535b8021494Sopenharmony_ci {{hi, r2, r3, ASR, 30}, true, hi, "hi r2 r3 ASR 30", "hi_r2_r3_ASR_30"}, 536b8021494Sopenharmony_ci {{cs, r5, r3, LSR, 12}, true, cs, "cs r5 r3 LSR 12", "cs_r5_r3_LSR_12"}, 537b8021494Sopenharmony_ci {{cc, r5, r5, ASR, 24}, true, cc, "cc r5 r5 ASR 24", "cc_r5_r5_ASR_24"}, 538b8021494Sopenharmony_ci {{vc, r7, r0, ASR, 18}, true, vc, "vc r7 r0 ASR 18", "vc_r7_r0_ASR_18"}, 539b8021494Sopenharmony_ci {{mi, r4, r7, ASR, 30}, true, mi, "mi r4 r7 ASR 30", "mi_r4_r7_ASR_30"}, 540b8021494Sopenharmony_ci {{vc, r6, r0, LSR, 17}, true, vc, "vc r6 r0 LSR 17", "vc_r6_r0_LSR_17"}, 541b8021494Sopenharmony_ci {{eq, r3, r3, ASR, 2}, true, eq, "eq r3 r3 ASR 2", "eq_r3_r3_ASR_2"}, 542b8021494Sopenharmony_ci {{ne, r5, r2, LSR, 31}, true, ne, "ne r5 r2 LSR 31", "ne_r5_r2_LSR_31"}, 543b8021494Sopenharmony_ci {{ne, r4, r2, ASR, 6}, true, ne, "ne r4 r2 ASR 6", "ne_r4_r2_ASR_6"}, 544b8021494Sopenharmony_ci {{eq, r3, r7, ASR, 25}, true, eq, "eq r3 r7 ASR 25", "eq_r3_r7_ASR_25"}, 545b8021494Sopenharmony_ci {{pl, r1, r7, LSR, 11}, true, pl, "pl r1 r7 LSR 11", "pl_r1_r7_LSR_11"}, 546b8021494Sopenharmony_ci {{lt, r4, r4, ASR, 1}, true, lt, "lt r4 r4 ASR 1", "lt_r4_r4_ASR_1"}, 547b8021494Sopenharmony_ci {{vc, r7, r4, LSR, 8}, true, vc, "vc r7 r4 LSR 8", "vc_r7_r4_LSR_8"}, 548b8021494Sopenharmony_ci {{ls, r1, r4, ASR, 4}, true, ls, "ls r1 r4 ASR 4", "ls_r1_r4_ASR_4"}, 549b8021494Sopenharmony_ci {{cc, r2, r4, LSR, 18}, true, cc, "cc r2 r4 LSR 18", "cc_r2_r4_LSR_18"}, 550b8021494Sopenharmony_ci {{gt, r0, r5, LSR, 8}, true, gt, "gt r0 r5 LSR 8", "gt_r0_r5_LSR_8"}, 551b8021494Sopenharmony_ci {{lt, r4, r1, LSR, 4}, true, lt, "lt r4 r1 LSR 4", "lt_r4_r1_LSR_4"}, 552b8021494Sopenharmony_ci {{gt, r7, r7, ASR, 12}, true, gt, "gt r7 r7 ASR 12", "gt_r7_r7_ASR_12"}, 553b8021494Sopenharmony_ci {{vs, r0, r6, LSR, 28}, true, vs, "vs r0 r6 LSR 28", "vs_r0_r6_LSR_28"}, 554b8021494Sopenharmony_ci {{vs, r0, r5, LSR, 25}, true, vs, "vs r0 r5 LSR 25", "vs_r0_r5_LSR_25"}, 555b8021494Sopenharmony_ci {{pl, r7, r1, ASR, 13}, true, pl, "pl r7 r1 ASR 13", "pl_r7_r1_ASR_13"}, 556b8021494Sopenharmony_ci {{le, r7, r0, LSR, 28}, true, le, "le r7 r0 LSR 28", "le_r7_r0_LSR_28"}, 557b8021494Sopenharmony_ci {{vs, r2, r5, LSR, 25}, true, vs, "vs r2 r5 LSR 25", "vs_r2_r5_LSR_25"}, 558b8021494Sopenharmony_ci {{cs, r0, r5, LSR, 14}, true, cs, "cs r0 r5 LSR 14", "cs_r0_r5_LSR_14"}, 559b8021494Sopenharmony_ci {{cs, r0, r5, ASR, 31}, true, cs, "cs r0 r5 ASR 31", "cs_r0_r5_ASR_31"}, 560b8021494Sopenharmony_ci {{pl, r5, r5, ASR, 13}, true, pl, "pl r5 r5 ASR 13", "pl_r5_r5_ASR_13"}, 561b8021494Sopenharmony_ci {{vc, r2, r1, LSR, 18}, true, vc, "vc r2 r1 LSR 18", "vc_r2_r1_LSR_18"}, 562b8021494Sopenharmony_ci {{hi, r2, r1, ASR, 31}, true, hi, "hi r2 r1 ASR 31", "hi_r2_r1_ASR_31"}, 563b8021494Sopenharmony_ci {{cc, r6, r0, LSR, 11}, true, cc, "cc r6 r0 LSR 11", "cc_r6_r0_LSR_11"}, 564b8021494Sopenharmony_ci {{pl, r6, r0, LSR, 1}, true, pl, "pl r6 r0 LSR 1", "pl_r6_r0_LSR_1"}, 565b8021494Sopenharmony_ci {{lt, r5, r1, LSR, 3}, true, lt, "lt r5 r1 LSR 3", "lt_r5_r1_LSR_3"}, 566b8021494Sopenharmony_ci {{eq, r3, r6, LSR, 2}, true, eq, "eq r3 r6 LSR 2", "eq_r3_r6_LSR_2"}, 567b8021494Sopenharmony_ci {{mi, r7, r3, ASR, 5}, true, mi, "mi r7 r3 ASR 5", "mi_r7_r3_ASR_5"}, 568b8021494Sopenharmony_ci {{vs, r5, r5, LSR, 3}, true, vs, "vs r5 r5 LSR 3", "vs_r5_r5_LSR_3"}, 569b8021494Sopenharmony_ci {{hi, r5, r3, ASR, 18}, true, hi, "hi r5 r3 ASR 18", "hi_r5_r3_ASR_18"}, 570b8021494Sopenharmony_ci {{cc, r1, r6, ASR, 13}, true, cc, "cc r1 r6 ASR 13", "cc_r1_r6_ASR_13"}, 571b8021494Sopenharmony_ci {{vs, r7, r1, LSR, 25}, true, vs, "vs r7 r1 LSR 25", "vs_r7_r1_LSR_25"}, 572b8021494Sopenharmony_ci {{lt, r1, r4, ASR, 22}, true, lt, "lt r1 r4 ASR 22", "lt_r1_r4_ASR_22"}, 573b8021494Sopenharmony_ci {{ls, r4, r5, LSR, 13}, true, ls, "ls r4 r5 LSR 13", "ls_r4_r5_LSR_13"}, 574b8021494Sopenharmony_ci {{cc, r4, r7, LSR, 26}, true, cc, "cc r4 r7 LSR 26", "cc_r4_r7_LSR_26"}, 575b8021494Sopenharmony_ci {{cs, r7, r7, LSR, 21}, true, cs, "cs r7 r7 LSR 21", "cs_r7_r7_LSR_21"}, 576b8021494Sopenharmony_ci {{lt, r4, r4, ASR, 2}, true, lt, "lt r4 r4 ASR 2", "lt_r4_r4_ASR_2"}, 577b8021494Sopenharmony_ci {{eq, r7, r1, ASR, 22}, true, eq, "eq r7 r1 ASR 22", "eq_r7_r1_ASR_22"}, 578b8021494Sopenharmony_ci {{vc, r7, r6, ASR, 32}, true, vc, "vc r7 r6 ASR 32", "vc_r7_r6_ASR_32"}, 579b8021494Sopenharmony_ci {{cs, r1, r7, LSR, 5}, true, cs, "cs r1 r7 LSR 5", "cs_r1_r7_LSR_5"}, 580b8021494Sopenharmony_ci {{vs, r6, r2, LSR, 19}, true, vs, "vs r6 r2 LSR 19", "vs_r6_r2_LSR_19"}, 581b8021494Sopenharmony_ci {{cs, r3, r2, ASR, 16}, true, cs, "cs r3 r2 ASR 16", "cs_r3_r2_ASR_16"}, 582b8021494Sopenharmony_ci {{vs, r2, r3, LSR, 27}, true, vs, "vs r2 r3 LSR 27", "vs_r2_r3_LSR_27"}, 583b8021494Sopenharmony_ci {{pl, r3, r3, LSR, 29}, true, pl, "pl r3 r3 LSR 29", "pl_r3_r3_LSR_29"}, 584b8021494Sopenharmony_ci {{lt, r3, r4, LSR, 24}, true, lt, "lt r3 r4 LSR 24", "lt_r3_r4_LSR_24"}, 585b8021494Sopenharmony_ci {{le, r0, r4, LSR, 15}, true, le, "le r0 r4 LSR 15", "le_r0_r4_LSR_15"}, 586b8021494Sopenharmony_ci {{ne, r6, r1, ASR, 8}, true, ne, "ne r6 r1 ASR 8", "ne_r6_r1_ASR_8"}, 587b8021494Sopenharmony_ci {{pl, r2, r1, LSR, 31}, true, pl, "pl r2 r1 LSR 31", "pl_r2_r1_LSR_31"}, 588b8021494Sopenharmony_ci {{vs, r1, r4, ASR, 19}, true, vs, "vs r1 r4 ASR 19", "vs_r1_r4_ASR_19"}, 589b8021494Sopenharmony_ci {{pl, r4, r1, LSR, 15}, true, pl, "pl r4 r1 LSR 15", "pl_r4_r1_LSR_15"}, 590b8021494Sopenharmony_ci {{pl, r0, r7, LSR, 10}, true, pl, "pl r0 r7 LSR 10", "pl_r0_r7_LSR_10"}, 591b8021494Sopenharmony_ci {{eq, r6, r0, ASR, 7}, true, eq, "eq r6 r0 ASR 7", "eq_r6_r0_ASR_7"}, 592b8021494Sopenharmony_ci {{ne, r2, r6, LSR, 12}, true, ne, "ne r2 r6 LSR 12", "ne_r2_r6_LSR_12"}, 593b8021494Sopenharmony_ci {{ls, r0, r3, ASR, 4}, true, ls, "ls r0 r3 ASR 4", "ls_r0_r3_ASR_4"}, 594b8021494Sopenharmony_ci {{cs, r3, r5, ASR, 11}, true, cs, "cs r3 r5 ASR 11", "cs_r3_r5_ASR_11"}, 595b8021494Sopenharmony_ci {{gt, r7, r0, ASR, 19}, true, gt, "gt r7 r0 ASR 19", "gt_r7_r0_ASR_19"}}; 596b8021494Sopenharmony_ci 597b8021494Sopenharmony_ci// These headers each contain an array of `TestResult` with the reference output 598b8021494Sopenharmony_ci// values. The reference arrays are names `kReference{mnemonic}`. 599b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-operand-rn-shift-amount-1to32-in-it-block-mov-t32.h" 600b8021494Sopenharmony_ci 601b8021494Sopenharmony_ci 602b8021494Sopenharmony_ci// The maximum number of errors to report in detail for each test. 603b8021494Sopenharmony_ciconst unsigned kErrorReportLimit = 8; 604b8021494Sopenharmony_ci 605b8021494Sopenharmony_citypedef void (MacroAssembler::*Fn)(Condition cond, 606b8021494Sopenharmony_ci Register rd, 607b8021494Sopenharmony_ci const Operand& op); 608b8021494Sopenharmony_ci 609b8021494Sopenharmony_civoid TestHelper(Fn instruction, 610b8021494Sopenharmony_ci const char* mnemonic, 611b8021494Sopenharmony_ci const TestResult reference[]) { 612b8021494Sopenharmony_ci unsigned total_error_count = 0; 613b8021494Sopenharmony_ci MacroAssembler masm(BUF_SIZE); 614b8021494Sopenharmony_ci 615b8021494Sopenharmony_ci masm.UseT32(); 616b8021494Sopenharmony_ci 617b8021494Sopenharmony_ci for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) { 618b8021494Sopenharmony_ci // Values to pass to the macro-assembler. 619b8021494Sopenharmony_ci Condition cond = kTests[i].operands.cond; 620b8021494Sopenharmony_ci Register rd = kTests[i].operands.rd; 621b8021494Sopenharmony_ci Register rn = kTests[i].operands.rn; 622b8021494Sopenharmony_ci ShiftType shift = kTests[i].operands.shift; 623b8021494Sopenharmony_ci uint32_t amount = kTests[i].operands.amount; 624b8021494Sopenharmony_ci Operand op(rn, shift, amount); 625b8021494Sopenharmony_ci 626b8021494Sopenharmony_ci int32_t start = masm.GetCursorOffset(); 627b8021494Sopenharmony_ci { 628b8021494Sopenharmony_ci // We never generate more that 4 bytes, as IT instructions are only 629b8021494Sopenharmony_ci // allowed for narrow encodings. 630b8021494Sopenharmony_ci ExactAssemblyScope scope(&masm, 4, ExactAssemblyScope::kMaximumSize); 631b8021494Sopenharmony_ci if (kTests[i].in_it_block) { 632b8021494Sopenharmony_ci masm.it(kTests[i].it_condition); 633b8021494Sopenharmony_ci } 634b8021494Sopenharmony_ci (masm.*instruction)(cond, rd, op); 635b8021494Sopenharmony_ci } 636b8021494Sopenharmony_ci int32_t end = masm.GetCursorOffset(); 637b8021494Sopenharmony_ci 638b8021494Sopenharmony_ci const byte* result_ptr = 639b8021494Sopenharmony_ci masm.GetBuffer()->GetOffsetAddress<const byte*>(start); 640b8021494Sopenharmony_ci VIXL_ASSERT(start < end); 641b8021494Sopenharmony_ci uint32_t result_size = end - start; 642b8021494Sopenharmony_ci 643b8021494Sopenharmony_ci if (Test::generate_test_trace()) { 644b8021494Sopenharmony_ci // Print the result bytes. 645b8021494Sopenharmony_ci printf("const byte kInstruction_%s_%s[] = {\n", 646b8021494Sopenharmony_ci mnemonic, 647b8021494Sopenharmony_ci kTests[i].identifier); 648b8021494Sopenharmony_ci for (uint32_t j = 0; j < result_size; j++) { 649b8021494Sopenharmony_ci if (j == 0) { 650b8021494Sopenharmony_ci printf(" 0x%02" PRIx8, result_ptr[j]); 651b8021494Sopenharmony_ci } else { 652b8021494Sopenharmony_ci printf(", 0x%02" PRIx8, result_ptr[j]); 653b8021494Sopenharmony_ci } 654b8021494Sopenharmony_ci } 655b8021494Sopenharmony_ci // This comment is meant to be used by external tools to validate 656b8021494Sopenharmony_ci // the encoding. We can parse the comment to figure out what 657b8021494Sopenharmony_ci // instruction this corresponds to. 658b8021494Sopenharmony_ci if (kTests[i].in_it_block) { 659b8021494Sopenharmony_ci printf(" // It %s; %s %s\n};\n", 660b8021494Sopenharmony_ci kTests[i].it_condition.GetName(), 661b8021494Sopenharmony_ci mnemonic, 662b8021494Sopenharmony_ci kTests[i].operands_description); 663b8021494Sopenharmony_ci } else { 664b8021494Sopenharmony_ci printf(" // %s %s\n};\n", mnemonic, kTests[i].operands_description); 665b8021494Sopenharmony_ci } 666b8021494Sopenharmony_ci } else { 667b8021494Sopenharmony_ci // Check we've emitted the exact same encoding as present in the 668b8021494Sopenharmony_ci // trace file. Only print up to `kErrorReportLimit` errors. 669b8021494Sopenharmony_ci if (((result_size != reference[i].size) || 670b8021494Sopenharmony_ci (memcmp(result_ptr, reference[i].encoding, reference[i].size) != 671b8021494Sopenharmony_ci 0)) && 672b8021494Sopenharmony_ci (++total_error_count <= kErrorReportLimit)) { 673b8021494Sopenharmony_ci printf("Error when testing \"%s\" with operands \"%s\":\n", 674b8021494Sopenharmony_ci mnemonic, 675b8021494Sopenharmony_ci kTests[i].operands_description); 676b8021494Sopenharmony_ci printf(" Expected: "); 677b8021494Sopenharmony_ci for (uint32_t j = 0; j < reference[i].size; j++) { 678b8021494Sopenharmony_ci if (j == 0) { 679b8021494Sopenharmony_ci printf("0x%02" PRIx8, reference[i].encoding[j]); 680b8021494Sopenharmony_ci } else { 681b8021494Sopenharmony_ci printf(", 0x%02" PRIx8, reference[i].encoding[j]); 682b8021494Sopenharmony_ci } 683b8021494Sopenharmony_ci } 684b8021494Sopenharmony_ci printf("\n"); 685b8021494Sopenharmony_ci printf(" Found: "); 686b8021494Sopenharmony_ci for (uint32_t j = 0; j < result_size; j++) { 687b8021494Sopenharmony_ci if (j == 0) { 688b8021494Sopenharmony_ci printf("0x%02" PRIx8, result_ptr[j]); 689b8021494Sopenharmony_ci } else { 690b8021494Sopenharmony_ci printf(", 0x%02" PRIx8, result_ptr[j]); 691b8021494Sopenharmony_ci } 692b8021494Sopenharmony_ci } 693b8021494Sopenharmony_ci printf("\n"); 694b8021494Sopenharmony_ci } 695b8021494Sopenharmony_ci } 696b8021494Sopenharmony_ci } 697b8021494Sopenharmony_ci 698b8021494Sopenharmony_ci masm.FinalizeCode(); 699b8021494Sopenharmony_ci 700b8021494Sopenharmony_ci if (Test::generate_test_trace()) { 701b8021494Sopenharmony_ci // Finalize the trace file by writing the final `TestResult` array 702b8021494Sopenharmony_ci // which links all generated instruction encodings. 703b8021494Sopenharmony_ci printf("const TestResult kReference%s[] = {\n", mnemonic); 704b8021494Sopenharmony_ci for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) { 705b8021494Sopenharmony_ci printf(" {\n"); 706b8021494Sopenharmony_ci printf(" ARRAY_SIZE(kInstruction_%s_%s),\n", 707b8021494Sopenharmony_ci mnemonic, 708b8021494Sopenharmony_ci kTests[i].identifier); 709b8021494Sopenharmony_ci printf(" kInstruction_%s_%s,\n", mnemonic, kTests[i].identifier); 710b8021494Sopenharmony_ci printf(" },\n"); 711b8021494Sopenharmony_ci } 712b8021494Sopenharmony_ci printf("};\n"); 713b8021494Sopenharmony_ci } else { 714b8021494Sopenharmony_ci if (total_error_count > kErrorReportLimit) { 715b8021494Sopenharmony_ci printf("%u other errors follow.\n", 716b8021494Sopenharmony_ci total_error_count - kErrorReportLimit); 717b8021494Sopenharmony_ci } 718b8021494Sopenharmony_ci // Crash if the test failed. 719b8021494Sopenharmony_ci VIXL_CHECK(total_error_count == 0); 720b8021494Sopenharmony_ci } 721b8021494Sopenharmony_ci} 722b8021494Sopenharmony_ci 723b8021494Sopenharmony_ci// Instantiate tests for each instruction in the list. 724b8021494Sopenharmony_ci#define TEST(mnemonic) \ 725b8021494Sopenharmony_ci void Test_##mnemonic() { \ 726b8021494Sopenharmony_ci TestHelper(&MacroAssembler::mnemonic, #mnemonic, kReference##mnemonic); \ 727b8021494Sopenharmony_ci } \ 728b8021494Sopenharmony_ci Test test_##mnemonic( \ 729b8021494Sopenharmony_ci "AARCH32_ASSEMBLER_COND_RD_OPERAND_RN_SHIFT_AMOUNT_1TO32_IN_IT_" \ 730b8021494Sopenharmony_ci "BLOCK_" #mnemonic "_T32", \ 731b8021494Sopenharmony_ci &Test_##mnemonic); 732b8021494Sopenharmony_ciFOREACH_INSTRUCTION(TEST) 733b8021494Sopenharmony_ci#undef TEST 734b8021494Sopenharmony_ci 735b8021494Sopenharmony_ci} // namespace 736b8021494Sopenharmony_ci#endif 737b8021494Sopenharmony_ci 738b8021494Sopenharmony_ci} // namespace aarch32 739b8021494Sopenharmony_ci} // namespace vixl 740