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(mul) \ 53b8021494Sopenharmony_ci M(muls) \ 54b8021494Sopenharmony_ci M(qadd16) \ 55b8021494Sopenharmony_ci M(qadd8) \ 56b8021494Sopenharmony_ci M(qasx) \ 57b8021494Sopenharmony_ci M(qsax) \ 58b8021494Sopenharmony_ci M(qsub16) \ 59b8021494Sopenharmony_ci M(qsub8) \ 60b8021494Sopenharmony_ci M(sdiv) \ 61b8021494Sopenharmony_ci M(shadd16) \ 62b8021494Sopenharmony_ci M(shadd8) \ 63b8021494Sopenharmony_ci M(shasx) \ 64b8021494Sopenharmony_ci M(shsax) \ 65b8021494Sopenharmony_ci M(shsub16) \ 66b8021494Sopenharmony_ci M(shsub8) \ 67b8021494Sopenharmony_ci M(smmul) \ 68b8021494Sopenharmony_ci M(smmulr) \ 69b8021494Sopenharmony_ci M(smuad) \ 70b8021494Sopenharmony_ci M(smuadx) \ 71b8021494Sopenharmony_ci M(smulbb) \ 72b8021494Sopenharmony_ci M(smulbt) \ 73b8021494Sopenharmony_ci M(smultb) \ 74b8021494Sopenharmony_ci M(smultt) \ 75b8021494Sopenharmony_ci M(smulwb) \ 76b8021494Sopenharmony_ci M(smulwt) \ 77b8021494Sopenharmony_ci M(smusd) \ 78b8021494Sopenharmony_ci M(smusdx) \ 79b8021494Sopenharmony_ci M(udiv) \ 80b8021494Sopenharmony_ci M(uhadd16) \ 81b8021494Sopenharmony_ci M(uhadd8) \ 82b8021494Sopenharmony_ci M(uhasx) \ 83b8021494Sopenharmony_ci M(uhsax) \ 84b8021494Sopenharmony_ci M(uhsub16) \ 85b8021494Sopenharmony_ci M(uhsub8) \ 86b8021494Sopenharmony_ci M(uqadd16) \ 87b8021494Sopenharmony_ci M(uqadd8) \ 88b8021494Sopenharmony_ci M(uqasx) \ 89b8021494Sopenharmony_ci M(uqsax) \ 90b8021494Sopenharmony_ci M(uqsub16) \ 91b8021494Sopenharmony_ci M(uqsub8) \ 92b8021494Sopenharmony_ci M(usad8) \ 93b8021494Sopenharmony_ci M(sadd16) \ 94b8021494Sopenharmony_ci M(sadd8) \ 95b8021494Sopenharmony_ci M(sasx) \ 96b8021494Sopenharmony_ci M(sel) \ 97b8021494Sopenharmony_ci M(ssax) \ 98b8021494Sopenharmony_ci M(ssub16) \ 99b8021494Sopenharmony_ci M(ssub8) \ 100b8021494Sopenharmony_ci M(uadd16) \ 101b8021494Sopenharmony_ci M(uadd8) \ 102b8021494Sopenharmony_ci M(uasx) \ 103b8021494Sopenharmony_ci M(usax) \ 104b8021494Sopenharmony_ci M(usub16) \ 105b8021494Sopenharmony_ci M(usub8) \ 106b8021494Sopenharmony_ci M(qadd) \ 107b8021494Sopenharmony_ci M(qdadd) \ 108b8021494Sopenharmony_ci M(qdsub) \ 109b8021494Sopenharmony_ci M(qsub) 110b8021494Sopenharmony_ci 111b8021494Sopenharmony_ci 112b8021494Sopenharmony_ci// The following definitions are defined again in each generated test, therefore 113b8021494Sopenharmony_ci// we need to place them in an anonymous namespace. It expresses that they are 114b8021494Sopenharmony_ci// local to this file only, and the compiler is not allowed to share these types 115b8021494Sopenharmony_ci// across test files during template instantiation. Specifically, `Operands` has 116b8021494Sopenharmony_ci// various layouts across generated tests so it absolutely cannot be shared. 117b8021494Sopenharmony_ci 118b8021494Sopenharmony_ci#ifdef VIXL_INCLUDE_TARGET_A32 119b8021494Sopenharmony_cinamespace { 120b8021494Sopenharmony_ci 121b8021494Sopenharmony_ci// Values to be passed to the assembler to produce the instruction under test. 122b8021494Sopenharmony_cistruct Operands { 123b8021494Sopenharmony_ci Condition cond; 124b8021494Sopenharmony_ci Register rd; 125b8021494Sopenharmony_ci Register rn; 126b8021494Sopenharmony_ci Register rm; 127b8021494Sopenharmony_ci}; 128b8021494Sopenharmony_ci 129b8021494Sopenharmony_ci// This structure contains all data needed to test one specific 130b8021494Sopenharmony_ci// instruction. 131b8021494Sopenharmony_cistruct TestData { 132b8021494Sopenharmony_ci // The `operands` field represents what to pass to the assembler to 133b8021494Sopenharmony_ci // produce the instruction. 134b8021494Sopenharmony_ci Operands operands; 135b8021494Sopenharmony_ci // True if we need to generate an IT instruction for this test to be valid. 136b8021494Sopenharmony_ci bool in_it_block; 137b8021494Sopenharmony_ci // The condition to give the IT instruction, this will be set to "al" by 138b8021494Sopenharmony_ci // default. 139b8021494Sopenharmony_ci Condition it_condition; 140b8021494Sopenharmony_ci // Description of the operands, used for error reporting. 141b8021494Sopenharmony_ci const char* operands_description; 142b8021494Sopenharmony_ci // Unique identifier, used for generating traces. 143b8021494Sopenharmony_ci const char* identifier; 144b8021494Sopenharmony_ci}; 145b8021494Sopenharmony_ci 146b8021494Sopenharmony_cistruct TestResult { 147b8021494Sopenharmony_ci size_t size; 148b8021494Sopenharmony_ci const byte* encoding; 149b8021494Sopenharmony_ci}; 150b8021494Sopenharmony_ci 151b8021494Sopenharmony_ci// Each element of this array produce one instruction encoding. 152b8021494Sopenharmony_ciconst TestData kTests[] = 153b8021494Sopenharmony_ci {{{hi, r1, r9, r5}, false, al, "hi r1 r9 r5", "hi_r1_r9_r5"}, 154b8021494Sopenharmony_ci {{pl, r8, r6, r2}, false, al, "pl r8 r6 r2", "pl_r8_r6_r2"}, 155b8021494Sopenharmony_ci {{hi, r5, r8, r2}, false, al, "hi r5 r8 r2", "hi_r5_r8_r2"}, 156b8021494Sopenharmony_ci {{vc, r9, r2, r7}, false, al, "vc r9 r2 r7", "vc_r9_r2_r7"}, 157b8021494Sopenharmony_ci {{lt, r4, r6, r3}, false, al, "lt r4 r6 r3", "lt_r4_r6_r3"}, 158b8021494Sopenharmony_ci {{le, r11, r6, r2}, false, al, "le r11 r6 r2", "le_r11_r6_r2"}, 159b8021494Sopenharmony_ci {{cc, r8, r14, r4}, false, al, "cc r8 r14 r4", "cc_r8_r14_r4"}, 160b8021494Sopenharmony_ci {{le, r5, r14, r6}, false, al, "le r5 r14 r6", "le_r5_r14_r6"}, 161b8021494Sopenharmony_ci {{lt, r6, r1, r0}, false, al, "lt r6 r1 r0", "lt_r6_r1_r0"}, 162b8021494Sopenharmony_ci {{lt, r5, r0, r9}, false, al, "lt r5 r0 r9", "lt_r5_r0_r9"}, 163b8021494Sopenharmony_ci {{le, r8, r12, r7}, false, al, "le r8 r12 r7", "le_r8_r12_r7"}, 164b8021494Sopenharmony_ci {{eq, r7, r14, r6}, false, al, "eq r7 r14 r6", "eq_r7_r14_r6"}, 165b8021494Sopenharmony_ci {{cs, r7, r4, r6}, false, al, "cs r7 r4 r6", "cs_r7_r4_r6"}, 166b8021494Sopenharmony_ci {{gt, r9, r6, r9}, false, al, "gt r9 r6 r9", "gt_r9_r6_r9"}, 167b8021494Sopenharmony_ci {{ne, r13, r9, r1}, false, al, "ne r13 r9 r1", "ne_r13_r9_r1"}, 168b8021494Sopenharmony_ci {{ge, r13, r1, r13}, false, al, "ge r13 r1 r13", "ge_r13_r1_r13"}, 169b8021494Sopenharmony_ci {{ls, r8, r10, r2}, false, al, "ls r8 r10 r2", "ls_r8_r10_r2"}, 170b8021494Sopenharmony_ci {{hi, r0, r13, r5}, false, al, "hi r0 r13 r5", "hi_r0_r13_r5"}, 171b8021494Sopenharmony_ci {{pl, r13, r7, r8}, false, al, "pl r13 r7 r8", "pl_r13_r7_r8"}, 172b8021494Sopenharmony_ci {{ge, r4, r13, r11}, false, al, "ge r4 r13 r11", "ge_r4_r13_r11"}, 173b8021494Sopenharmony_ci {{cs, r5, r10, r5}, false, al, "cs r5 r10 r5", "cs_r5_r10_r5"}, 174b8021494Sopenharmony_ci {{cs, r5, r4, r3}, false, al, "cs r5 r4 r3", "cs_r5_r4_r3"}, 175b8021494Sopenharmony_ci {{ls, r6, r14, r8}, false, al, "ls r6 r14 r8", "ls_r6_r14_r8"}, 176b8021494Sopenharmony_ci {{vs, r3, r8, r6}, false, al, "vs r3 r8 r6", "vs_r3_r8_r6"}, 177b8021494Sopenharmony_ci {{vc, r7, r12, r3}, false, al, "vc r7 r12 r3", "vc_r7_r12_r3"}, 178b8021494Sopenharmony_ci {{ge, r1, r4, r1}, false, al, "ge r1 r4 r1", "ge_r1_r4_r1"}, 179b8021494Sopenharmony_ci {{cc, r4, r7, r10}, false, al, "cc r4 r7 r10", "cc_r4_r7_r10"}, 180b8021494Sopenharmony_ci {{cc, r2, r0, r13}, false, al, "cc r2 r0 r13", "cc_r2_r0_r13"}, 181b8021494Sopenharmony_ci {{vs, r9, r6, r8}, false, al, "vs r9 r6 r8", "vs_r9_r6_r8"}, 182b8021494Sopenharmony_ci {{cs, r14, r11, r13}, false, al, "cs r14 r11 r13", "cs_r14_r11_r13"}, 183b8021494Sopenharmony_ci {{pl, r5, r8, r4}, false, al, "pl r5 r8 r4", "pl_r5_r8_r4"}, 184b8021494Sopenharmony_ci {{pl, r2, r3, r7}, false, al, "pl r2 r3 r7", "pl_r2_r3_r7"}, 185b8021494Sopenharmony_ci {{cs, r7, r12, r14}, false, al, "cs r7 r12 r14", "cs_r7_r12_r14"}, 186b8021494Sopenharmony_ci {{hi, r6, r6, r1}, false, al, "hi r6 r6 r1", "hi_r6_r6_r1"}, 187b8021494Sopenharmony_ci {{cc, r6, r9, r6}, false, al, "cc r6 r9 r6", "cc_r6_r9_r6"}, 188b8021494Sopenharmony_ci {{ne, r12, r12, r0}, false, al, "ne r12 r12 r0", "ne_r12_r12_r0"}, 189b8021494Sopenharmony_ci {{cc, r9, r3, r8}, false, al, "cc r9 r3 r8", "cc_r9_r3_r8"}, 190b8021494Sopenharmony_ci {{mi, r13, r6, r1}, false, al, "mi r13 r6 r1", "mi_r13_r6_r1"}, 191b8021494Sopenharmony_ci {{lt, r4, r8, r6}, false, al, "lt r4 r8 r6", "lt_r4_r8_r6"}, 192b8021494Sopenharmony_ci {{hi, r11, r5, r9}, false, al, "hi r11 r5 r9", "hi_r11_r5_r9"}, 193b8021494Sopenharmony_ci {{cc, r6, r10, r6}, false, al, "cc r6 r10 r6", "cc_r6_r10_r6"}, 194b8021494Sopenharmony_ci {{eq, r10, r10, r5}, false, al, "eq r10 r10 r5", "eq_r10_r10_r5"}, 195b8021494Sopenharmony_ci {{al, r5, r4, r11}, false, al, "al r5 r4 r11", "al_r5_r4_r11"}, 196b8021494Sopenharmony_ci {{pl, r11, r11, r2}, false, al, "pl r11 r11 r2", "pl_r11_r11_r2"}, 197b8021494Sopenharmony_ci {{ls, r6, r14, r12}, false, al, "ls r6 r14 r12", "ls_r6_r14_r12"}, 198b8021494Sopenharmony_ci {{vc, r7, r7, r2}, false, al, "vc r7 r7 r2", "vc_r7_r7_r2"}, 199b8021494Sopenharmony_ci {{eq, r10, r8, r4}, false, al, "eq r10 r8 r4", "eq_r10_r8_r4"}, 200b8021494Sopenharmony_ci {{al, r14, r7, r2}, false, al, "al r14 r7 r2", "al_r14_r7_r2"}, 201b8021494Sopenharmony_ci {{cs, r3, r11, r10}, false, al, "cs r3 r11 r10", "cs_r3_r11_r10"}, 202b8021494Sopenharmony_ci {{ls, r11, r4, r0}, false, al, "ls r11 r4 r0", "ls_r11_r4_r0"}, 203b8021494Sopenharmony_ci {{hi, r11, r8, r9}, false, al, "hi r11 r8 r9", "hi_r11_r8_r9"}, 204b8021494Sopenharmony_ci {{vs, r2, r14, r13}, false, al, "vs r2 r14 r13", "vs_r2_r14_r13"}, 205b8021494Sopenharmony_ci {{al, r1, r13, r9}, false, al, "al r1 r13 r9", "al_r1_r13_r9"}, 206b8021494Sopenharmony_ci {{eq, r3, r9, r13}, false, al, "eq r3 r9 r13", "eq_r3_r9_r13"}, 207b8021494Sopenharmony_ci {{ge, r10, r3, r13}, false, al, "ge r10 r3 r13", "ge_r10_r3_r13"}, 208b8021494Sopenharmony_ci {{pl, r8, r5, r10}, false, al, "pl r8 r5 r10", "pl_r8_r5_r10"}, 209b8021494Sopenharmony_ci {{vc, r8, r11, r6}, false, al, "vc r8 r11 r6", "vc_r8_r11_r6"}, 210b8021494Sopenharmony_ci {{eq, r0, r0, r5}, false, al, "eq r0 r0 r5", "eq_r0_r0_r5"}, 211b8021494Sopenharmony_ci {{ne, r6, r5, r8}, false, al, "ne r6 r5 r8", "ne_r6_r5_r8"}, 212b8021494Sopenharmony_ci {{hi, r5, r13, r3}, false, al, "hi r5 r13 r3", "hi_r5_r13_r3"}, 213b8021494Sopenharmony_ci {{ne, r11, r14, r14}, false, al, "ne r11 r14 r14", "ne_r11_r14_r14"}, 214b8021494Sopenharmony_ci {{mi, r1, r0, r6}, false, al, "mi r1 r0 r6", "mi_r1_r0_r6"}, 215b8021494Sopenharmony_ci {{le, r14, r8, r2}, false, al, "le r14 r8 r2", "le_r14_r8_r2"}, 216b8021494Sopenharmony_ci {{eq, r9, r6, r5}, false, al, "eq r9 r6 r5", "eq_r9_r6_r5"}, 217b8021494Sopenharmony_ci {{eq, r11, r0, r13}, false, al, "eq r11 r0 r13", "eq_r11_r0_r13"}, 218b8021494Sopenharmony_ci {{pl, r4, r5, r14}, false, al, "pl r4 r5 r14", "pl_r4_r5_r14"}, 219b8021494Sopenharmony_ci {{cs, r13, r5, r13}, false, al, "cs r13 r5 r13", "cs_r13_r5_r13"}, 220b8021494Sopenharmony_ci {{mi, r0, r13, r8}, false, al, "mi r0 r13 r8", "mi_r0_r13_r8"}, 221b8021494Sopenharmony_ci {{lt, r2, r13, r3}, false, al, "lt r2 r13 r3", "lt_r2_r13_r3"}, 222b8021494Sopenharmony_ci {{ls, r8, r1, r11}, false, al, "ls r8 r1 r11", "ls_r8_r1_r11"}, 223b8021494Sopenharmony_ci {{vc, r14, r11, r8}, false, al, "vc r14 r11 r8", "vc_r14_r11_r8"}, 224b8021494Sopenharmony_ci {{lt, r4, r13, r12}, false, al, "lt r4 r13 r12", "lt_r4_r13_r12"}, 225b8021494Sopenharmony_ci {{eq, r2, r1, r14}, false, al, "eq r2 r1 r14", "eq_r2_r1_r14"}, 226b8021494Sopenharmony_ci {{eq, r9, r4, r14}, false, al, "eq r9 r4 r14", "eq_r9_r4_r14"}, 227b8021494Sopenharmony_ci {{hi, r10, r6, r13}, false, al, "hi r10 r6 r13", "hi_r10_r6_r13"}, 228b8021494Sopenharmony_ci {{ge, r12, r9, r4}, false, al, "ge r12 r9 r4", "ge_r12_r9_r4"}, 229b8021494Sopenharmony_ci {{le, r9, r11, r14}, false, al, "le r9 r11 r14", "le_r9_r11_r14"}, 230b8021494Sopenharmony_ci {{ls, r0, r9, r5}, false, al, "ls r0 r9 r5", "ls_r0_r9_r5"}, 231b8021494Sopenharmony_ci {{mi, r2, r3, r8}, false, al, "mi r2 r3 r8", "mi_r2_r3_r8"}, 232b8021494Sopenharmony_ci {{ne, r14, r10, r14}, false, al, "ne r14 r10 r14", "ne_r14_r10_r14"}, 233b8021494Sopenharmony_ci {{eq, r6, r2, r10}, false, al, "eq r6 r2 r10", "eq_r6_r2_r10"}, 234b8021494Sopenharmony_ci {{lt, r11, r0, r12}, false, al, "lt r11 r0 r12", "lt_r11_r0_r12"}, 235b8021494Sopenharmony_ci {{ne, r1, r12, r10}, false, al, "ne r1 r12 r10", "ne_r1_r12_r10"}, 236b8021494Sopenharmony_ci {{cc, r1, r0, r2}, false, al, "cc r1 r0 r2", "cc_r1_r0_r2"}, 237b8021494Sopenharmony_ci {{al, r5, r5, r7}, false, al, "al r5 r5 r7", "al_r5_r5_r7"}, 238b8021494Sopenharmony_ci {{hi, r7, r13, r1}, false, al, "hi r7 r13 r1", "hi_r7_r13_r1"}, 239b8021494Sopenharmony_ci {{cs, r4, r4, r9}, false, al, "cs r4 r4 r9", "cs_r4_r4_r9"}, 240b8021494Sopenharmony_ci {{eq, r14, r4, r14}, false, al, "eq r14 r4 r14", "eq_r14_r4_r14"}, 241b8021494Sopenharmony_ci {{vs, r10, r5, r14}, false, al, "vs r10 r5 r14", "vs_r10_r5_r14"}, 242b8021494Sopenharmony_ci {{gt, r4, r3, r11}, false, al, "gt r4 r3 r11", "gt_r4_r3_r11"}, 243b8021494Sopenharmony_ci {{ne, r14, r10, r12}, false, al, "ne r14 r10 r12", "ne_r14_r10_r12"}, 244b8021494Sopenharmony_ci {{vs, r2, r11, r0}, false, al, "vs r2 r11 r0", "vs_r2_r11_r0"}, 245b8021494Sopenharmony_ci {{ge, r5, r12, r7}, false, al, "ge r5 r12 r7", "ge_r5_r12_r7"}, 246b8021494Sopenharmony_ci {{mi, r7, r14, r6}, false, al, "mi r7 r14 r6", "mi_r7_r14_r6"}, 247b8021494Sopenharmony_ci {{gt, r8, r3, r8}, false, al, "gt r8 r3 r8", "gt_r8_r3_r8"}, 248b8021494Sopenharmony_ci {{hi, r9, r14, r3}, false, al, "hi r9 r14 r3", "hi_r9_r14_r3"}, 249b8021494Sopenharmony_ci {{vc, r2, r11, r2}, false, al, "vc r2 r11 r2", "vc_r2_r11_r2"}, 250b8021494Sopenharmony_ci {{hi, r11, r7, r12}, false, al, "hi r11 r7 r12", "hi_r11_r7_r12"}, 251b8021494Sopenharmony_ci {{cs, r6, r4, r11}, false, al, "cs r6 r4 r11", "cs_r6_r4_r11"}, 252b8021494Sopenharmony_ci {{cs, r12, r5, r9}, false, al, "cs r12 r5 r9", "cs_r12_r5_r9"}, 253b8021494Sopenharmony_ci {{ls, r5, r10, r5}, false, al, "ls r5 r10 r5", "ls_r5_r10_r5"}, 254b8021494Sopenharmony_ci {{ls, r0, r9, r13}, false, al, "ls r0 r9 r13", "ls_r0_r9_r13"}, 255b8021494Sopenharmony_ci {{lt, r3, r3, r5}, false, al, "lt r3 r3 r5", "lt_r3_r3_r5"}, 256b8021494Sopenharmony_ci {{mi, r0, r12, r8}, false, al, "mi r0 r12 r8", "mi_r0_r12_r8"}, 257b8021494Sopenharmony_ci {{pl, r3, r12, r12}, false, al, "pl r3 r12 r12", "pl_r3_r12_r12"}, 258b8021494Sopenharmony_ci {{eq, r8, r12, r5}, false, al, "eq r8 r12 r5", "eq_r8_r12_r5"}, 259b8021494Sopenharmony_ci {{cc, r7, r8, r1}, false, al, "cc r7 r8 r1", "cc_r7_r8_r1"}, 260b8021494Sopenharmony_ci {{hi, r2, r13, r10}, false, al, "hi r2 r13 r10", "hi_r2_r13_r10"}, 261b8021494Sopenharmony_ci {{al, r7, r10, r10}, false, al, "al r7 r10 r10", "al_r7_r10_r10"}, 262b8021494Sopenharmony_ci {{vc, r1, r12, r2}, false, al, "vc r1 r12 r2", "vc_r1_r12_r2"}, 263b8021494Sopenharmony_ci {{cc, r8, r5, r8}, false, al, "cc r8 r5 r8", "cc_r8_r5_r8"}, 264b8021494Sopenharmony_ci {{ls, r3, r7, r9}, false, al, "ls r3 r7 r9", "ls_r3_r7_r9"}, 265b8021494Sopenharmony_ci {{al, r8, r10, r8}, false, al, "al r8 r10 r8", "al_r8_r10_r8"}, 266b8021494Sopenharmony_ci {{lt, r4, r12, r10}, false, al, "lt r4 r12 r10", "lt_r4_r12_r10"}, 267b8021494Sopenharmony_ci {{ge, r10, r5, r11}, false, al, "ge r10 r5 r11", "ge_r10_r5_r11"}, 268b8021494Sopenharmony_ci {{ls, r3, r14, r4}, false, al, "ls r3 r14 r4", "ls_r3_r14_r4"}, 269b8021494Sopenharmony_ci {{hi, r3, r6, r12}, false, al, "hi r3 r6 r12", "hi_r3_r6_r12"}, 270b8021494Sopenharmony_ci {{hi, r6, r0, r4}, false, al, "hi r6 r0 r4", "hi_r6_r0_r4"}, 271b8021494Sopenharmony_ci {{al, r11, r6, r0}, false, al, "al r11 r6 r0", "al_r11_r6_r0"}, 272b8021494Sopenharmony_ci {{mi, r3, r1, r9}, false, al, "mi r3 r1 r9", "mi_r3_r1_r9"}, 273b8021494Sopenharmony_ci {{mi, r12, r13, r0}, false, al, "mi r12 r13 r0", "mi_r12_r13_r0"}, 274b8021494Sopenharmony_ci {{le, r1, r2, r5}, false, al, "le r1 r2 r5", "le_r1_r2_r5"}, 275b8021494Sopenharmony_ci {{hi, r4, r3, r14}, false, al, "hi r4 r3 r14", "hi_r4_r3_r14"}, 276b8021494Sopenharmony_ci {{eq, r6, r11, r11}, false, al, "eq r6 r11 r11", "eq_r6_r11_r11"}, 277b8021494Sopenharmony_ci {{cc, r14, r11, r14}, false, al, "cc r14 r11 r14", "cc_r14_r11_r14"}, 278b8021494Sopenharmony_ci {{hi, r4, r10, r0}, false, al, "hi r4 r10 r0", "hi_r4_r10_r0"}, 279b8021494Sopenharmony_ci {{cc, r7, r11, r1}, false, al, "cc r7 r11 r1", "cc_r7_r11_r1"}, 280b8021494Sopenharmony_ci {{mi, r14, r6, r10}, false, al, "mi r14 r6 r10", "mi_r14_r6_r10"}, 281b8021494Sopenharmony_ci {{eq, r2, r0, r11}, false, al, "eq r2 r0 r11", "eq_r2_r0_r11"}, 282b8021494Sopenharmony_ci {{mi, r13, r5, r12}, false, al, "mi r13 r5 r12", "mi_r13_r5_r12"}, 283b8021494Sopenharmony_ci {{eq, r2, r12, r5}, false, al, "eq r2 r12 r5", "eq_r2_r12_r5"}, 284b8021494Sopenharmony_ci {{le, r12, r0, r2}, false, al, "le r12 r0 r2", "le_r12_r0_r2"}, 285b8021494Sopenharmony_ci {{vc, r10, r10, r9}, false, al, "vc r10 r10 r9", "vc_r10_r10_r9"}, 286b8021494Sopenharmony_ci {{ls, r11, r11, r8}, false, al, "ls r11 r11 r8", "ls_r11_r11_r8"}, 287b8021494Sopenharmony_ci {{hi, r10, r11, r9}, false, al, "hi r10 r11 r9", "hi_r10_r11_r9"}, 288b8021494Sopenharmony_ci {{vs, r7, r12, r14}, false, al, "vs r7 r12 r14", "vs_r7_r12_r14"}, 289b8021494Sopenharmony_ci {{gt, r11, r14, r12}, false, al, "gt r11 r14 r12", "gt_r11_r14_r12"}, 290b8021494Sopenharmony_ci {{vs, r0, r12, r8}, false, al, "vs r0 r12 r8", "vs_r0_r12_r8"}, 291b8021494Sopenharmony_ci {{al, r0, r5, r7}, false, al, "al r0 r5 r7", "al_r0_r5_r7"}, 292b8021494Sopenharmony_ci {{hi, r5, r13, r8}, false, al, "hi r5 r13 r8", "hi_r5_r13_r8"}, 293b8021494Sopenharmony_ci {{le, r9, r9, r7}, false, al, "le r9 r9 r7", "le_r9_r9_r7"}, 294b8021494Sopenharmony_ci {{cc, r4, r9, r5}, false, al, "cc r4 r9 r5", "cc_r4_r9_r5"}, 295b8021494Sopenharmony_ci {{vs, r8, r1, r3}, false, al, "vs r8 r1 r3", "vs_r8_r1_r3"}, 296b8021494Sopenharmony_ci {{cc, r0, r10, r12}, false, al, "cc r0 r10 r12", "cc_r0_r10_r12"}, 297b8021494Sopenharmony_ci {{eq, r7, r14, r0}, false, al, "eq r7 r14 r0", "eq_r7_r14_r0"}, 298b8021494Sopenharmony_ci {{vs, r12, r9, r11}, false, al, "vs r12 r9 r11", "vs_r12_r9_r11"}, 299b8021494Sopenharmony_ci {{gt, r5, r9, r11}, false, al, "gt r5 r9 r11", "gt_r5_r9_r11"}, 300b8021494Sopenharmony_ci {{cs, r14, r13, r7}, false, al, "cs r14 r13 r7", "cs_r14_r13_r7"}, 301b8021494Sopenharmony_ci {{mi, r11, r3, r10}, false, al, "mi r11 r3 r10", "mi_r11_r3_r10"}, 302b8021494Sopenharmony_ci {{hi, r11, r8, r12}, false, al, "hi r11 r8 r12", "hi_r11_r8_r12"}, 303b8021494Sopenharmony_ci {{cs, r3, r8, r13}, false, al, "cs r3 r8 r13", "cs_r3_r8_r13"}, 304b8021494Sopenharmony_ci {{pl, r10, r12, r6}, false, al, "pl r10 r12 r6", "pl_r10_r12_r6"}, 305b8021494Sopenharmony_ci {{vc, r7, r3, r2}, false, al, "vc r7 r3 r2", "vc_r7_r3_r2"}, 306b8021494Sopenharmony_ci {{mi, r9, r0, r8}, false, al, "mi r9 r0 r8", "mi_r9_r0_r8"}, 307b8021494Sopenharmony_ci {{eq, r2, r13, r7}, false, al, "eq r2 r13 r7", "eq_r2_r13_r7"}, 308b8021494Sopenharmony_ci {{ne, r2, r14, r0}, false, al, "ne r2 r14 r0", "ne_r2_r14_r0"}, 309b8021494Sopenharmony_ci {{vs, r4, r10, r0}, false, al, "vs r4 r10 r0", "vs_r4_r10_r0"}, 310b8021494Sopenharmony_ci {{ls, r0, r2, r2}, false, al, "ls r0 r2 r2", "ls_r0_r2_r2"}, 311b8021494Sopenharmony_ci {{cc, r1, r6, r0}, false, al, "cc r1 r6 r0", "cc_r1_r6_r0"}, 312b8021494Sopenharmony_ci {{lt, r12, r0, r8}, false, al, "lt r12 r0 r8", "lt_r12_r0_r8"}, 313b8021494Sopenharmony_ci {{cc, r9, r3, r14}, false, al, "cc r9 r3 r14", "cc_r9_r3_r14"}, 314b8021494Sopenharmony_ci {{vs, r7, r9, r1}, false, al, "vs r7 r9 r1", "vs_r7_r9_r1"}, 315b8021494Sopenharmony_ci {{eq, r11, r9, r14}, false, al, "eq r11 r9 r14", "eq_r11_r9_r14"}, 316b8021494Sopenharmony_ci {{pl, r6, r10, r4}, false, al, "pl r6 r10 r4", "pl_r6_r10_r4"}, 317b8021494Sopenharmony_ci {{ne, r8, r5, r6}, false, al, "ne r8 r5 r6", "ne_r8_r5_r6"}, 318b8021494Sopenharmony_ci {{cs, r0, r6, r2}, false, al, "cs r0 r6 r2", "cs_r0_r6_r2"}, 319b8021494Sopenharmony_ci {{eq, r11, r12, r4}, false, al, "eq r11 r12 r4", "eq_r11_r12_r4"}, 320b8021494Sopenharmony_ci {{lt, r14, r3, r14}, false, al, "lt r14 r3 r14", "lt_r14_r3_r14"}, 321b8021494Sopenharmony_ci {{le, r7, r12, r14}, false, al, "le r7 r12 r14", "le_r7_r12_r14"}, 322b8021494Sopenharmony_ci {{hi, r2, r9, r9}, false, al, "hi r2 r9 r9", "hi_r2_r9_r9"}, 323b8021494Sopenharmony_ci {{ne, r8, r1, r0}, false, al, "ne r8 r1 r0", "ne_r8_r1_r0"}, 324b8021494Sopenharmony_ci {{cc, r5, r11, r2}, false, al, "cc r5 r11 r2", "cc_r5_r11_r2"}, 325b8021494Sopenharmony_ci {{hi, r0, r1, r2}, false, al, "hi r0 r1 r2", "hi_r0_r1_r2"}, 326b8021494Sopenharmony_ci {{al, r4, r9, r4}, false, al, "al r4 r9 r4", "al_r4_r9_r4"}, 327b8021494Sopenharmony_ci {{cs, r12, r7, r14}, false, al, "cs r12 r7 r14", "cs_r12_r7_r14"}, 328b8021494Sopenharmony_ci {{cc, r4, r12, r10}, false, al, "cc r4 r12 r10", "cc_r4_r12_r10"}, 329b8021494Sopenharmony_ci {{al, r3, r5, r10}, false, al, "al r3 r5 r10", "al_r3_r5_r10"}, 330b8021494Sopenharmony_ci {{mi, r5, r3, r7}, false, al, "mi r5 r3 r7", "mi_r5_r3_r7"}, 331b8021494Sopenharmony_ci {{ls, r10, r6, r2}, false, al, "ls r10 r6 r2", "ls_r10_r6_r2"}, 332b8021494Sopenharmony_ci {{mi, r0, r12, r11}, false, al, "mi r0 r12 r11", "mi_r0_r12_r11"}, 333b8021494Sopenharmony_ci {{vc, r12, r5, r6}, false, al, "vc r12 r5 r6", "vc_r12_r5_r6"}, 334b8021494Sopenharmony_ci {{cs, r3, r9, r4}, false, al, "cs r3 r9 r4", "cs_r3_r9_r4"}, 335b8021494Sopenharmony_ci {{ls, r4, r9, r11}, false, al, "ls r4 r9 r11", "ls_r4_r9_r11"}, 336b8021494Sopenharmony_ci {{le, r14, r8, r13}, false, al, "le r14 r8 r13", "le_r14_r8_r13"}, 337b8021494Sopenharmony_ci {{gt, r4, r10, r8}, false, al, "gt r4 r10 r8", "gt_r4_r10_r8"}, 338b8021494Sopenharmony_ci {{al, r6, r9, r9}, false, al, "al r6 r9 r9", "al_r6_r9_r9"}, 339b8021494Sopenharmony_ci {{ne, r8, r5, r12}, false, al, "ne r8 r5 r12", "ne_r8_r5_r12"}, 340b8021494Sopenharmony_ci {{ne, r0, r4, r8}, false, al, "ne r0 r4 r8", "ne_r0_r4_r8"}, 341b8021494Sopenharmony_ci {{mi, r7, r13, r3}, false, al, "mi r7 r13 r3", "mi_r7_r13_r3"}, 342b8021494Sopenharmony_ci {{cc, r11, r7, r0}, false, al, "cc r11 r7 r0", "cc_r11_r7_r0"}, 343b8021494Sopenharmony_ci {{hi, r1, r0, r12}, false, al, "hi r1 r0 r12", "hi_r1_r0_r12"}, 344b8021494Sopenharmony_ci {{lt, r8, r9, r3}, false, al, "lt r8 r9 r3", "lt_r8_r9_r3"}, 345b8021494Sopenharmony_ci {{al, r0, r2, r1}, false, al, "al r0 r2 r1", "al_r0_r2_r1"}, 346b8021494Sopenharmony_ci {{vs, r4, r3, r14}, false, al, "vs r4 r3 r14", "vs_r4_r3_r14"}, 347b8021494Sopenharmony_ci {{ge, r2, r11, r1}, false, al, "ge r2 r11 r1", "ge_r2_r11_r1"}, 348b8021494Sopenharmony_ci {{lt, r12, r9, r6}, false, al, "lt r12 r9 r6", "lt_r12_r9_r6"}, 349b8021494Sopenharmony_ci {{ls, r8, r2, r7}, false, al, "ls r8 r2 r7", "ls_r8_r2_r7"}, 350b8021494Sopenharmony_ci {{le, r8, r13, r3}, false, al, "le r8 r13 r3", "le_r8_r13_r3"}, 351b8021494Sopenharmony_ci {{eq, r11, r13, r14}, false, al, "eq r11 r13 r14", "eq_r11_r13_r14"}, 352b8021494Sopenharmony_ci {{lt, r1, r6, r13}, false, al, "lt r1 r6 r13", "lt_r1_r6_r13"}, 353b8021494Sopenharmony_ci {{cs, r3, r8, r11}, false, al, "cs r3 r8 r11", "cs_r3_r8_r11"}, 354b8021494Sopenharmony_ci {{pl, r12, r5, r4}, false, al, "pl r12 r5 r4", "pl_r12_r5_r4"}, 355b8021494Sopenharmony_ci {{eq, r8, r7, r2}, false, al, "eq r8 r7 r2", "eq_r8_r7_r2"}, 356b8021494Sopenharmony_ci {{ls, r2, r12, r2}, false, al, "ls r2 r12 r2", "ls_r2_r12_r2"}, 357b8021494Sopenharmony_ci {{le, r14, r2, r3}, false, al, "le r14 r2 r3", "le_r14_r2_r3"}, 358b8021494Sopenharmony_ci {{ge, r10, r11, r6}, false, al, "ge r10 r11 r6", "ge_r10_r11_r6"}, 359b8021494Sopenharmony_ci {{hi, r0, r2, r2}, false, al, "hi r0 r2 r2", "hi_r0_r2_r2"}, 360b8021494Sopenharmony_ci {{ge, r2, r0, r2}, false, al, "ge r2 r0 r2", "ge_r2_r0_r2"}, 361b8021494Sopenharmony_ci {{vs, r11, r14, r0}, false, al, "vs r11 r14 r0", "vs_r11_r14_r0"}, 362b8021494Sopenharmony_ci {{lt, r2, r0, r1}, false, al, "lt r2 r0 r1", "lt_r2_r0_r1"}, 363b8021494Sopenharmony_ci {{cs, r2, r5, r11}, false, al, "cs r2 r5 r11", "cs_r2_r5_r11"}, 364b8021494Sopenharmony_ci {{ls, r7, r14, r5}, false, al, "ls r7 r14 r5", "ls_r7_r14_r5"}, 365b8021494Sopenharmony_ci {{pl, r0, r0, r3}, false, al, "pl r0 r0 r3", "pl_r0_r0_r3"}, 366b8021494Sopenharmony_ci {{ge, r6, r8, r8}, false, al, "ge r6 r8 r8", "ge_r6_r8_r8"}, 367b8021494Sopenharmony_ci {{le, r11, r1, r10}, false, al, "le r11 r1 r10", "le_r11_r1_r10"}, 368b8021494Sopenharmony_ci {{vs, r5, r2, r7}, false, al, "vs r5 r2 r7", "vs_r5_r2_r7"}, 369b8021494Sopenharmony_ci {{ne, r4, r4, r8}, false, al, "ne r4 r4 r8", "ne_r4_r4_r8"}, 370b8021494Sopenharmony_ci {{cc, r9, r14, r13}, false, al, "cc r9 r14 r13", "cc_r9_r14_r13"}, 371b8021494Sopenharmony_ci {{hi, r14, r6, r3}, false, al, "hi r14 r6 r3", "hi_r14_r6_r3"}, 372b8021494Sopenharmony_ci {{al, r0, r8, r0}, false, al, "al r0 r8 r0", "al_r0_r8_r0"}, 373b8021494Sopenharmony_ci {{lt, r6, r11, r1}, false, al, "lt r6 r11 r1", "lt_r6_r11_r1"}, 374b8021494Sopenharmony_ci {{ge, r7, r6, r12}, false, al, "ge r7 r6 r12", "ge_r7_r6_r12"}, 375b8021494Sopenharmony_ci {{cs, r4, r6, r14}, false, al, "cs r4 r6 r14", "cs_r4_r6_r14"}, 376b8021494Sopenharmony_ci {{cs, r7, r6, r7}, false, al, "cs r7 r6 r7", "cs_r7_r6_r7"}, 377b8021494Sopenharmony_ci {{cs, r3, r7, r10}, false, al, "cs r3 r7 r10", "cs_r3_r7_r10"}, 378b8021494Sopenharmony_ci {{ne, r0, r2, r1}, false, al, "ne r0 r2 r1", "ne_r0_r2_r1"}, 379b8021494Sopenharmony_ci {{vs, r9, r10, r13}, false, al, "vs r9 r10 r13", "vs_r9_r10_r13"}, 380b8021494Sopenharmony_ci {{vc, r11, r14, r12}, false, al, "vc r11 r14 r12", "vc_r11_r14_r12"}, 381b8021494Sopenharmony_ci {{ge, r14, r8, r7}, false, al, "ge r14 r8 r7", "ge_r14_r8_r7"}, 382b8021494Sopenharmony_ci {{lt, r13, r0, r11}, false, al, "lt r13 r0 r11", "lt_r13_r0_r11"}, 383b8021494Sopenharmony_ci {{lt, r14, r13, r4}, false, al, "lt r14 r13 r4", "lt_r14_r13_r4"}, 384b8021494Sopenharmony_ci {{al, r1, r10, r9}, false, al, "al r1 r10 r9", "al_r1_r10_r9"}, 385b8021494Sopenharmony_ci {{ge, r11, r14, r11}, false, al, "ge r11 r14 r11", "ge_r11_r14_r11"}, 386b8021494Sopenharmony_ci {{cs, r11, r4, r11}, false, al, "cs r11 r4 r11", "cs_r11_r4_r11"}, 387b8021494Sopenharmony_ci {{ge, r0, r14, r7}, false, al, "ge r0 r14 r7", "ge_r0_r14_r7"}, 388b8021494Sopenharmony_ci {{mi, r1, r2, r9}, false, al, "mi r1 r2 r9", "mi_r1_r2_r9"}, 389b8021494Sopenharmony_ci {{eq, r5, r12, r3}, false, al, "eq r5 r12 r3", "eq_r5_r12_r3"}, 390b8021494Sopenharmony_ci {{ge, r1, r5, r12}, false, al, "ge r1 r5 r12", "ge_r1_r5_r12"}, 391b8021494Sopenharmony_ci {{lt, r10, r11, r4}, false, al, "lt r10 r11 r4", "lt_r10_r11_r4"}, 392b8021494Sopenharmony_ci {{le, r1, r1, r5}, false, al, "le r1 r1 r5", "le_r1_r1_r5"}, 393b8021494Sopenharmony_ci {{al, r9, r1, r8}, false, al, "al r9 r1 r8", "al_r9_r1_r8"}, 394b8021494Sopenharmony_ci {{ne, r6, r8, r4}, false, al, "ne r6 r8 r4", "ne_r6_r8_r4"}, 395b8021494Sopenharmony_ci {{ge, r12, r2, r9}, false, al, "ge r12 r2 r9", "ge_r12_r2_r9"}, 396b8021494Sopenharmony_ci {{pl, r4, r3, r10}, false, al, "pl r4 r3 r10", "pl_r4_r3_r10"}, 397b8021494Sopenharmony_ci {{eq, r14, r4, r11}, false, al, "eq r14 r4 r11", "eq_r14_r4_r11"}, 398b8021494Sopenharmony_ci {{cc, r9, r7, r6}, false, al, "cc r9 r7 r6", "cc_r9_r7_r6"}, 399b8021494Sopenharmony_ci {{ge, r12, r4, r5}, false, al, "ge r12 r4 r5", "ge_r12_r4_r5"}, 400b8021494Sopenharmony_ci {{hi, r2, r3, r4}, false, al, "hi r2 r3 r4", "hi_r2_r3_r4"}, 401b8021494Sopenharmony_ci {{cs, r0, r3, r1}, false, al, "cs r0 r3 r1", "cs_r0_r3_r1"}, 402b8021494Sopenharmony_ci {{hi, r6, r2, r8}, false, al, "hi r6 r2 r8", "hi_r6_r2_r8"}, 403b8021494Sopenharmony_ci {{cc, r3, r14, r13}, false, al, "cc r3 r14 r13", "cc_r3_r14_r13"}, 404b8021494Sopenharmony_ci {{gt, r11, r4, r7}, false, al, "gt r11 r4 r7", "gt_r11_r4_r7"}, 405b8021494Sopenharmony_ci {{hi, r5, r0, r12}, false, al, "hi r5 r0 r12", "hi_r5_r0_r12"}, 406b8021494Sopenharmony_ci {{gt, r0, r14, r14}, false, al, "gt r0 r14 r14", "gt_r0_r14_r14"}, 407b8021494Sopenharmony_ci {{hi, r9, r0, r10}, false, al, "hi r9 r0 r10", "hi_r9_r0_r10"}, 408b8021494Sopenharmony_ci {{vc, r7, r11, r8}, false, al, "vc r7 r11 r8", "vc_r7_r11_r8"}, 409b8021494Sopenharmony_ci {{pl, r11, r9, r6}, false, al, "pl r11 r9 r6", "pl_r11_r9_r6"}, 410b8021494Sopenharmony_ci {{al, r3, r3, r7}, false, al, "al r3 r3 r7", "al_r3_r3_r7"}, 411b8021494Sopenharmony_ci {{mi, r5, r7, r9}, false, al, "mi r5 r7 r9", "mi_r5_r7_r9"}, 412b8021494Sopenharmony_ci {{cc, r11, r2, r4}, false, al, "cc r11 r2 r4", "cc_r11_r2_r4"}, 413b8021494Sopenharmony_ci {{cc, r9, r13, r10}, false, al, "cc r9 r13 r10", "cc_r9_r13_r10"}, 414b8021494Sopenharmony_ci {{al, r5, r2, r6}, false, al, "al r5 r2 r6", "al_r5_r2_r6"}, 415b8021494Sopenharmony_ci {{ge, r9, r4, r6}, false, al, "ge r9 r4 r6", "ge_r9_r4_r6"}, 416b8021494Sopenharmony_ci {{ls, r3, r3, r4}, false, al, "ls r3 r3 r4", "ls_r3_r3_r4"}, 417b8021494Sopenharmony_ci {{ge, r14, r1, r8}, false, al, "ge r14 r1 r8", "ge_r14_r1_r8"}, 418b8021494Sopenharmony_ci {{ls, r7, r12, r7}, false, al, "ls r7 r12 r7", "ls_r7_r12_r7"}, 419b8021494Sopenharmony_ci {{al, r11, r10, r5}, false, al, "al r11 r10 r5", "al_r11_r10_r5"}, 420b8021494Sopenharmony_ci {{al, r7, r4, r6}, false, al, "al r7 r4 r6", "al_r7_r4_r6"}, 421b8021494Sopenharmony_ci {{vs, r12, r4, r10}, false, al, "vs r12 r4 r10", "vs_r12_r4_r10"}, 422b8021494Sopenharmony_ci {{eq, r4, r4, r4}, false, al, "eq r4 r4 r4", "eq_r4_r4_r4"}, 423b8021494Sopenharmony_ci {{vs, r6, r6, r12}, false, al, "vs r6 r6 r12", "vs_r6_r6_r12"}, 424b8021494Sopenharmony_ci {{pl, r9, r3, r5}, false, al, "pl r9 r3 r5", "pl_r9_r3_r5"}, 425b8021494Sopenharmony_ci {{eq, r6, r5, r13}, false, al, "eq r6 r5 r13", "eq_r6_r5_r13"}, 426b8021494Sopenharmony_ci {{cc, r8, r2, r12}, false, al, "cc r8 r2 r12", "cc_r8_r2_r12"}, 427b8021494Sopenharmony_ci {{le, r4, r2, r0}, false, al, "le r4 r2 r0", "le_r4_r2_r0"}, 428b8021494Sopenharmony_ci {{lt, r7, r9, r8}, false, al, "lt r7 r9 r8", "lt_r7_r9_r8"}, 429b8021494Sopenharmony_ci {{le, r4, r7, r11}, false, al, "le r4 r7 r11", "le_r4_r7_r11"}, 430b8021494Sopenharmony_ci {{eq, r5, r7, r5}, false, al, "eq r5 r7 r5", "eq_r5_r7_r5"}, 431b8021494Sopenharmony_ci {{vc, r10, r7, r12}, false, al, "vc r10 r7 r12", "vc_r10_r7_r12"}, 432b8021494Sopenharmony_ci {{eq, r7, r10, r6}, false, al, "eq r7 r10 r6", "eq_r7_r10_r6"}, 433b8021494Sopenharmony_ci {{pl, r1, r12, r2}, false, al, "pl r1 r12 r2", "pl_r1_r12_r2"}, 434b8021494Sopenharmony_ci {{le, r14, r6, r6}, false, al, "le r14 r6 r6", "le_r14_r6_r6"}, 435b8021494Sopenharmony_ci {{ne, r3, r8, r8}, false, al, "ne r3 r8 r8", "ne_r3_r8_r8"}, 436b8021494Sopenharmony_ci {{eq, r4, r12, r8}, false, al, "eq r4 r12 r8", "eq_r4_r12_r8"}, 437b8021494Sopenharmony_ci {{ge, r11, r2, r3}, false, al, "ge r11 r2 r3", "ge_r11_r2_r3"}, 438b8021494Sopenharmony_ci {{hi, r12, r6, r11}, false, al, "hi r12 r6 r11", "hi_r12_r6_r11"}, 439b8021494Sopenharmony_ci {{cs, r4, r5, r10}, false, al, "cs r4 r5 r10", "cs_r4_r5_r10"}, 440b8021494Sopenharmony_ci {{ge, r10, r2, r10}, false, al, "ge r10 r2 r10", "ge_r10_r2_r10"}, 441b8021494Sopenharmony_ci {{ge, r5, r14, r6}, false, al, "ge r5 r14 r6", "ge_r5_r14_r6"}, 442b8021494Sopenharmony_ci {{gt, r13, r7, r5}, false, al, "gt r13 r7 r5", "gt_r13_r7_r5"}, 443b8021494Sopenharmony_ci {{ge, r13, r4, r12}, false, al, "ge r13 r4 r12", "ge_r13_r4_r12"}, 444b8021494Sopenharmony_ci {{lt, r8, r10, r14}, false, al, "lt r8 r10 r14", "lt_r8_r10_r14"}, 445b8021494Sopenharmony_ci {{le, r4, r3, r13}, false, al, "le r4 r3 r13", "le_r4_r3_r13"}, 446b8021494Sopenharmony_ci {{pl, r0, r9, r0}, false, al, "pl r0 r9 r0", "pl_r0_r9_r0"}, 447b8021494Sopenharmony_ci {{eq, r2, r3, r1}, false, al, "eq r2 r3 r1", "eq_r2_r3_r1"}, 448b8021494Sopenharmony_ci {{vc, r0, r0, r3}, false, al, "vc r0 r0 r3", "vc_r0_r0_r3"}, 449b8021494Sopenharmony_ci {{mi, r10, r8, r11}, false, al, "mi r10 r8 r11", "mi_r10_r8_r11"}, 450b8021494Sopenharmony_ci {{mi, r5, r14, r14}, false, al, "mi r5 r14 r14", "mi_r5_r14_r14"}, 451b8021494Sopenharmony_ci {{gt, r5, r11, r2}, false, al, "gt r5 r11 r2", "gt_r5_r11_r2"}, 452b8021494Sopenharmony_ci {{al, r4, r7, r11}, false, al, "al r4 r7 r11", "al_r4_r7_r11"}}; 453b8021494Sopenharmony_ci 454b8021494Sopenharmony_ci// These headers each contain an array of `TestResult` with the reference output 455b8021494Sopenharmony_ci// values. The reference arrays are names `kReference{mnemonic}`. 456b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-mul-a32.h" 457b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-muls-a32.h" 458b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-qadd-a32.h" 459b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-qadd16-a32.h" 460b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-qadd8-a32.h" 461b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-qasx-a32.h" 462b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-qdadd-a32.h" 463b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-qdsub-a32.h" 464b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-qsax-a32.h" 465b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-qsub-a32.h" 466b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-qsub16-a32.h" 467b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-qsub8-a32.h" 468b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-sadd16-a32.h" 469b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-sadd8-a32.h" 470b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-sasx-a32.h" 471b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-sdiv-a32.h" 472b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-sel-a32.h" 473b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-shadd16-a32.h" 474b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-shadd8-a32.h" 475b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-shasx-a32.h" 476b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-shsax-a32.h" 477b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-shsub16-a32.h" 478b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-shsub8-a32.h" 479b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smmul-a32.h" 480b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smmulr-a32.h" 481b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smuad-a32.h" 482b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smuadx-a32.h" 483b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smulbb-a32.h" 484b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smulbt-a32.h" 485b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smultb-a32.h" 486b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smultt-a32.h" 487b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smulwb-a32.h" 488b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smulwt-a32.h" 489b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smusd-a32.h" 490b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-smusdx-a32.h" 491b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-ssax-a32.h" 492b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-ssub16-a32.h" 493b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-ssub8-a32.h" 494b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uadd16-a32.h" 495b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uadd8-a32.h" 496b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uasx-a32.h" 497b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-udiv-a32.h" 498b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uhadd16-a32.h" 499b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uhadd8-a32.h" 500b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uhasx-a32.h" 501b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uhsax-a32.h" 502b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uhsub16-a32.h" 503b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uhsub8-a32.h" 504b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uqadd16-a32.h" 505b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uqadd8-a32.h" 506b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uqasx-a32.h" 507b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uqsax-a32.h" 508b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uqsub16-a32.h" 509b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-uqsub8-a32.h" 510b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-usad8-a32.h" 511b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-usax-a32.h" 512b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-usub16-a32.h" 513b8021494Sopenharmony_ci#include "aarch32/traces/assembler-cond-rd-rn-rm-usub8-a32.h" 514b8021494Sopenharmony_ci 515b8021494Sopenharmony_ci 516b8021494Sopenharmony_ci// The maximum number of errors to report in detail for each test. 517b8021494Sopenharmony_ciconst unsigned kErrorReportLimit = 8; 518b8021494Sopenharmony_ci 519b8021494Sopenharmony_citypedef void (MacroAssembler::*Fn)(Condition cond, 520b8021494Sopenharmony_ci Register rd, 521b8021494Sopenharmony_ci Register rn, 522b8021494Sopenharmony_ci Register rm); 523b8021494Sopenharmony_ci 524b8021494Sopenharmony_civoid TestHelper(Fn instruction, 525b8021494Sopenharmony_ci const char* mnemonic, 526b8021494Sopenharmony_ci const TestResult reference[]) { 527b8021494Sopenharmony_ci unsigned total_error_count = 0; 528b8021494Sopenharmony_ci MacroAssembler masm(BUF_SIZE); 529b8021494Sopenharmony_ci 530b8021494Sopenharmony_ci masm.UseA32(); 531b8021494Sopenharmony_ci 532b8021494Sopenharmony_ci for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) { 533b8021494Sopenharmony_ci // Values to pass to the macro-assembler. 534b8021494Sopenharmony_ci Condition cond = kTests[i].operands.cond; 535b8021494Sopenharmony_ci Register rd = kTests[i].operands.rd; 536b8021494Sopenharmony_ci Register rn = kTests[i].operands.rn; 537b8021494Sopenharmony_ci Register rm = kTests[i].operands.rm; 538b8021494Sopenharmony_ci 539b8021494Sopenharmony_ci int32_t start = masm.GetCursorOffset(); 540b8021494Sopenharmony_ci { 541b8021494Sopenharmony_ci // We never generate more that 4 bytes, as IT instructions are only 542b8021494Sopenharmony_ci // allowed for narrow encodings. 543b8021494Sopenharmony_ci ExactAssemblyScope scope(&masm, 4, ExactAssemblyScope::kMaximumSize); 544b8021494Sopenharmony_ci if (kTests[i].in_it_block) { 545b8021494Sopenharmony_ci masm.it(kTests[i].it_condition); 546b8021494Sopenharmony_ci } 547b8021494Sopenharmony_ci (masm.*instruction)(cond, rd, rn, rm); 548b8021494Sopenharmony_ci } 549b8021494Sopenharmony_ci int32_t end = masm.GetCursorOffset(); 550b8021494Sopenharmony_ci 551b8021494Sopenharmony_ci const byte* result_ptr = 552b8021494Sopenharmony_ci masm.GetBuffer()->GetOffsetAddress<const byte*>(start); 553b8021494Sopenharmony_ci VIXL_ASSERT(start < end); 554b8021494Sopenharmony_ci uint32_t result_size = end - start; 555b8021494Sopenharmony_ci 556b8021494Sopenharmony_ci if (Test::generate_test_trace()) { 557b8021494Sopenharmony_ci // Print the result bytes. 558b8021494Sopenharmony_ci printf("const byte kInstruction_%s_%s[] = {\n", 559b8021494Sopenharmony_ci mnemonic, 560b8021494Sopenharmony_ci kTests[i].identifier); 561b8021494Sopenharmony_ci for (uint32_t j = 0; j < result_size; j++) { 562b8021494Sopenharmony_ci if (j == 0) { 563b8021494Sopenharmony_ci printf(" 0x%02" PRIx8, result_ptr[j]); 564b8021494Sopenharmony_ci } else { 565b8021494Sopenharmony_ci printf(", 0x%02" PRIx8, result_ptr[j]); 566b8021494Sopenharmony_ci } 567b8021494Sopenharmony_ci } 568b8021494Sopenharmony_ci // This comment is meant to be used by external tools to validate 569b8021494Sopenharmony_ci // the encoding. We can parse the comment to figure out what 570b8021494Sopenharmony_ci // instruction this corresponds to. 571b8021494Sopenharmony_ci if (kTests[i].in_it_block) { 572b8021494Sopenharmony_ci printf(" // It %s; %s %s\n};\n", 573b8021494Sopenharmony_ci kTests[i].it_condition.GetName(), 574b8021494Sopenharmony_ci mnemonic, 575b8021494Sopenharmony_ci kTests[i].operands_description); 576b8021494Sopenharmony_ci } else { 577b8021494Sopenharmony_ci printf(" // %s %s\n};\n", mnemonic, kTests[i].operands_description); 578b8021494Sopenharmony_ci } 579b8021494Sopenharmony_ci } else { 580b8021494Sopenharmony_ci // Check we've emitted the exact same encoding as present in the 581b8021494Sopenharmony_ci // trace file. Only print up to `kErrorReportLimit` errors. 582b8021494Sopenharmony_ci if (((result_size != reference[i].size) || 583b8021494Sopenharmony_ci (memcmp(result_ptr, reference[i].encoding, reference[i].size) != 584b8021494Sopenharmony_ci 0)) && 585b8021494Sopenharmony_ci (++total_error_count <= kErrorReportLimit)) { 586b8021494Sopenharmony_ci printf("Error when testing \"%s\" with operands \"%s\":\n", 587b8021494Sopenharmony_ci mnemonic, 588b8021494Sopenharmony_ci kTests[i].operands_description); 589b8021494Sopenharmony_ci printf(" Expected: "); 590b8021494Sopenharmony_ci for (uint32_t j = 0; j < reference[i].size; j++) { 591b8021494Sopenharmony_ci if (j == 0) { 592b8021494Sopenharmony_ci printf("0x%02" PRIx8, reference[i].encoding[j]); 593b8021494Sopenharmony_ci } else { 594b8021494Sopenharmony_ci printf(", 0x%02" PRIx8, reference[i].encoding[j]); 595b8021494Sopenharmony_ci } 596b8021494Sopenharmony_ci } 597b8021494Sopenharmony_ci printf("\n"); 598b8021494Sopenharmony_ci printf(" Found: "); 599b8021494Sopenharmony_ci for (uint32_t j = 0; j < result_size; j++) { 600b8021494Sopenharmony_ci if (j == 0) { 601b8021494Sopenharmony_ci printf("0x%02" PRIx8, result_ptr[j]); 602b8021494Sopenharmony_ci } else { 603b8021494Sopenharmony_ci printf(", 0x%02" PRIx8, result_ptr[j]); 604b8021494Sopenharmony_ci } 605b8021494Sopenharmony_ci } 606b8021494Sopenharmony_ci printf("\n"); 607b8021494Sopenharmony_ci } 608b8021494Sopenharmony_ci } 609b8021494Sopenharmony_ci } 610b8021494Sopenharmony_ci 611b8021494Sopenharmony_ci masm.FinalizeCode(); 612b8021494Sopenharmony_ci 613b8021494Sopenharmony_ci if (Test::generate_test_trace()) { 614b8021494Sopenharmony_ci // Finalize the trace file by writing the final `TestResult` array 615b8021494Sopenharmony_ci // which links all generated instruction encodings. 616b8021494Sopenharmony_ci printf("const TestResult kReference%s[] = {\n", mnemonic); 617b8021494Sopenharmony_ci for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) { 618b8021494Sopenharmony_ci printf(" {\n"); 619b8021494Sopenharmony_ci printf(" ARRAY_SIZE(kInstruction_%s_%s),\n", 620b8021494Sopenharmony_ci mnemonic, 621b8021494Sopenharmony_ci kTests[i].identifier); 622b8021494Sopenharmony_ci printf(" kInstruction_%s_%s,\n", mnemonic, kTests[i].identifier); 623b8021494Sopenharmony_ci printf(" },\n"); 624b8021494Sopenharmony_ci } 625b8021494Sopenharmony_ci printf("};\n"); 626b8021494Sopenharmony_ci } else { 627b8021494Sopenharmony_ci if (total_error_count > kErrorReportLimit) { 628b8021494Sopenharmony_ci printf("%u other errors follow.\n", 629b8021494Sopenharmony_ci total_error_count - kErrorReportLimit); 630b8021494Sopenharmony_ci } 631b8021494Sopenharmony_ci // Crash if the test failed. 632b8021494Sopenharmony_ci VIXL_CHECK(total_error_count == 0); 633b8021494Sopenharmony_ci } 634b8021494Sopenharmony_ci} 635b8021494Sopenharmony_ci 636b8021494Sopenharmony_ci// Instantiate tests for each instruction in the list. 637b8021494Sopenharmony_ci#define TEST(mnemonic) \ 638b8021494Sopenharmony_ci void Test_##mnemonic() { \ 639b8021494Sopenharmony_ci TestHelper(&MacroAssembler::mnemonic, #mnemonic, kReference##mnemonic); \ 640b8021494Sopenharmony_ci } \ 641b8021494Sopenharmony_ci Test test_##mnemonic("AARCH32_ASSEMBLER_COND_RD_RN_RM_" #mnemonic "_A32", \ 642b8021494Sopenharmony_ci &Test_##mnemonic); 643b8021494Sopenharmony_ciFOREACH_INSTRUCTION(TEST) 644b8021494Sopenharmony_ci#undef TEST 645b8021494Sopenharmony_ci 646b8021494Sopenharmony_ci} // namespace 647b8021494Sopenharmony_ci#endif 648b8021494Sopenharmony_ci 649b8021494Sopenharmony_ci} // namespace aarch32 650b8021494Sopenharmony_ci} // namespace vixl 651