1b8021494Sopenharmony_ci// Copyright 2016, VIXL authors 2b8021494Sopenharmony_ci// All rights reserved. 3b8021494Sopenharmony_ci// 4b8021494Sopenharmony_ci// Redistribution and use in source and binary forms, with or without 5b8021494Sopenharmony_ci// modification, are permitted provided that the following conditions are met: 6b8021494Sopenharmony_ci// 7b8021494Sopenharmony_ci// * Redistributions of source code must retain the above copyright notice, 8b8021494Sopenharmony_ci// this list of conditions and the following disclaimer. 9b8021494Sopenharmony_ci// * Redistributions in binary form must reproduce the above copyright notice, 10b8021494Sopenharmony_ci// this list of conditions and the following disclaimer in the documentation 11b8021494Sopenharmony_ci// and/or other materials provided with the distribution. 12b8021494Sopenharmony_ci// * Neither the name of ARM Limited nor the names of its contributors may be 13b8021494Sopenharmony_ci// used to endorse or promote products derived from this software without 14b8021494Sopenharmony_ci// specific prior written permission. 15b8021494Sopenharmony_ci// 16b8021494Sopenharmony_ci// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS CONTRIBUTORS "AS IS" AND 17b8021494Sopenharmony_ci// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 18b8021494Sopenharmony_ci// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 19b8021494Sopenharmony_ci// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE 20b8021494Sopenharmony_ci// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 21b8021494Sopenharmony_ci// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 22b8021494Sopenharmony_ci// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 23b8021494Sopenharmony_ci// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 24b8021494Sopenharmony_ci// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 25b8021494Sopenharmony_ci// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26b8021494Sopenharmony_ci 27b8021494Sopenharmony_ci 28b8021494Sopenharmony_ci// ----------------------------------------------------------------------------- 29b8021494Sopenharmony_ci// This file is auto generated from the 30b8021494Sopenharmony_ci// test/aarch32/config/template-simulator-aarch32.cc.in template file using 31b8021494Sopenharmony_ci// tools/generate_tests.py. 32b8021494Sopenharmony_ci// 33b8021494Sopenharmony_ci// PLEASE DO NOT EDIT. 34b8021494Sopenharmony_ci// ----------------------------------------------------------------------------- 35b8021494Sopenharmony_ci 36b8021494Sopenharmony_ci 37b8021494Sopenharmony_ci#include "test-runner.h" 38b8021494Sopenharmony_ci 39b8021494Sopenharmony_ci#include "test-utils.h" 40b8021494Sopenharmony_ci#include "test-utils-aarch32.h" 41b8021494Sopenharmony_ci 42b8021494Sopenharmony_ci#include "aarch32/assembler-aarch32.h" 43b8021494Sopenharmony_ci#include "aarch32/disasm-aarch32.h" 44b8021494Sopenharmony_ci#include "aarch32/macro-assembler-aarch32.h" 45b8021494Sopenharmony_ci 46b8021494Sopenharmony_ci#define __ masm. 47b8021494Sopenharmony_ci#define BUF_SIZE (4096) 48b8021494Sopenharmony_ci 49b8021494Sopenharmony_ci#ifdef VIXL_INCLUDE_SIMULATOR_AARCH32 50b8021494Sopenharmony_ci// Run tests with the simulator. 51b8021494Sopenharmony_ci 52b8021494Sopenharmony_ci#define SETUP() MacroAssembler masm(BUF_SIZE) 53b8021494Sopenharmony_ci 54b8021494Sopenharmony_ci#define START() masm.GetBuffer()->Reset() 55b8021494Sopenharmony_ci 56b8021494Sopenharmony_ci#define END() \ 57b8021494Sopenharmony_ci __ Hlt(0); \ 58b8021494Sopenharmony_ci __ FinalizeCode(); 59b8021494Sopenharmony_ci 60b8021494Sopenharmony_ci// TODO: Run the tests in the simulator. 61b8021494Sopenharmony_ci#define RUN() 62b8021494Sopenharmony_ci 63b8021494Sopenharmony_ci#else // ifdef VIXL_INCLUDE_SIMULATOR_AARCH32. 64b8021494Sopenharmony_ci 65b8021494Sopenharmony_ci#define SETUP() \ 66b8021494Sopenharmony_ci MacroAssembler masm(BUF_SIZE); \ 67b8021494Sopenharmony_ci UseScratchRegisterScope harness_scratch; 68b8021494Sopenharmony_ci 69b8021494Sopenharmony_ci#define START() \ 70b8021494Sopenharmony_ci harness_scratch.Open(&masm); \ 71b8021494Sopenharmony_ci harness_scratch.ExcludeAll(); \ 72b8021494Sopenharmony_ci masm.GetBuffer()->Reset(); \ 73b8021494Sopenharmony_ci __ Push(r4); \ 74b8021494Sopenharmony_ci __ Push(r5); \ 75b8021494Sopenharmony_ci __ Push(r6); \ 76b8021494Sopenharmony_ci __ Push(r7); \ 77b8021494Sopenharmony_ci __ Push(r8); \ 78b8021494Sopenharmony_ci __ Push(r9); \ 79b8021494Sopenharmony_ci __ Push(r10); \ 80b8021494Sopenharmony_ci __ Push(r11); \ 81b8021494Sopenharmony_ci __ Push(lr); \ 82b8021494Sopenharmony_ci harness_scratch.Include(ip); 83b8021494Sopenharmony_ci 84b8021494Sopenharmony_ci#define END() \ 85b8021494Sopenharmony_ci harness_scratch.Exclude(ip); \ 86b8021494Sopenharmony_ci __ Pop(lr); \ 87b8021494Sopenharmony_ci __ Pop(r11); \ 88b8021494Sopenharmony_ci __ Pop(r10); \ 89b8021494Sopenharmony_ci __ Pop(r9); \ 90b8021494Sopenharmony_ci __ Pop(r8); \ 91b8021494Sopenharmony_ci __ Pop(r7); \ 92b8021494Sopenharmony_ci __ Pop(r6); \ 93b8021494Sopenharmony_ci __ Pop(r5); \ 94b8021494Sopenharmony_ci __ Pop(r4); \ 95b8021494Sopenharmony_ci __ Bx(lr); \ 96b8021494Sopenharmony_ci __ FinalizeCode(); \ 97b8021494Sopenharmony_ci harness_scratch.Close(); 98b8021494Sopenharmony_ci 99b8021494Sopenharmony_ci#define RUN() \ 100b8021494Sopenharmony_ci { \ 101b8021494Sopenharmony_ci int pcs_offset = masm.IsUsingT32() ? 1 : 0; \ 102b8021494Sopenharmony_ci masm.GetBuffer()->SetExecutable(); \ 103b8021494Sopenharmony_ci ExecuteMemory(masm.GetBuffer()->GetStartAddress<byte*>(), \ 104b8021494Sopenharmony_ci masm.GetSizeOfCodeGenerated(), \ 105b8021494Sopenharmony_ci pcs_offset); \ 106b8021494Sopenharmony_ci masm.GetBuffer()->SetWritable(); \ 107b8021494Sopenharmony_ci } 108b8021494Sopenharmony_ci 109b8021494Sopenharmony_ci#endif // ifdef VIXL_INCLUDE_SIMULATOR_AARCH32 110b8021494Sopenharmony_ci 111b8021494Sopenharmony_cinamespace vixl { 112b8021494Sopenharmony_cinamespace aarch32 { 113b8021494Sopenharmony_ci 114b8021494Sopenharmony_ci// List of instruction encodings: 115b8021494Sopenharmony_ci#define FOREACH_INSTRUCTION(M) \ 116b8021494Sopenharmony_ci M(Adc) \ 117b8021494Sopenharmony_ci M(Adcs) \ 118b8021494Sopenharmony_ci M(Add) \ 119b8021494Sopenharmony_ci M(Adds) \ 120b8021494Sopenharmony_ci M(And) \ 121b8021494Sopenharmony_ci M(Ands) \ 122b8021494Sopenharmony_ci M(Bic) \ 123b8021494Sopenharmony_ci M(Bics) \ 124b8021494Sopenharmony_ci M(Eor) \ 125b8021494Sopenharmony_ci M(Eors) \ 126b8021494Sopenharmony_ci M(Orn) \ 127b8021494Sopenharmony_ci M(Orns) \ 128b8021494Sopenharmony_ci M(Orr) \ 129b8021494Sopenharmony_ci M(Orrs) \ 130b8021494Sopenharmony_ci M(Rsb) \ 131b8021494Sopenharmony_ci M(Rsbs) \ 132b8021494Sopenharmony_ci M(Sbc) \ 133b8021494Sopenharmony_ci M(Sbcs) \ 134b8021494Sopenharmony_ci M(Sub) \ 135b8021494Sopenharmony_ci M(Subs) 136b8021494Sopenharmony_ci 137b8021494Sopenharmony_ci 138b8021494Sopenharmony_ci// The following definitions are defined again in each generated test, therefore 139b8021494Sopenharmony_ci// we need to place them in an anonymous namespace. It expresses that they are 140b8021494Sopenharmony_ci// local to this file only, and the compiler is not allowed to share these types 141b8021494Sopenharmony_ci// across test files during template instantiation. Specifically, `Operands` and 142b8021494Sopenharmony_ci// `Inputs` have various layouts across generated tests so they absolutely 143b8021494Sopenharmony_ci// cannot be shared. 144b8021494Sopenharmony_ci 145b8021494Sopenharmony_ci#ifdef VIXL_INCLUDE_TARGET_T32 146b8021494Sopenharmony_cinamespace { 147b8021494Sopenharmony_ci 148b8021494Sopenharmony_ci// Values to be passed to the assembler to produce the instruction under test. 149b8021494Sopenharmony_cistruct Operands { 150b8021494Sopenharmony_ci Condition cond; 151b8021494Sopenharmony_ci Register rd; 152b8021494Sopenharmony_ci Register rn; 153b8021494Sopenharmony_ci Register rm; 154b8021494Sopenharmony_ci ShiftType shift; 155b8021494Sopenharmony_ci uint32_t amount; 156b8021494Sopenharmony_ci}; 157b8021494Sopenharmony_ci 158b8021494Sopenharmony_ci// Input data to feed to the instruction. 159b8021494Sopenharmony_cistruct Inputs { 160b8021494Sopenharmony_ci uint32_t apsr; 161b8021494Sopenharmony_ci uint32_t rd; 162b8021494Sopenharmony_ci uint32_t rn; 163b8021494Sopenharmony_ci uint32_t rm; 164b8021494Sopenharmony_ci}; 165b8021494Sopenharmony_ci 166b8021494Sopenharmony_ci// This structure contains all input data needed to test one specific encoding. 167b8021494Sopenharmony_ci// It used to generate a loop over an instruction. 168b8021494Sopenharmony_cistruct TestLoopData { 169b8021494Sopenharmony_ci // The `operands` fields represents the values to pass to the assembler to 170b8021494Sopenharmony_ci // produce the instruction. 171b8021494Sopenharmony_ci Operands operands; 172b8021494Sopenharmony_ci // Description of the operands, used for error reporting. 173b8021494Sopenharmony_ci const char* operands_description; 174b8021494Sopenharmony_ci // Unique identifier, used for generating traces. 175b8021494Sopenharmony_ci const char* identifier; 176b8021494Sopenharmony_ci // Array of values to be fed to the instruction. 177b8021494Sopenharmony_ci size_t input_size; 178b8021494Sopenharmony_ci const Inputs* inputs; 179b8021494Sopenharmony_ci}; 180b8021494Sopenharmony_ci 181b8021494Sopenharmony_cistatic const Inputs kCondition[] = 182b8021494Sopenharmony_ci {{NFlag, 0xabababab, 0xabababab, 0xabababab}, 183b8021494Sopenharmony_ci {ZFlag, 0xabababab, 0xabababab, 0xabababab}, 184b8021494Sopenharmony_ci {CFlag, 0xabababab, 0xabababab, 0xabababab}, 185b8021494Sopenharmony_ci {VFlag, 0xabababab, 0xabababab, 0xabababab}, 186b8021494Sopenharmony_ci {NZFlag, 0xabababab, 0xabababab, 0xabababab}, 187b8021494Sopenharmony_ci {NCFlag, 0xabababab, 0xabababab, 0xabababab}, 188b8021494Sopenharmony_ci {NVFlag, 0xabababab, 0xabababab, 0xabababab}, 189b8021494Sopenharmony_ci {ZCFlag, 0xabababab, 0xabababab, 0xabababab}, 190b8021494Sopenharmony_ci {ZVFlag, 0xabababab, 0xabababab, 0xabababab}, 191b8021494Sopenharmony_ci {CVFlag, 0xabababab, 0xabababab, 0xabababab}, 192b8021494Sopenharmony_ci {NZCFlag, 0xabababab, 0xabababab, 0xabababab}, 193b8021494Sopenharmony_ci {NZVFlag, 0xabababab, 0xabababab, 0xabababab}, 194b8021494Sopenharmony_ci {NCVFlag, 0xabababab, 0xabababab, 0xabababab}, 195b8021494Sopenharmony_ci {ZCVFlag, 0xabababab, 0xabababab, 0xabababab}, 196b8021494Sopenharmony_ci {NZCVFlag, 0xabababab, 0xabababab, 0xabababab}}; 197b8021494Sopenharmony_ci 198b8021494Sopenharmony_cistatic const Inputs kRdIsRn[] = {{NoFlag, 0xffffff83, 0xffffff83, 0xffff8002}, 199b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x0000007e, 0x7fffffff}, 200b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0x0000007d, 0xffffffe0}, 201b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x7fffffff, 0x00000002}, 202b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xffff8002, 0xfffffffd}, 203b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffffe0, 0x00007fff}, 204b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffff8000, 0xffffff83}, 205b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xffff8002, 0x80000001}, 206b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x00007ffd, 0xffff8003}, 207b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x00007fff, 0xffffffff}, 208b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x00000000, 0xffffff80}, 209b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0xffff8001, 0x33333333}, 210b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffff80, 0x0000007e}, 211b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x0000007e, 0x7ffffffd}, 212b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffff80, 0xfffffffd}, 213b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x00000020, 0xffff8002}, 214b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffff80, 0xfffffffe}, 215b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0x00000002, 0x00000000}, 216b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x0000007e, 0x00000001}, 217b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0x00000002, 0x0000007f}, 218b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x80000000, 0x80000000}, 219b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x7fffffff, 0xffffff80}, 220b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x00000001, 0xfffffffe}, 221b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x33333333, 0x0000007d}, 222b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x00000001, 0x7ffffffe}, 223b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0x00007ffe, 0x7fffffff}, 224b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x80000000, 0xffffff83}, 225b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x00000000, 0x7ffffffe}, 226b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x00000000, 0x0000007f}, 227b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x7fffffff, 0xcccccccc}, 228b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0x00000002}, 229b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x7ffffffd, 0xaaaaaaaa}, 230b8021494Sopenharmony_ci {NoFlag, 0xcccccccc, 0xcccccccc, 0xffff8001}, 231b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xfffffffe, 0xffff8001}, 232b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x7fffffff, 0x00000020}, 233b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffffe0, 0x00007ffe}, 234b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x80000001, 0xffff8000}, 235b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0x0000007d}, 236b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x0000007e, 0x7ffffffe}, 237b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x00007ffd, 0xffffff80}, 238b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0x0000007d, 0x0000007e}, 239b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xffff8002, 0x7fffffff}, 240b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffffe0, 0x0000007f}, 241b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0x00007ffe, 0xffffff81}, 242b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x80000000, 0x0000007e}, 243b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffffff, 0xaaaaaaaa}, 244b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xfffffffe, 0x00000020}, 245b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0xffff8003}, 246b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x7ffffffd, 0xffff8002}, 247b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x7ffffffe, 0x00000000}, 248b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xfffffffd, 0xffffffe0}, 249b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffff8000, 0xffff8002}, 250b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0x7ffffffd}, 251b8021494Sopenharmony_ci {NoFlag, 0xcccccccc, 0xcccccccc, 0x80000000}, 252b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x80000001, 0x33333333}, 253b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x00000001, 0x00000002}, 254b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x55555555, 0x0000007f}, 255b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffffff, 0xfffffffd}, 256b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffff80, 0x80000000}, 257b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x00000000, 0x00000020}, 258b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xfffffffe, 0xffff8003}, 259b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0xffff8001, 0xffff8000}, 260b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x55555555, 0x55555555}, 261b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x00007fff, 0xffff8000}, 262b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x7fffffff, 0xffffffe0}, 263b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x00000001, 0x55555555}, 264b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x33333333, 0x7ffffffe}, 265b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x80000000, 0xffffffe0}, 266b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0xffffff83, 0x0000007d}, 267b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0xffff8003, 0x00000002}, 268b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x7ffffffe, 0xffffff81}, 269b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xfffffffe, 0xffffff80}, 270b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0x00007ffe, 0xffff8002}, 271b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x80000001, 0xfffffffe}, 272b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x7ffffffd, 0xfffffffd}, 273b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x7ffffffd, 0xfffffffe}, 274b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x7ffffffe, 0xffffff83}, 275b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xfffffffd, 0x00007ffe}, 276b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x7fffffff, 0x80000000}, 277b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0x7fffffff}, 278b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffffe0, 0xffffff83}, 279b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffff8000, 0xffff8000}, 280b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x00000001, 0x7fffffff}, 281b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xfffffffe, 0xffffffff}, 282b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0xffffffff}, 283b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffffff, 0xfffffffe}, 284b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0x0000007d}, 285b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0xffff8001, 0xfffffffe}, 286b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0x00007ffe, 0x0000007d}, 287b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0xfffffffe}, 288b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x00000000, 0x00007ffd}, 289b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0xffff8002}, 290b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0x0000007f, 0xffffff82}, 291b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x00007fff, 0x33333333}, 292b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xfffffffd, 0x80000000}, 293b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x00000000, 0xfffffffd}, 294b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0x0000007d, 0x0000007f}, 295b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xfffffffd, 0x0000007e}, 296b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffffe0, 0x55555555}, 297b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffffff, 0x80000000}, 298b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffffe0, 0x0000007e}, 299b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0xffffff81, 0x00007ffd}, 300b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x00000020, 0xffff8001}, 301b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x00007fff, 0xffffff83}, 302b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x33333333, 0x00000000}, 303b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffff8000, 0xffffff82}, 304b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0xffff8001, 0x0000007e}, 305b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffff80, 0x00000001}, 306b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x80000000, 0xcccccccc}, 307b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0x00000002, 0x00007ffd}, 308b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x7ffffffe, 0x80000001}, 309b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x00000020, 0x00007ffe}, 310b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffff8000, 0xfffffffd}, 311b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x7fffffff, 0xffff8001}, 312b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x00000000, 0xffffff83}, 313b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0x0000007f, 0x00000020}, 314b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x80000001, 0xffff8003}, 315b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0xffff8001, 0x0000007f}, 316b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0x0000007f, 0x80000001}, 317b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0x00000002, 0x7ffffffe}, 318b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0xffffff83}, 319b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x00007ffd, 0x7fffffff}, 320b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x7ffffffe, 0xfffffffe}, 321b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0xffff8000}, 322b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xfffffffe, 0xffff8000}, 323b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xffff8002, 0xffffff81}, 324b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x33333333, 0x7fffffff}, 325b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x80000001, 0x00007fff}, 326b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xffff8002, 0xcccccccc}, 327b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffffff, 0x00000002}, 328b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x33333333, 0xffffff81}, 329b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xfffffffd, 0xffffff80}, 330b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x55555555, 0xaaaaaaaa}, 331b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x33333333, 0xffffff82}, 332b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffff80, 0xaaaaaaaa}, 333b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x0000007e, 0x00000020}, 334b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0xffffff83, 0x00007ffd}, 335b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0xaaaaaaaa}, 336b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0xffff8003, 0xffffffff}, 337b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0xfffffffe}, 338b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0x00000000}, 339b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0x0000007f}, 340b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0x0000007f, 0x0000007d}, 341b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xfffffffd, 0x55555555}, 342b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffffff, 0x00000020}, 343b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0x00007ffe, 0xffffff83}, 344b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x7fffffff, 0x55555555}, 345b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x55555555, 0xcccccccc}, 346b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffffe0, 0xffff8003}, 347b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x7ffffffe, 0x00007ffe}, 348b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x00007ffd, 0xffff8002}, 349b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x00007ffd, 0x00000001}, 350b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x00000000, 0x00007ffe}, 351b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffff80, 0x00000020}, 352b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffff8000, 0x0000007d}, 353b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0xffff8003, 0x00000000}, 354b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x0000007e, 0x80000000}, 355b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xfffffffd, 0x00000000}, 356b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffff80, 0xffffffff}, 357b8021494Sopenharmony_ci {NoFlag, 0xcccccccc, 0xcccccccc, 0x0000007f}, 358b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x7ffffffd, 0x00000000}, 359b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x00007fff, 0x00000000}, 360b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0x0000007f, 0x00000001}, 361b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffffff, 0xffffff82}, 362b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0x00007ffe, 0x00007ffd}, 363b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0x33333333}, 364b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0x55555555}, 365b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0xffff8003, 0x0000007e}, 366b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0xffffff83, 0x00000002}, 367b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0x33333333}, 368b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x55555555, 0xffffffff}, 369b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xaaaaaaaa, 0x80000001}, 370b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0xffffff83, 0xffffffe0}, 371b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x00000001, 0xffffffe0}, 372b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x33333333, 0x33333333}, 373b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x55555555, 0x00000001}, 374b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0xffffff83, 0x00007fff}, 375b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0x00000002, 0xfffffffd}, 376b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffffe0, 0xffff8002}, 377b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x80000000, 0x00007ffd}, 378b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0xffffff83, 0xfffffffe}, 379b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x80000001, 0xffffffff}, 380b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0xffff8003, 0x00000020}, 381b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0xcccccccc}, 382b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x00000020, 0x7fffffff}, 383b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffff80, 0x55555555}, 384b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x00000001, 0x00000020}, 385b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0xffff8001, 0x00007fff}, 386b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x00000020, 0xaaaaaaaa}, 387b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x55555555, 0x7fffffff}, 388b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xfffffffe, 0x7fffffff}, 389b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x00007fff, 0x55555555}, 390b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x55555555, 0x0000007d}, 391b8021494Sopenharmony_ci {NoFlag, 0xcccccccc, 0xcccccccc, 0x7ffffffe}, 392b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xffff8002, 0x00007ffe}, 393b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xfffffffe, 0xffffff81}, 394b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0xffffff81, 0x0000007d}, 395b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x00000020, 0x0000007e}, 396b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffffff, 0x00007ffe}, 397b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xffff8002, 0x0000007e}}; 398b8021494Sopenharmony_ci 399b8021494Sopenharmony_cistatic const Inputs kRdIsRm[] = {{NoFlag, 0x55555555, 0x7ffffffe, 0x55555555}, 400b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0x00000001, 0xfffffffe}, 401b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff82, 0xffffff82}, 402b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffff8003, 0xffff8000}, 403b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x00000000, 0x00000001}, 404b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0x00007fff, 0xffffff81}, 405b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0xffff8002, 0x0000007d}, 406b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0xffff8000, 0x80000000}, 407b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0x00000020, 0xffffff80}, 408b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0xffffff81, 0x55555555}, 409b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0xffffff82, 0x00007ffd}, 410b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x00007fff, 0x55555555}, 411b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0xffff8000, 0x7ffffffd}, 412b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffff83, 0xffffffff}, 413b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0xffffffff, 0x00000000}, 414b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0x33333333, 0xffff8002}, 415b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0xaaaaaaaa, 0x00007ffd}, 416b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0xffff8000, 0x55555555}, 417b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0xffffffff, 0x80000001}, 418b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0xffffff83, 0x0000007d}, 419b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0xffffff82, 0x0000007e}, 420b8021494Sopenharmony_ci {NoFlag, 0xcccccccc, 0x0000007d, 0xcccccccc}, 421b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xffffffff, 0xffff8002}, 422b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0x0000007f, 0xffffff81}, 423b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffffff83, 0xffff8000}, 424b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffffe0, 0xffffffff}, 425b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0x80000001, 0xfffffffd}, 426b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x80000000, 0x55555555}, 427b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0x0000007d, 0xffff8000}, 428b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xffff8003, 0xaaaaaaaa}, 429b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x00007ffd, 0x00000001}, 430b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x7ffffffe, 0x0000007e}, 431b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x00007ffd, 0x00000020}, 432b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0x7ffffffd, 0xffffff81}, 433b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0x0000007f, 0xffffff83}, 434b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x0000007e, 0x00000001}, 435b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xfffffffd, 0xffffff82}, 436b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0x7ffffffe, 0xffff8003}, 437b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0x00000002, 0x00000002}, 438b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0xffff8001, 0xffffff83}, 439b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xfffffffe, 0xffff8002}, 440b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffff81, 0xffffff80}, 441b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0xffffff81, 0x7fffffff}, 442b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0xffffff81, 0x00000020}, 443b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0xffffffff, 0x0000007f}, 444b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0xcccccccc, 0x0000007d}, 445b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x55555555, 0x00007fff}, 446b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0x00007ffd, 0xffff8003}, 447b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x80000001, 0x80000001}, 448b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xfffffffd, 0xffffffff}, 449b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xfffffffe, 0xffff8000}, 450b8021494Sopenharmony_ci {NoFlag, 0xcccccccc, 0x0000007f, 0xcccccccc}, 451b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x00000002, 0x00000001}, 452b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffff81, 0xffffff82}, 453b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0x00007ffd, 0xfffffffd}, 454b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x33333333, 0x80000001}, 455b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffff8002, 0xffffff82}, 456b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0xfffffffd, 0xffff8003}, 457b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0x00000020, 0xffffff81}, 458b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0xffff8003, 0xffff8001}, 459b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x80000001, 0x00000001}, 460b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0x00000002, 0xfffffffd}, 461b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0x7ffffffd, 0xffff8003}, 462b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0xaaaaaaaa, 0x0000007e}, 463b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x7fffffff, 0x7ffffffe}, 464b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x00007ffe, 0x00007ffd}, 465b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x80000001, 0x00007fff}, 466b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0xfffffffe, 0x00007fff}, 467b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0xffffff80, 0x00000001}, 468b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0xcccccccc, 0x55555555}, 469b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0xffffffe0, 0x7ffffffd}, 470b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0xfffffffe, 0xffffff81}, 471b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0x00007ffe, 0xffffff82}, 472b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0x80000001, 0xffffff82}, 473b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0xffff8001, 0x0000007f}, 474b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0xffffff83, 0x7ffffffd}, 475b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xcccccccc, 0xffffff82}, 476b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0xffffff83, 0x00000020}, 477b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0x80000000, 0x00007ffe}, 478b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0xffff8000, 0x0000007f}, 479b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0x33333333, 0xffffff82}, 480b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x7ffffffd, 0x7ffffffd}, 481b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffff8001, 0xffffff80}, 482b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0xaaaaaaaa, 0x00000002}, 483b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0x7fffffff, 0xffffffff}, 484b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xfffffffe, 0xfffffffd}, 485b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x00000001, 0x00000020}, 486b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x00000001, 0x55555555}, 487b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0xffffff80, 0x55555555}, 488b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0x00007fff, 0xffffffff}, 489b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0xaaaaaaaa, 0x00000020}, 490b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0x00007ffe, 0x00000002}, 491b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0xcccccccc, 0x00000001}, 492b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0x00000000, 0xffff8001}, 493b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0xffff8000, 0x00000001}, 494b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0x00007fff, 0xffffffe0}, 495b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0x00007fff, 0xfffffffe}, 496b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0x00000001, 0xffffff83}, 497b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0xffff8002, 0x00007fff}, 498b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x7ffffffe, 0x7ffffffd}, 499b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0xaaaaaaaa, 0x80000001}, 500b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0xcccccccc, 0x80000001}, 501b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0xffffffe0, 0x00007ffe}, 502b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0xfffffffd, 0x00007ffe}, 503b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0xaaaaaaaa, 0x55555555}, 504b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0x00000001, 0xffffffe0}, 505b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x00007fff, 0x0000007e}, 506b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xfffffffd, 0xfffffffe}, 507b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x0000007d, 0x33333333}, 508b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0x7fffffff, 0xffffff81}, 509b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x0000007d, 0x0000007e}, 510b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0xffffff81, 0x00000001}, 511b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x00000002, 0x80000000}, 512b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0xffff8003, 0x0000007d}, 513b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x00007ffd, 0x7ffffffe}, 514b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0xaaaaaaaa, 0x7ffffffe}, 515b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0xffff8000, 0x00000000}, 516b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x00000002, 0x33333333}, 517b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0xffffff83, 0xffffff81}, 518b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x00007ffe, 0x7ffffffe}, 519b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x0000007d, 0x80000000}, 520b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x00000002, 0x00000020}, 521b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x80000001, 0x33333333}, 522b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0x00007ffd, 0xffffff83}, 523b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0xffffff83, 0x00007ffd}, 524b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0x80000000, 0xffff8001}, 525b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x80000000, 0x00000000}, 526b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffffff, 0xffffffe0}, 527b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0xffffff83, 0x80000000}, 528b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0xffffff80, 0x00000020}, 529b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0xffff8001, 0x7ffffffd}, 530b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0xffff8003, 0x80000001}, 531b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0x7fffffff, 0x00007ffe}, 532b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x00000002, 0x7fffffff}, 533b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0xffff8003, 0xffffff83}, 534b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xcccccccc, 0xaaaaaaaa}, 535b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0xffffff80, 0x0000007f}, 536b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x00007ffd, 0x80000001}, 537b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0x80000001, 0xffff8000}, 538b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x00007ffd, 0x00007fff}, 539b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x0000007f, 0x0000007e}, 540b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0x0000007d, 0x00000002}, 541b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x7fffffff, 0x80000001}, 542b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0xffffff81, 0x0000007e}, 543b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0xffff8001, 0x7ffffffe}, 544b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x80000001, 0x7fffffff}, 545b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x0000007f, 0x7ffffffd}, 546b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0xffffff81, 0xffffff81}, 547b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0xfffffffd, 0x00000001}, 548b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0xffffffff, 0x00000001}, 549b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x55555555, 0x7ffffffd}, 550b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x0000007f, 0x55555555}, 551b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0xffff8003, 0x55555555}, 552b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0x00007ffd, 0xaaaaaaaa}, 553b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x33333333, 0x0000007e}, 554b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0x80000001, 0xfffffffe}, 555b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xffff8000, 0xfffffffe}, 556b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffff81, 0xffffffe0}, 557b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x0000007f, 0x7fffffff}, 558b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0x0000007f, 0xffff8003}, 559b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0x00007ffd, 0xffffff82}, 560b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0xffffffff, 0x33333333}, 561b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xcccccccc, 0xffffffe0}, 562b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0x7ffffffd, 0xffffff83}, 563b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0xcccccccc, 0x0000007e}, 564b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0xfffffffd, 0x00000002}, 565b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0xcccccccc, 0x00007fff}, 566b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x00007fff, 0x7fffffff}, 567b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0x33333333, 0xffffffe0}, 568b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0x0000007d, 0x0000007f}, 569b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0xffffffe0, 0x0000007f}, 570b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0xffff8000, 0x00007fff}, 571b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0xffffffff, 0x7fffffff}, 572b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0x7ffffffd, 0xffff8000}, 573b8021494Sopenharmony_ci {NoFlag, 0xcccccccc, 0x0000007e, 0xcccccccc}, 574b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0xffff8003, 0x33333333}, 575b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x00000002, 0x55555555}, 576b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x00000001, 0x00000001}, 577b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0x33333333, 0xaaaaaaaa}, 578b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x00000001, 0x7ffffffd}, 579b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffff8000, 0xffffff82}, 580b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0x55555555, 0x0000007d}, 581b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0x7ffffffe, 0xffff8000}, 582b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0xffffffe0, 0x7fffffff}, 583b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0xffff8003, 0x7fffffff}, 584b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xaaaaaaaa, 0xffffff82}, 585b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xffffff80, 0xfffffffd}, 586b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x80000001, 0x7ffffffd}, 587b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x00007ffd, 0x00000000}, 588b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffff80, 0xffffffff}, 589b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xcccccccc, 0xffffff80}, 590b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0x55555555, 0x00007ffe}, 591b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffff8000, 0xffff8000}, 592b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffff8000, 0xffffffff}, 593b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x0000007d, 0x80000001}, 594b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffff8002, 0xffffffe0}, 595b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xffffffe0, 0xfffffffe}, 596b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0xffff8003, 0x80000000}, 597b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0xffffff81, 0x80000001}, 598b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0x00007ffe, 0xffffffe0}}; 599b8021494Sopenharmony_ci 600b8021494Sopenharmony_cistatic const Inputs kRdIsNotRnIsNotRm[] = 601b8021494Sopenharmony_ci {{NoFlag, 0x0000007e, 0x0000007e, 0x0000007d}, 602b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x00000002, 0xffff8002}, 603b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0x80000001, 0x00000000}, 604b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0xffffff83, 0x00000002}, 605b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffffe0, 0x00000002}, 606b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x80000001, 0xffffff82}, 607b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x00007fff, 0x0000007f}, 608b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0x0000007d, 0x7ffffffe}, 609b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0x00000020, 0xffff8002}, 610b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x55555555, 0x00000001}, 611b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x33333333, 0x00000000}, 612b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x7ffffffd, 0x55555555}, 613b8021494Sopenharmony_ci {NoFlag, 0xcccccccc, 0xffff8001, 0x7ffffffe}, 614b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0xffffff83, 0xffff8003}, 615b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0xffffffe0, 0xffffff81}, 616b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffff8001, 0x0000007e}, 617b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x0000007e, 0x00000020}, 618b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0xfffffffd, 0xaaaaaaaa}, 619b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0xffffff82, 0x7ffffffd}, 620b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0xcccccccc, 0x7fffffff}, 621b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0x80000001, 0xffffffff}, 622b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0x00000020, 0x7ffffffe}, 623b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0xffffff81, 0xffffffe0}, 624b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffffff81, 0xfffffffd}, 625b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0xffffffff, 0xffffffff}, 626b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0xffff8000, 0xcccccccc}, 627b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0x00007ffe, 0xffffff82}, 628b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x0000007d, 0xffff8003}, 629b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xffffff81, 0x0000007e}, 630b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x7ffffffd, 0xfffffffe}, 631b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0x80000001, 0xffffff81}, 632b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0x00007ffd, 0xfffffffd}, 633b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x7fffffff, 0xffff8003}, 634b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x0000007d, 0x33333333}, 635b8021494Sopenharmony_ci {NoFlag, 0xcccccccc, 0xffff8000, 0x00007ffe}, 636b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0xffff8000, 0x00000020}, 637b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x00007fff, 0xffffffe0}, 638b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x00000000, 0x00007ffe}, 639b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0x33333333, 0x00000001}, 640b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0xffffff80, 0x00000020}, 641b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0xffffff83, 0x00007ffd}, 642b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0xffffffff, 0x80000001}, 643b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0xffffff81, 0xcccccccc}, 644b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x0000007f, 0xffff8001}, 645b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x00000020, 0x80000000}, 646b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0x00007fff, 0xffffff80}, 647b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x7ffffffe, 0x7ffffffd}, 648b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffffff, 0x00000001}, 649b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x7ffffffd, 0xffffff83}, 650b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0xffff8001, 0xffffffe0}, 651b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0xffffff80, 0x00007ffd}, 652b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0x00007fff, 0x00007ffe}, 653b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0x00000000, 0xffff8000}, 654b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0xaaaaaaaa, 0x7ffffffe}, 655b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x00007ffd, 0xffffffe0}, 656b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xffffffe0, 0xffffff83}, 657b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0xffffffe0, 0x7ffffffd}, 658b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xffff8002, 0x80000000}, 659b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0xffffffff, 0x80000000}, 660b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0x80000001, 0xffff8003}, 661b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0xaaaaaaaa, 0xffffff81}, 662b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0xfffffffd, 0xffffffe0}, 663b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0xffffff80, 0x00007ffe}, 664b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xffff8003, 0xffffffff}, 665b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0xffffff82, 0xffff8000}, 666b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0x00000002, 0x80000000}, 667b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffffff82, 0xffffff81}, 668b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0xcccccccc, 0x00007ffd}, 669b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x00007ffe, 0x7fffffff}, 670b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0xffffff81, 0xaaaaaaaa}, 671b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x0000007e, 0x00000002}, 672b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0x0000007e, 0xffffff80}, 673b8021494Sopenharmony_ci {NoFlag, 0xcccccccc, 0x00007ffe, 0xaaaaaaaa}, 674b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x55555555, 0xffff8003}, 675b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0x00000001, 0xffffff80}, 676b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x55555555, 0x80000001}, 677b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0x00000000, 0x0000007e}, 678b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0xaaaaaaaa, 0x00000000}, 679b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0xffffff81, 0xcccccccc}, 680b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xcccccccc, 0xfffffffd}, 681b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0xffff8000, 0x7ffffffd}, 682b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0xffff8000, 0x80000001}, 683b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0xffff8003, 0xffff8001}, 684b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x00007ffd, 0x80000000}, 685b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x00007fff, 0xcccccccc}, 686b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffff80, 0x00007ffe}, 687b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0x7ffffffd, 0xaaaaaaaa}, 688b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xffff8003, 0x0000007f}, 689b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xfffffffe, 0xfffffffd}, 690b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0xfffffffe, 0x55555555}, 691b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0xfffffffe, 0xfffffffe}, 692b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xffffffff, 0x00007fff}, 693b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x0000007e, 0x00007ffd}, 694b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0xffffffe0, 0x00000002}, 695b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0x00007ffd, 0xffffff81}, 696b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0x00000020, 0xfffffffd}, 697b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x0000007d, 0xffffff83}, 698b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0x55555555, 0x7ffffffe}, 699b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x00007ffe, 0x00000002}, 700b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x7fffffff, 0x00007ffd}, 701b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0xffffffff, 0x00000001}, 702b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0x33333333, 0xffffff83}, 703b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0xcccccccc, 0x33333333}, 704b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0xffffff80, 0x00000001}, 705b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0xcccccccc, 0x00007ffd}, 706b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xfffffffd, 0x7ffffffe}, 707b8021494Sopenharmony_ci {NoFlag, 0x00007ffe, 0x7ffffffe, 0xffffff83}, 708b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0x0000007f, 0xffff8001}, 709b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x00007fff, 0xffffff80}, 710b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x00007fff, 0x7ffffffe}, 711b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0x55555555, 0xffff8001}, 712b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0x00000000, 0xffffff80}, 713b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x00007fff, 0x00000002}, 714b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0x55555555, 0xffff8003}, 715b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0xffff8003, 0x00000020}, 716b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0xffff8002, 0x7fffffff}, 717b8021494Sopenharmony_ci {NoFlag, 0x00007fff, 0x55555555, 0x00000000}, 718b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x00007ffe, 0xffffff81}, 719b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0x80000001, 0x00007ffe}, 720b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0xaaaaaaaa, 0x00000020}, 721b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xfffffffe, 0x00000002}, 722b8021494Sopenharmony_ci {NoFlag, 0xffffff80, 0xffff8000, 0xffff8002}, 723b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0x00007fff, 0xaaaaaaaa}, 724b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0xffffff80, 0x00007ffd}, 725b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0x80000000, 0xffffff80}, 726b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0x55555555, 0xfffffffd}, 727b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffffffff, 0x00007ffd}, 728b8021494Sopenharmony_ci {NoFlag, 0x0000007e, 0xfffffffe, 0xffffff80}, 729b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffffff82, 0xffff8002}, 730b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0x7ffffffe, 0xffff8000}, 731b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0xffff8003, 0xffffff80}, 732b8021494Sopenharmony_ci {NoFlag, 0x7ffffffe, 0x00000020, 0xffffffe0}, 733b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0xffff8001, 0xffffffe0}, 734b8021494Sopenharmony_ci {NoFlag, 0xcccccccc, 0xffff8000, 0xffff8002}, 735b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x00000002, 0x7ffffffe}, 736b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0x0000007f, 0xffffff81}, 737b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0x00000001, 0x7fffffff}, 738b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0x00000000, 0x33333333}, 739b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xffffff83, 0xcccccccc}, 740b8021494Sopenharmony_ci {NoFlag, 0x80000000, 0x00000020, 0x00007ffd}, 741b8021494Sopenharmony_ci {NoFlag, 0xffffff81, 0xcccccccc, 0x00000000}, 742b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xffff8000, 0x00007fff}, 743b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0xcccccccc, 0x00007ffe}, 744b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xfffffffd, 0x7ffffffe}, 745b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0xaaaaaaaa, 0x55555555}, 746b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0xaaaaaaaa, 0xffffff81}, 747b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0xfffffffe, 0xffff8000}, 748b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0xffffffe0, 0xfffffffd}, 749b8021494Sopenharmony_ci {NoFlag, 0x33333333, 0x33333333, 0xfffffffd}, 750b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffff8002, 0x80000001}, 751b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0xffffff83, 0xffffff83}, 752b8021494Sopenharmony_ci {NoFlag, 0xffffff83, 0xffff8002, 0x00000020}, 753b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0x7fffffff, 0x0000007f}, 754b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0xcccccccc, 0xffff8000}, 755b8021494Sopenharmony_ci {NoFlag, 0x00000002, 0x7ffffffe, 0x00007fff}, 756b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0x7ffffffd, 0x7ffffffd}, 757b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xfffffffd, 0xffff8002}, 758b8021494Sopenharmony_ci {NoFlag, 0xfffffffd, 0x00000002, 0x7fffffff}, 759b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0xfffffffe, 0x00000020}, 760b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x0000007e, 0x00007ffe}, 761b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x00007ffd, 0xfffffffd}, 762b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0x0000007f, 0x00000002}, 763b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0x80000000, 0x7ffffffd}, 764b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0x00007fff, 0x80000001}, 765b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0x80000000, 0xaaaaaaaa}, 766b8021494Sopenharmony_ci {NoFlag, 0x00000000, 0xaaaaaaaa, 0xffff8001}, 767b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xffffffe0, 0xffff8003}, 768b8021494Sopenharmony_ci {NoFlag, 0xffffff82, 0xffffffff, 0x00007ffd}, 769b8021494Sopenharmony_ci {NoFlag, 0x00000001, 0xffffff81, 0x00000001}, 770b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0xaaaaaaaa, 0x80000001}, 771b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0xffff8000, 0xffff8000}, 772b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0x00007ffd, 0xaaaaaaaa}, 773b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0x7ffffffe, 0x80000000}, 774b8021494Sopenharmony_ci {NoFlag, 0x00007ffd, 0x00007ffe, 0xffffff81}, 775b8021494Sopenharmony_ci {NoFlag, 0x0000007d, 0x0000007d, 0xffff8002}, 776b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x00000002, 0xffffff81}, 777b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0xfffffffd, 0x7ffffffd}, 778b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0x00000020, 0xffffff80}, 779b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x7fffffff, 0xffffffe0}, 780b8021494Sopenharmony_ci {NoFlag, 0xffff8002, 0xffff8002, 0x0000007f}, 781b8021494Sopenharmony_ci {NoFlag, 0xffff8003, 0x7fffffff, 0xffff8002}, 782b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0xfffffffd, 0x00000020}, 783b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0xffffffe0, 0x0000007e}, 784b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x00000020, 0x7ffffffe}, 785b8021494Sopenharmony_ci {NoFlag, 0xfffffffe, 0x0000007f, 0xffff8000}, 786b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0x80000001, 0x0000007d}, 787b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0x0000007f, 0x00007ffd}, 788b8021494Sopenharmony_ci {NoFlag, 0x55555555, 0xffffffe0, 0xffffff82}, 789b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0x0000007e, 0xffff8002}, 790b8021494Sopenharmony_ci {NoFlag, 0xffffffe0, 0x55555555, 0x0000007f}, 791b8021494Sopenharmony_ci {NoFlag, 0xffff8000, 0x7fffffff, 0x7ffffffe}, 792b8021494Sopenharmony_ci {NoFlag, 0xffffffff, 0xfffffffe, 0xffffff80}, 793b8021494Sopenharmony_ci {NoFlag, 0xffff8001, 0xffff8002, 0x33333333}, 794b8021494Sopenharmony_ci {NoFlag, 0x7ffffffd, 0xfffffffd, 0xaaaaaaaa}, 795b8021494Sopenharmony_ci {NoFlag, 0xaaaaaaaa, 0xfffffffd, 0x00000020}, 796b8021494Sopenharmony_ci {NoFlag, 0x0000007f, 0x00007ffe, 0x55555555}, 797b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x00000020, 0x00000002}, 798b8021494Sopenharmony_ci {NoFlag, 0x80000001, 0xffff8002, 0xfffffffe}, 799b8021494Sopenharmony_ci {NoFlag, 0x7fffffff, 0x80000001, 0xffff8002}, 800b8021494Sopenharmony_ci {NoFlag, 0x00000020, 0x0000007e, 0x33333333}}; 801b8021494Sopenharmony_ci 802b8021494Sopenharmony_cistatic const Inputs kShiftTypes[] = 803b8021494Sopenharmony_ci {{NoFlag, 0xabababab, 0xabababab, 0x00000000}, 804b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x00000001}, 805b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x00000002}, 806b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x00000020}, 807b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x0000007d}, 808b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x0000007e}, 809b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x0000007f}, 810b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x00007ffd}, 811b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x00007ffe}, 812b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x00007fff}, 813b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x33333333}, 814b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x55555555}, 815b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x7ffffffd}, 816b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x7ffffffe}, 817b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x7fffffff}, 818b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x80000000}, 819b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0x80000001}, 820b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xaaaaaaaa}, 821b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xcccccccc}, 822b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xffff8000}, 823b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xffff8001}, 824b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xffff8002}, 825b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xffff8003}, 826b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xffffff80}, 827b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xffffff81}, 828b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xffffff82}, 829b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xffffff83}, 830b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xffffffe0}, 831b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xfffffffd}, 832b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xfffffffe}, 833b8021494Sopenharmony_ci {NoFlag, 0xabababab, 0xabababab, 0xffffffff}}; 834b8021494Sopenharmony_ci 835b8021494Sopenharmony_ci 836b8021494Sopenharmony_ci// A loop will be generated for each element of this array. 837b8021494Sopenharmony_ciconst TestLoopData kTests[] = {{{eq, r0, r0, r0, LSR, 1}, 838b8021494Sopenharmony_ci "eq r0 r0 r0 LSR 1", 839b8021494Sopenharmony_ci "Condition_eq_r0_r0_r0_LSR_1", 840b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 841b8021494Sopenharmony_ci kCondition}, 842b8021494Sopenharmony_ci {{ne, r0, r0, r0, LSR, 1}, 843b8021494Sopenharmony_ci "ne r0 r0 r0 LSR 1", 844b8021494Sopenharmony_ci "Condition_ne_r0_r0_r0_LSR_1", 845b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 846b8021494Sopenharmony_ci kCondition}, 847b8021494Sopenharmony_ci {{cs, r0, r0, r0, LSR, 1}, 848b8021494Sopenharmony_ci "cs r0 r0 r0 LSR 1", 849b8021494Sopenharmony_ci "Condition_cs_r0_r0_r0_LSR_1", 850b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 851b8021494Sopenharmony_ci kCondition}, 852b8021494Sopenharmony_ci {{cc, r0, r0, r0, LSR, 1}, 853b8021494Sopenharmony_ci "cc r0 r0 r0 LSR 1", 854b8021494Sopenharmony_ci "Condition_cc_r0_r0_r0_LSR_1", 855b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 856b8021494Sopenharmony_ci kCondition}, 857b8021494Sopenharmony_ci {{mi, r0, r0, r0, LSR, 1}, 858b8021494Sopenharmony_ci "mi r0 r0 r0 LSR 1", 859b8021494Sopenharmony_ci "Condition_mi_r0_r0_r0_LSR_1", 860b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 861b8021494Sopenharmony_ci kCondition}, 862b8021494Sopenharmony_ci {{pl, r0, r0, r0, LSR, 1}, 863b8021494Sopenharmony_ci "pl r0 r0 r0 LSR 1", 864b8021494Sopenharmony_ci "Condition_pl_r0_r0_r0_LSR_1", 865b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 866b8021494Sopenharmony_ci kCondition}, 867b8021494Sopenharmony_ci {{vs, r0, r0, r0, LSR, 1}, 868b8021494Sopenharmony_ci "vs r0 r0 r0 LSR 1", 869b8021494Sopenharmony_ci "Condition_vs_r0_r0_r0_LSR_1", 870b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 871b8021494Sopenharmony_ci kCondition}, 872b8021494Sopenharmony_ci {{vc, r0, r0, r0, LSR, 1}, 873b8021494Sopenharmony_ci "vc r0 r0 r0 LSR 1", 874b8021494Sopenharmony_ci "Condition_vc_r0_r0_r0_LSR_1", 875b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 876b8021494Sopenharmony_ci kCondition}, 877b8021494Sopenharmony_ci {{hi, r0, r0, r0, LSR, 1}, 878b8021494Sopenharmony_ci "hi r0 r0 r0 LSR 1", 879b8021494Sopenharmony_ci "Condition_hi_r0_r0_r0_LSR_1", 880b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 881b8021494Sopenharmony_ci kCondition}, 882b8021494Sopenharmony_ci {{ls, r0, r0, r0, LSR, 1}, 883b8021494Sopenharmony_ci "ls r0 r0 r0 LSR 1", 884b8021494Sopenharmony_ci "Condition_ls_r0_r0_r0_LSR_1", 885b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 886b8021494Sopenharmony_ci kCondition}, 887b8021494Sopenharmony_ci {{ge, r0, r0, r0, LSR, 1}, 888b8021494Sopenharmony_ci "ge r0 r0 r0 LSR 1", 889b8021494Sopenharmony_ci "Condition_ge_r0_r0_r0_LSR_1", 890b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 891b8021494Sopenharmony_ci kCondition}, 892b8021494Sopenharmony_ci {{lt, r0, r0, r0, LSR, 1}, 893b8021494Sopenharmony_ci "lt r0 r0 r0 LSR 1", 894b8021494Sopenharmony_ci "Condition_lt_r0_r0_r0_LSR_1", 895b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 896b8021494Sopenharmony_ci kCondition}, 897b8021494Sopenharmony_ci {{gt, r0, r0, r0, LSR, 1}, 898b8021494Sopenharmony_ci "gt r0 r0 r0 LSR 1", 899b8021494Sopenharmony_ci "Condition_gt_r0_r0_r0_LSR_1", 900b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 901b8021494Sopenharmony_ci kCondition}, 902b8021494Sopenharmony_ci {{le, r0, r0, r0, LSR, 1}, 903b8021494Sopenharmony_ci "le r0 r0 r0 LSR 1", 904b8021494Sopenharmony_ci "Condition_le_r0_r0_r0_LSR_1", 905b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 906b8021494Sopenharmony_ci kCondition}, 907b8021494Sopenharmony_ci {{al, r0, r0, r0, LSR, 1}, 908b8021494Sopenharmony_ci "al r0 r0 r0 LSR 1", 909b8021494Sopenharmony_ci "Condition_al_r0_r0_r0_LSR_1", 910b8021494Sopenharmony_ci ARRAY_SIZE(kCondition), 911b8021494Sopenharmony_ci kCondition}, 912b8021494Sopenharmony_ci {{al, r3, r3, r4, LSR, 1}, 913b8021494Sopenharmony_ci "al r3 r3 r4 LSR 1", 914b8021494Sopenharmony_ci "RdIsRn_al_r3_r3_r4_LSR_1", 915b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRn), 916b8021494Sopenharmony_ci kRdIsRn}, 917b8021494Sopenharmony_ci {{al, r2, r2, r12, LSR, 1}, 918b8021494Sopenharmony_ci "al r2 r2 r12 LSR 1", 919b8021494Sopenharmony_ci "RdIsRn_al_r2_r2_r12_LSR_1", 920b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRn), 921b8021494Sopenharmony_ci kRdIsRn}, 922b8021494Sopenharmony_ci {{al, r8, r8, r5, LSR, 1}, 923b8021494Sopenharmony_ci "al r8 r8 r5 LSR 1", 924b8021494Sopenharmony_ci "RdIsRn_al_r8_r8_r5_LSR_1", 925b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRn), 926b8021494Sopenharmony_ci kRdIsRn}, 927b8021494Sopenharmony_ci {{al, r14, r14, r0, LSR, 1}, 928b8021494Sopenharmony_ci "al r14 r14 r0 LSR 1", 929b8021494Sopenharmony_ci "RdIsRn_al_r14_r14_r0_LSR_1", 930b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRn), 931b8021494Sopenharmony_ci kRdIsRn}, 932b8021494Sopenharmony_ci {{al, r11, r11, r10, LSR, 1}, 933b8021494Sopenharmony_ci "al r11 r11 r10 LSR 1", 934b8021494Sopenharmony_ci "RdIsRn_al_r11_r11_r10_LSR_1", 935b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRn), 936b8021494Sopenharmony_ci kRdIsRn}, 937b8021494Sopenharmony_ci {{al, r12, r12, r10, LSR, 1}, 938b8021494Sopenharmony_ci "al r12 r12 r10 LSR 1", 939b8021494Sopenharmony_ci "RdIsRn_al_r12_r12_r10_LSR_1", 940b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRn), 941b8021494Sopenharmony_ci kRdIsRn}, 942b8021494Sopenharmony_ci {{al, r4, r4, r8, LSR, 1}, 943b8021494Sopenharmony_ci "al r4 r4 r8 LSR 1", 944b8021494Sopenharmony_ci "RdIsRn_al_r4_r4_r8_LSR_1", 945b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRn), 946b8021494Sopenharmony_ci kRdIsRn}, 947b8021494Sopenharmony_ci {{al, r5, r5, r14, LSR, 1}, 948b8021494Sopenharmony_ci "al r5 r5 r14 LSR 1", 949b8021494Sopenharmony_ci "RdIsRn_al_r5_r5_r14_LSR_1", 950b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRn), 951b8021494Sopenharmony_ci kRdIsRn}, 952b8021494Sopenharmony_ci {{al, r0, r0, r6, LSR, 1}, 953b8021494Sopenharmony_ci "al r0 r0 r6 LSR 1", 954b8021494Sopenharmony_ci "RdIsRn_al_r0_r0_r6_LSR_1", 955b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRn), 956b8021494Sopenharmony_ci kRdIsRn}, 957b8021494Sopenharmony_ci {{al, r12, r12, r1, LSR, 1}, 958b8021494Sopenharmony_ci "al r12 r12 r1 LSR 1", 959b8021494Sopenharmony_ci "RdIsRn_al_r12_r12_r1_LSR_1", 960b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRn), 961b8021494Sopenharmony_ci kRdIsRn}, 962b8021494Sopenharmony_ci {{al, r6, r11, r6, LSR, 1}, 963b8021494Sopenharmony_ci "al r6 r11 r6 LSR 1", 964b8021494Sopenharmony_ci "RdIsRm_al_r6_r11_r6_LSR_1", 965b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRm), 966b8021494Sopenharmony_ci kRdIsRm}, 967b8021494Sopenharmony_ci {{al, r11, r9, r11, LSR, 1}, 968b8021494Sopenharmony_ci "al r11 r9 r11 LSR 1", 969b8021494Sopenharmony_ci "RdIsRm_al_r11_r9_r11_LSR_1", 970b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRm), 971b8021494Sopenharmony_ci kRdIsRm}, 972b8021494Sopenharmony_ci {{al, r0, r8, r0, LSR, 1}, 973b8021494Sopenharmony_ci "al r0 r8 r0 LSR 1", 974b8021494Sopenharmony_ci "RdIsRm_al_r0_r8_r0_LSR_1", 975b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRm), 976b8021494Sopenharmony_ci kRdIsRm}, 977b8021494Sopenharmony_ci {{al, r2, r11, r2, LSR, 1}, 978b8021494Sopenharmony_ci "al r2 r11 r2 LSR 1", 979b8021494Sopenharmony_ci "RdIsRm_al_r2_r11_r2_LSR_1", 980b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRm), 981b8021494Sopenharmony_ci kRdIsRm}, 982b8021494Sopenharmony_ci {{al, r9, r4, r9, LSR, 1}, 983b8021494Sopenharmony_ci "al r9 r4 r9 LSR 1", 984b8021494Sopenharmony_ci "RdIsRm_al_r9_r4_r9_LSR_1", 985b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRm), 986b8021494Sopenharmony_ci kRdIsRm}, 987b8021494Sopenharmony_ci {{al, r14, r10, r14, LSR, 1}, 988b8021494Sopenharmony_ci "al r14 r10 r14 LSR 1", 989b8021494Sopenharmony_ci "RdIsRm_al_r14_r10_r14_LSR_1", 990b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRm), 991b8021494Sopenharmony_ci kRdIsRm}, 992b8021494Sopenharmony_ci {{al, r7, r0, r7, LSR, 1}, 993b8021494Sopenharmony_ci "al r7 r0 r7 LSR 1", 994b8021494Sopenharmony_ci "RdIsRm_al_r7_r0_r7_LSR_1", 995b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRm), 996b8021494Sopenharmony_ci kRdIsRm}, 997b8021494Sopenharmony_ci {{al, r4, r9, r4, LSR, 1}, 998b8021494Sopenharmony_ci "al r4 r9 r4 LSR 1", 999b8021494Sopenharmony_ci "RdIsRm_al_r4_r9_r4_LSR_1", 1000b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRm), 1001b8021494Sopenharmony_ci kRdIsRm}, 1002b8021494Sopenharmony_ci {{al, r6, r10, r6, LSR, 1}, 1003b8021494Sopenharmony_ci "al r6 r10 r6 LSR 1", 1004b8021494Sopenharmony_ci "RdIsRm_al_r6_r10_r6_LSR_1", 1005b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRm), 1006b8021494Sopenharmony_ci kRdIsRm}, 1007b8021494Sopenharmony_ci {{al, r7, r6, r7, LSR, 1}, 1008b8021494Sopenharmony_ci "al r7 r6 r7 LSR 1", 1009b8021494Sopenharmony_ci "RdIsRm_al_r7_r6_r7_LSR_1", 1010b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsRm), 1011b8021494Sopenharmony_ci kRdIsRm}, 1012b8021494Sopenharmony_ci {{al, r3, r9, r10, LSR, 1}, 1013b8021494Sopenharmony_ci "al r3 r9 r10 LSR 1", 1014b8021494Sopenharmony_ci "RdIsNotRnIsNotRm_al_r3_r9_r10_LSR_1", 1015b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsNotRnIsNotRm), 1016b8021494Sopenharmony_ci kRdIsNotRnIsNotRm}, 1017b8021494Sopenharmony_ci {{al, r7, r12, r5, LSR, 1}, 1018b8021494Sopenharmony_ci "al r7 r12 r5 LSR 1", 1019b8021494Sopenharmony_ci "RdIsNotRnIsNotRm_al_r7_r12_r5_LSR_1", 1020b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsNotRnIsNotRm), 1021b8021494Sopenharmony_ci kRdIsNotRnIsNotRm}, 1022b8021494Sopenharmony_ci {{al, r8, r5, r6, LSR, 1}, 1023b8021494Sopenharmony_ci "al r8 r5 r6 LSR 1", 1024b8021494Sopenharmony_ci "RdIsNotRnIsNotRm_al_r8_r5_r6_LSR_1", 1025b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsNotRnIsNotRm), 1026b8021494Sopenharmony_ci kRdIsNotRnIsNotRm}, 1027b8021494Sopenharmony_ci {{al, r0, r6, r0, LSR, 1}, 1028b8021494Sopenharmony_ci "al r0 r6 r0 LSR 1", 1029b8021494Sopenharmony_ci "RdIsNotRnIsNotRm_al_r0_r6_r0_LSR_1", 1030b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsNotRnIsNotRm), 1031b8021494Sopenharmony_ci kRdIsNotRnIsNotRm}, 1032b8021494Sopenharmony_ci {{al, r11, r7, r8, LSR, 1}, 1033b8021494Sopenharmony_ci "al r11 r7 r8 LSR 1", 1034b8021494Sopenharmony_ci "RdIsNotRnIsNotRm_al_r11_r7_r8_LSR_1", 1035b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsNotRnIsNotRm), 1036b8021494Sopenharmony_ci kRdIsNotRnIsNotRm}, 1037b8021494Sopenharmony_ci {{al, r12, r2, r3, LSR, 1}, 1038b8021494Sopenharmony_ci "al r12 r2 r3 LSR 1", 1039b8021494Sopenharmony_ci "RdIsNotRnIsNotRm_al_r12_r2_r3_LSR_1", 1040b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsNotRnIsNotRm), 1041b8021494Sopenharmony_ci kRdIsNotRnIsNotRm}, 1042b8021494Sopenharmony_ci {{al, r7, r4, r10, LSR, 1}, 1043b8021494Sopenharmony_ci "al r7 r4 r10 LSR 1", 1044b8021494Sopenharmony_ci "RdIsNotRnIsNotRm_al_r7_r4_r10_LSR_1", 1045b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsNotRnIsNotRm), 1046b8021494Sopenharmony_ci kRdIsNotRnIsNotRm}, 1047b8021494Sopenharmony_ci {{al, r9, r6, r1, LSR, 1}, 1048b8021494Sopenharmony_ci "al r9 r6 r1 LSR 1", 1049b8021494Sopenharmony_ci "RdIsNotRnIsNotRm_al_r9_r6_r1_LSR_1", 1050b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsNotRnIsNotRm), 1051b8021494Sopenharmony_ci kRdIsNotRnIsNotRm}, 1052b8021494Sopenharmony_ci {{al, r10, r14, r3, LSR, 1}, 1053b8021494Sopenharmony_ci "al r10 r14 r3 LSR 1", 1054b8021494Sopenharmony_ci "RdIsNotRnIsNotRm_al_r10_r14_r3_LSR_1", 1055b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsNotRnIsNotRm), 1056b8021494Sopenharmony_ci kRdIsNotRnIsNotRm}, 1057b8021494Sopenharmony_ci {{al, r14, r3, r6, LSR, 1}, 1058b8021494Sopenharmony_ci "al r14 r3 r6 LSR 1", 1059b8021494Sopenharmony_ci "RdIsNotRnIsNotRm_al_r14_r3_r6_LSR_1", 1060b8021494Sopenharmony_ci ARRAY_SIZE(kRdIsNotRnIsNotRm), 1061b8021494Sopenharmony_ci kRdIsNotRnIsNotRm}, 1062b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 1}, 1063b8021494Sopenharmony_ci "al r0 r1 r2 LSR 1", 1064b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_1", 1065b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1066b8021494Sopenharmony_ci kShiftTypes}, 1067b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 2}, 1068b8021494Sopenharmony_ci "al r0 r1 r2 LSR 2", 1069b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_2", 1070b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1071b8021494Sopenharmony_ci kShiftTypes}, 1072b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 3}, 1073b8021494Sopenharmony_ci "al r0 r1 r2 LSR 3", 1074b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_3", 1075b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1076b8021494Sopenharmony_ci kShiftTypes}, 1077b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 4}, 1078b8021494Sopenharmony_ci "al r0 r1 r2 LSR 4", 1079b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_4", 1080b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1081b8021494Sopenharmony_ci kShiftTypes}, 1082b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 5}, 1083b8021494Sopenharmony_ci "al r0 r1 r2 LSR 5", 1084b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_5", 1085b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1086b8021494Sopenharmony_ci kShiftTypes}, 1087b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 6}, 1088b8021494Sopenharmony_ci "al r0 r1 r2 LSR 6", 1089b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_6", 1090b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1091b8021494Sopenharmony_ci kShiftTypes}, 1092b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 7}, 1093b8021494Sopenharmony_ci "al r0 r1 r2 LSR 7", 1094b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_7", 1095b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1096b8021494Sopenharmony_ci kShiftTypes}, 1097b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 8}, 1098b8021494Sopenharmony_ci "al r0 r1 r2 LSR 8", 1099b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_8", 1100b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1101b8021494Sopenharmony_ci kShiftTypes}, 1102b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 9}, 1103b8021494Sopenharmony_ci "al r0 r1 r2 LSR 9", 1104b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_9", 1105b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1106b8021494Sopenharmony_ci kShiftTypes}, 1107b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 10}, 1108b8021494Sopenharmony_ci "al r0 r1 r2 LSR 10", 1109b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_10", 1110b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1111b8021494Sopenharmony_ci kShiftTypes}, 1112b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 11}, 1113b8021494Sopenharmony_ci "al r0 r1 r2 LSR 11", 1114b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_11", 1115b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1116b8021494Sopenharmony_ci kShiftTypes}, 1117b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 12}, 1118b8021494Sopenharmony_ci "al r0 r1 r2 LSR 12", 1119b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_12", 1120b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1121b8021494Sopenharmony_ci kShiftTypes}, 1122b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 13}, 1123b8021494Sopenharmony_ci "al r0 r1 r2 LSR 13", 1124b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_13", 1125b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1126b8021494Sopenharmony_ci kShiftTypes}, 1127b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 14}, 1128b8021494Sopenharmony_ci "al r0 r1 r2 LSR 14", 1129b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_14", 1130b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1131b8021494Sopenharmony_ci kShiftTypes}, 1132b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 15}, 1133b8021494Sopenharmony_ci "al r0 r1 r2 LSR 15", 1134b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_15", 1135b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1136b8021494Sopenharmony_ci kShiftTypes}, 1137b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 16}, 1138b8021494Sopenharmony_ci "al r0 r1 r2 LSR 16", 1139b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_16", 1140b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1141b8021494Sopenharmony_ci kShiftTypes}, 1142b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 17}, 1143b8021494Sopenharmony_ci "al r0 r1 r2 LSR 17", 1144b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_17", 1145b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1146b8021494Sopenharmony_ci kShiftTypes}, 1147b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 18}, 1148b8021494Sopenharmony_ci "al r0 r1 r2 LSR 18", 1149b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_18", 1150b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1151b8021494Sopenharmony_ci kShiftTypes}, 1152b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 19}, 1153b8021494Sopenharmony_ci "al r0 r1 r2 LSR 19", 1154b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_19", 1155b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1156b8021494Sopenharmony_ci kShiftTypes}, 1157b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 20}, 1158b8021494Sopenharmony_ci "al r0 r1 r2 LSR 20", 1159b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_20", 1160b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1161b8021494Sopenharmony_ci kShiftTypes}, 1162b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 21}, 1163b8021494Sopenharmony_ci "al r0 r1 r2 LSR 21", 1164b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_21", 1165b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1166b8021494Sopenharmony_ci kShiftTypes}, 1167b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 22}, 1168b8021494Sopenharmony_ci "al r0 r1 r2 LSR 22", 1169b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_22", 1170b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1171b8021494Sopenharmony_ci kShiftTypes}, 1172b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 23}, 1173b8021494Sopenharmony_ci "al r0 r1 r2 LSR 23", 1174b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_23", 1175b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1176b8021494Sopenharmony_ci kShiftTypes}, 1177b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 24}, 1178b8021494Sopenharmony_ci "al r0 r1 r2 LSR 24", 1179b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_24", 1180b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1181b8021494Sopenharmony_ci kShiftTypes}, 1182b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 25}, 1183b8021494Sopenharmony_ci "al r0 r1 r2 LSR 25", 1184b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_25", 1185b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1186b8021494Sopenharmony_ci kShiftTypes}, 1187b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 26}, 1188b8021494Sopenharmony_ci "al r0 r1 r2 LSR 26", 1189b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_26", 1190b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1191b8021494Sopenharmony_ci kShiftTypes}, 1192b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 27}, 1193b8021494Sopenharmony_ci "al r0 r1 r2 LSR 27", 1194b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_27", 1195b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1196b8021494Sopenharmony_ci kShiftTypes}, 1197b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 28}, 1198b8021494Sopenharmony_ci "al r0 r1 r2 LSR 28", 1199b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_28", 1200b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1201b8021494Sopenharmony_ci kShiftTypes}, 1202b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 29}, 1203b8021494Sopenharmony_ci "al r0 r1 r2 LSR 29", 1204b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_29", 1205b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1206b8021494Sopenharmony_ci kShiftTypes}, 1207b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 30}, 1208b8021494Sopenharmony_ci "al r0 r1 r2 LSR 30", 1209b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_30", 1210b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1211b8021494Sopenharmony_ci kShiftTypes}, 1212b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 31}, 1213b8021494Sopenharmony_ci "al r0 r1 r2 LSR 31", 1214b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_31", 1215b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1216b8021494Sopenharmony_ci kShiftTypes}, 1217b8021494Sopenharmony_ci {{al, r0, r1, r2, LSR, 32}, 1218b8021494Sopenharmony_ci "al r0 r1 r2 LSR 32", 1219b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_LSR_32", 1220b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1221b8021494Sopenharmony_ci kShiftTypes}, 1222b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 1}, 1223b8021494Sopenharmony_ci "al r0 r1 r2 ASR 1", 1224b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_1", 1225b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1226b8021494Sopenharmony_ci kShiftTypes}, 1227b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 2}, 1228b8021494Sopenharmony_ci "al r0 r1 r2 ASR 2", 1229b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_2", 1230b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1231b8021494Sopenharmony_ci kShiftTypes}, 1232b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 3}, 1233b8021494Sopenharmony_ci "al r0 r1 r2 ASR 3", 1234b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_3", 1235b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1236b8021494Sopenharmony_ci kShiftTypes}, 1237b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 4}, 1238b8021494Sopenharmony_ci "al r0 r1 r2 ASR 4", 1239b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_4", 1240b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1241b8021494Sopenharmony_ci kShiftTypes}, 1242b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 5}, 1243b8021494Sopenharmony_ci "al r0 r1 r2 ASR 5", 1244b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_5", 1245b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1246b8021494Sopenharmony_ci kShiftTypes}, 1247b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 6}, 1248b8021494Sopenharmony_ci "al r0 r1 r2 ASR 6", 1249b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_6", 1250b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1251b8021494Sopenharmony_ci kShiftTypes}, 1252b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 7}, 1253b8021494Sopenharmony_ci "al r0 r1 r2 ASR 7", 1254b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_7", 1255b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1256b8021494Sopenharmony_ci kShiftTypes}, 1257b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 8}, 1258b8021494Sopenharmony_ci "al r0 r1 r2 ASR 8", 1259b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_8", 1260b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1261b8021494Sopenharmony_ci kShiftTypes}, 1262b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 9}, 1263b8021494Sopenharmony_ci "al r0 r1 r2 ASR 9", 1264b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_9", 1265b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1266b8021494Sopenharmony_ci kShiftTypes}, 1267b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 10}, 1268b8021494Sopenharmony_ci "al r0 r1 r2 ASR 10", 1269b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_10", 1270b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1271b8021494Sopenharmony_ci kShiftTypes}, 1272b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 11}, 1273b8021494Sopenharmony_ci "al r0 r1 r2 ASR 11", 1274b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_11", 1275b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1276b8021494Sopenharmony_ci kShiftTypes}, 1277b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 12}, 1278b8021494Sopenharmony_ci "al r0 r1 r2 ASR 12", 1279b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_12", 1280b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1281b8021494Sopenharmony_ci kShiftTypes}, 1282b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 13}, 1283b8021494Sopenharmony_ci "al r0 r1 r2 ASR 13", 1284b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_13", 1285b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1286b8021494Sopenharmony_ci kShiftTypes}, 1287b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 14}, 1288b8021494Sopenharmony_ci "al r0 r1 r2 ASR 14", 1289b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_14", 1290b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1291b8021494Sopenharmony_ci kShiftTypes}, 1292b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 15}, 1293b8021494Sopenharmony_ci "al r0 r1 r2 ASR 15", 1294b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_15", 1295b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1296b8021494Sopenharmony_ci kShiftTypes}, 1297b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 16}, 1298b8021494Sopenharmony_ci "al r0 r1 r2 ASR 16", 1299b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_16", 1300b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1301b8021494Sopenharmony_ci kShiftTypes}, 1302b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 17}, 1303b8021494Sopenharmony_ci "al r0 r1 r2 ASR 17", 1304b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_17", 1305b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1306b8021494Sopenharmony_ci kShiftTypes}, 1307b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 18}, 1308b8021494Sopenharmony_ci "al r0 r1 r2 ASR 18", 1309b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_18", 1310b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1311b8021494Sopenharmony_ci kShiftTypes}, 1312b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 19}, 1313b8021494Sopenharmony_ci "al r0 r1 r2 ASR 19", 1314b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_19", 1315b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1316b8021494Sopenharmony_ci kShiftTypes}, 1317b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 20}, 1318b8021494Sopenharmony_ci "al r0 r1 r2 ASR 20", 1319b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_20", 1320b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1321b8021494Sopenharmony_ci kShiftTypes}, 1322b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 21}, 1323b8021494Sopenharmony_ci "al r0 r1 r2 ASR 21", 1324b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_21", 1325b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1326b8021494Sopenharmony_ci kShiftTypes}, 1327b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 22}, 1328b8021494Sopenharmony_ci "al r0 r1 r2 ASR 22", 1329b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_22", 1330b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1331b8021494Sopenharmony_ci kShiftTypes}, 1332b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 23}, 1333b8021494Sopenharmony_ci "al r0 r1 r2 ASR 23", 1334b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_23", 1335b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1336b8021494Sopenharmony_ci kShiftTypes}, 1337b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 24}, 1338b8021494Sopenharmony_ci "al r0 r1 r2 ASR 24", 1339b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_24", 1340b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1341b8021494Sopenharmony_ci kShiftTypes}, 1342b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 25}, 1343b8021494Sopenharmony_ci "al r0 r1 r2 ASR 25", 1344b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_25", 1345b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1346b8021494Sopenharmony_ci kShiftTypes}, 1347b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 26}, 1348b8021494Sopenharmony_ci "al r0 r1 r2 ASR 26", 1349b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_26", 1350b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1351b8021494Sopenharmony_ci kShiftTypes}, 1352b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 27}, 1353b8021494Sopenharmony_ci "al r0 r1 r2 ASR 27", 1354b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_27", 1355b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1356b8021494Sopenharmony_ci kShiftTypes}, 1357b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 28}, 1358b8021494Sopenharmony_ci "al r0 r1 r2 ASR 28", 1359b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_28", 1360b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1361b8021494Sopenharmony_ci kShiftTypes}, 1362b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 29}, 1363b8021494Sopenharmony_ci "al r0 r1 r2 ASR 29", 1364b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_29", 1365b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1366b8021494Sopenharmony_ci kShiftTypes}, 1367b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 30}, 1368b8021494Sopenharmony_ci "al r0 r1 r2 ASR 30", 1369b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_30", 1370b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1371b8021494Sopenharmony_ci kShiftTypes}, 1372b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 31}, 1373b8021494Sopenharmony_ci "al r0 r1 r2 ASR 31", 1374b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_31", 1375b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1376b8021494Sopenharmony_ci kShiftTypes}, 1377b8021494Sopenharmony_ci {{al, r0, r1, r2, ASR, 32}, 1378b8021494Sopenharmony_ci "al r0 r1 r2 ASR 32", 1379b8021494Sopenharmony_ci "ShiftTypes_al_r0_r1_r2_ASR_32", 1380b8021494Sopenharmony_ci ARRAY_SIZE(kShiftTypes), 1381b8021494Sopenharmony_ci kShiftTypes}}; 1382b8021494Sopenharmony_ci 1383b8021494Sopenharmony_ci// We record all inputs to the instructions as outputs. This way, we also check 1384b8021494Sopenharmony_ci// that what shouldn't change didn't change. 1385b8021494Sopenharmony_cistruct TestResult { 1386b8021494Sopenharmony_ci size_t output_size; 1387b8021494Sopenharmony_ci const Inputs* outputs; 1388b8021494Sopenharmony_ci}; 1389b8021494Sopenharmony_ci 1390b8021494Sopenharmony_ci// These headers each contain an array of `TestResult` with the reference output 1391b8021494Sopenharmony_ci// values. The reference arrays are names `kReference{mnemonic}`. 1392b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-adc-t32.h" 1393b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-adcs-t32.h" 1394b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-add-t32.h" 1395b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-adds-t32.h" 1396b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-and-t32.h" 1397b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-ands-t32.h" 1398b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-bic-t32.h" 1399b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-bics-t32.h" 1400b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-eor-t32.h" 1401b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-eors-t32.h" 1402b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-orn-t32.h" 1403b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-orns-t32.h" 1404b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-orr-t32.h" 1405b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-orrs-t32.h" 1406b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-rsb-t32.h" 1407b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-rsbs-t32.h" 1408b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-sbc-t32.h" 1409b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-sbcs-t32.h" 1410b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-sub-t32.h" 1411b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-rd-rn-operand-rm-shift-amount-1to32-subs-t32.h" 1412b8021494Sopenharmony_ci 1413b8021494Sopenharmony_ci 1414b8021494Sopenharmony_ci// The maximum number of errors to report in detail for each test. 1415b8021494Sopenharmony_ciconst unsigned kErrorReportLimit = 8; 1416b8021494Sopenharmony_ci 1417b8021494Sopenharmony_citypedef void (MacroAssembler::*Fn)(Condition cond, 1418b8021494Sopenharmony_ci Register rd, 1419b8021494Sopenharmony_ci Register rn, 1420b8021494Sopenharmony_ci const Operand& op); 1421b8021494Sopenharmony_ci 1422b8021494Sopenharmony_civoid TestHelper(Fn instruction, 1423b8021494Sopenharmony_ci const char* mnemonic, 1424b8021494Sopenharmony_ci const TestResult reference[]) { 1425b8021494Sopenharmony_ci SETUP(); 1426b8021494Sopenharmony_ci masm.UseT32(); 1427b8021494Sopenharmony_ci START(); 1428b8021494Sopenharmony_ci 1429b8021494Sopenharmony_ci // Data to compare to `reference`. 1430b8021494Sopenharmony_ci TestResult* results[ARRAY_SIZE(kTests)]; 1431b8021494Sopenharmony_ci 1432b8021494Sopenharmony_ci // Test cases for memory bound instructions may allocate a buffer and save its 1433b8021494Sopenharmony_ci // address in this array. 1434b8021494Sopenharmony_ci byte* scratch_memory_buffers[ARRAY_SIZE(kTests)]; 1435b8021494Sopenharmony_ci 1436b8021494Sopenharmony_ci // Generate a loop for each element in `kTests`. Each loop tests one specific 1437b8021494Sopenharmony_ci // instruction. 1438b8021494Sopenharmony_ci for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) { 1439b8021494Sopenharmony_ci // Allocate results on the heap for this test. 1440b8021494Sopenharmony_ci results[i] = new TestResult; 1441b8021494Sopenharmony_ci results[i]->outputs = new Inputs[kTests[i].input_size]; 1442b8021494Sopenharmony_ci results[i]->output_size = kTests[i].input_size; 1443b8021494Sopenharmony_ci 1444b8021494Sopenharmony_ci size_t input_stride = sizeof(kTests[i].inputs[0]) * kTests[i].input_size; 1445b8021494Sopenharmony_ci VIXL_ASSERT(IsUint32(input_stride)); 1446b8021494Sopenharmony_ci 1447b8021494Sopenharmony_ci scratch_memory_buffers[i] = NULL; 1448b8021494Sopenharmony_ci 1449b8021494Sopenharmony_ci Label loop; 1450b8021494Sopenharmony_ci UseScratchRegisterScope scratch_registers(&masm); 1451b8021494Sopenharmony_ci // Include all registers from r0 ro r12. 1452b8021494Sopenharmony_ci scratch_registers.Include(RegisterList(0x1fff)); 1453b8021494Sopenharmony_ci 1454b8021494Sopenharmony_ci // Values to pass to the macro-assembler. 1455b8021494Sopenharmony_ci Condition cond = kTests[i].operands.cond; 1456b8021494Sopenharmony_ci Register rd = kTests[i].operands.rd; 1457b8021494Sopenharmony_ci Register rn = kTests[i].operands.rn; 1458b8021494Sopenharmony_ci Register rm = kTests[i].operands.rm; 1459b8021494Sopenharmony_ci ShiftType shift = kTests[i].operands.shift; 1460b8021494Sopenharmony_ci uint32_t amount = kTests[i].operands.amount; 1461b8021494Sopenharmony_ci Operand op(rm, shift, amount); 1462b8021494Sopenharmony_ci scratch_registers.Exclude(rd); 1463b8021494Sopenharmony_ci scratch_registers.Exclude(rn); 1464b8021494Sopenharmony_ci scratch_registers.Exclude(rm); 1465b8021494Sopenharmony_ci 1466b8021494Sopenharmony_ci // Allocate reserved registers for our own use. 1467b8021494Sopenharmony_ci Register input_ptr = scratch_registers.Acquire(); 1468b8021494Sopenharmony_ci Register input_end = scratch_registers.Acquire(); 1469b8021494Sopenharmony_ci Register result_ptr = scratch_registers.Acquire(); 1470b8021494Sopenharmony_ci 1471b8021494Sopenharmony_ci // Initialize `input_ptr` to the first element and `input_end` the address 1472b8021494Sopenharmony_ci // after the array. 1473b8021494Sopenharmony_ci __ Mov(input_ptr, Operand::From(kTests[i].inputs)); 1474b8021494Sopenharmony_ci __ Add(input_end, input_ptr, static_cast<uint32_t>(input_stride)); 1475b8021494Sopenharmony_ci __ Mov(result_ptr, Operand::From(results[i]->outputs)); 1476b8021494Sopenharmony_ci __ Bind(&loop); 1477b8021494Sopenharmony_ci 1478b8021494Sopenharmony_ci { 1479b8021494Sopenharmony_ci UseScratchRegisterScope temp_registers(&masm); 1480b8021494Sopenharmony_ci Register nzcv_bits = temp_registers.Acquire(); 1481b8021494Sopenharmony_ci Register saved_q_bit = temp_registers.Acquire(); 1482b8021494Sopenharmony_ci // Save the `Q` bit flag. 1483b8021494Sopenharmony_ci __ Mrs(saved_q_bit, APSR); 1484b8021494Sopenharmony_ci __ And(saved_q_bit, saved_q_bit, QFlag); 1485b8021494Sopenharmony_ci // Set the `NZCV` and `Q` flags together. 1486b8021494Sopenharmony_ci __ Ldr(nzcv_bits, MemOperand(input_ptr, offsetof(Inputs, apsr))); 1487b8021494Sopenharmony_ci __ Orr(nzcv_bits, nzcv_bits, saved_q_bit); 1488b8021494Sopenharmony_ci __ Msr(APSR_nzcvq, nzcv_bits); 1489b8021494Sopenharmony_ci } 1490b8021494Sopenharmony_ci __ Ldr(rd, MemOperand(input_ptr, offsetof(Inputs, rd))); 1491b8021494Sopenharmony_ci __ Ldr(rn, MemOperand(input_ptr, offsetof(Inputs, rn))); 1492b8021494Sopenharmony_ci __ Ldr(rm, MemOperand(input_ptr, offsetof(Inputs, rm))); 1493b8021494Sopenharmony_ci 1494b8021494Sopenharmony_ci (masm.*instruction)(cond, rd, rn, op); 1495b8021494Sopenharmony_ci 1496b8021494Sopenharmony_ci { 1497b8021494Sopenharmony_ci UseScratchRegisterScope temp_registers(&masm); 1498b8021494Sopenharmony_ci Register nzcv_bits = temp_registers.Acquire(); 1499b8021494Sopenharmony_ci __ Mrs(nzcv_bits, APSR); 1500b8021494Sopenharmony_ci // Only record the NZCV bits. 1501b8021494Sopenharmony_ci __ And(nzcv_bits, nzcv_bits, NZCVFlag); 1502b8021494Sopenharmony_ci __ Str(nzcv_bits, MemOperand(result_ptr, offsetof(Inputs, apsr))); 1503b8021494Sopenharmony_ci } 1504b8021494Sopenharmony_ci __ Str(rd, MemOperand(result_ptr, offsetof(Inputs, rd))); 1505b8021494Sopenharmony_ci __ Str(rn, MemOperand(result_ptr, offsetof(Inputs, rn))); 1506b8021494Sopenharmony_ci __ Str(rm, MemOperand(result_ptr, offsetof(Inputs, rm))); 1507b8021494Sopenharmony_ci 1508b8021494Sopenharmony_ci // Advance the result pointer. 1509b8021494Sopenharmony_ci __ Add(result_ptr, result_ptr, Operand::From(sizeof(kTests[i].inputs[0]))); 1510b8021494Sopenharmony_ci // Loop back until `input_ptr` is lower than `input_base`. 1511b8021494Sopenharmony_ci __ Add(input_ptr, input_ptr, Operand::From(sizeof(kTests[i].inputs[0]))); 1512b8021494Sopenharmony_ci __ Cmp(input_ptr, input_end); 1513b8021494Sopenharmony_ci __ B(ne, &loop); 1514b8021494Sopenharmony_ci } 1515b8021494Sopenharmony_ci 1516b8021494Sopenharmony_ci END(); 1517b8021494Sopenharmony_ci 1518b8021494Sopenharmony_ci RUN(); 1519b8021494Sopenharmony_ci 1520b8021494Sopenharmony_ci if (Test::generate_test_trace()) { 1521b8021494Sopenharmony_ci // Print the results. 1522b8021494Sopenharmony_ci for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) { 1523b8021494Sopenharmony_ci printf("const Inputs kOutputs_%s_%s[] = {\n", 1524b8021494Sopenharmony_ci mnemonic, 1525b8021494Sopenharmony_ci kTests[i].identifier); 1526b8021494Sopenharmony_ci for (size_t j = 0; j < results[i]->output_size; j++) { 1527b8021494Sopenharmony_ci printf(" { "); 1528b8021494Sopenharmony_ci printf("0x%08" PRIx32, results[i]->outputs[j].apsr); 1529b8021494Sopenharmony_ci printf(", "); 1530b8021494Sopenharmony_ci printf("0x%08" PRIx32, results[i]->outputs[j].rd); 1531b8021494Sopenharmony_ci printf(", "); 1532b8021494Sopenharmony_ci printf("0x%08" PRIx32, results[i]->outputs[j].rn); 1533b8021494Sopenharmony_ci printf(", "); 1534b8021494Sopenharmony_ci printf("0x%08" PRIx32, results[i]->outputs[j].rm); 1535b8021494Sopenharmony_ci printf(" },\n"); 1536b8021494Sopenharmony_ci } 1537b8021494Sopenharmony_ci printf("};\n"); 1538b8021494Sopenharmony_ci } 1539b8021494Sopenharmony_ci printf("const TestResult kReference%s[] = {\n", mnemonic); 1540b8021494Sopenharmony_ci for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) { 1541b8021494Sopenharmony_ci printf(" {\n"); 1542b8021494Sopenharmony_ci printf(" ARRAY_SIZE(kOutputs_%s_%s),\n", 1543b8021494Sopenharmony_ci mnemonic, 1544b8021494Sopenharmony_ci kTests[i].identifier); 1545b8021494Sopenharmony_ci printf(" kOutputs_%s_%s,\n", mnemonic, kTests[i].identifier); 1546b8021494Sopenharmony_ci printf(" },\n"); 1547b8021494Sopenharmony_ci } 1548b8021494Sopenharmony_ci printf("};\n"); 1549b8021494Sopenharmony_ci } else if (kCheckSimulatorTestResults) { 1550b8021494Sopenharmony_ci // Check the results. 1551b8021494Sopenharmony_ci unsigned total_error_count = 0; 1552b8021494Sopenharmony_ci for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) { 1553b8021494Sopenharmony_ci bool instruction_has_errors = false; 1554b8021494Sopenharmony_ci for (size_t j = 0; j < kTests[i].input_size; j++) { 1555b8021494Sopenharmony_ci uint32_t apsr = results[i]->outputs[j].apsr; 1556b8021494Sopenharmony_ci uint32_t rd = results[i]->outputs[j].rd; 1557b8021494Sopenharmony_ci uint32_t rn = results[i]->outputs[j].rn; 1558b8021494Sopenharmony_ci uint32_t rm = results[i]->outputs[j].rm; 1559b8021494Sopenharmony_ci uint32_t apsr_input = kTests[i].inputs[j].apsr; 1560b8021494Sopenharmony_ci uint32_t rd_input = kTests[i].inputs[j].rd; 1561b8021494Sopenharmony_ci uint32_t rn_input = kTests[i].inputs[j].rn; 1562b8021494Sopenharmony_ci uint32_t rm_input = kTests[i].inputs[j].rm; 1563b8021494Sopenharmony_ci uint32_t apsr_ref = reference[i].outputs[j].apsr; 1564b8021494Sopenharmony_ci uint32_t rd_ref = reference[i].outputs[j].rd; 1565b8021494Sopenharmony_ci uint32_t rn_ref = reference[i].outputs[j].rn; 1566b8021494Sopenharmony_ci uint32_t rm_ref = reference[i].outputs[j].rm; 1567b8021494Sopenharmony_ci 1568b8021494Sopenharmony_ci if (((apsr != apsr_ref) || (rd != rd_ref) || (rn != rn_ref) || 1569b8021494Sopenharmony_ci (rm != rm_ref)) && 1570b8021494Sopenharmony_ci (++total_error_count <= kErrorReportLimit)) { 1571b8021494Sopenharmony_ci // Print the instruction once even if it triggered multiple failures. 1572b8021494Sopenharmony_ci if (!instruction_has_errors) { 1573b8021494Sopenharmony_ci printf("Error(s) when testing \"%s %s\":\n", 1574b8021494Sopenharmony_ci mnemonic, 1575b8021494Sopenharmony_ci kTests[i].operands_description); 1576b8021494Sopenharmony_ci instruction_has_errors = true; 1577b8021494Sopenharmony_ci } 1578b8021494Sopenharmony_ci // Print subsequent errors. 1579b8021494Sopenharmony_ci printf(" Input: "); 1580b8021494Sopenharmony_ci printf("0x%08" PRIx32, apsr_input); 1581b8021494Sopenharmony_ci printf(", "); 1582b8021494Sopenharmony_ci printf("0x%08" PRIx32, rd_input); 1583b8021494Sopenharmony_ci printf(", "); 1584b8021494Sopenharmony_ci printf("0x%08" PRIx32, rn_input); 1585b8021494Sopenharmony_ci printf(", "); 1586b8021494Sopenharmony_ci printf("0x%08" PRIx32, rm_input); 1587b8021494Sopenharmony_ci printf("\n"); 1588b8021494Sopenharmony_ci printf(" Expected: "); 1589b8021494Sopenharmony_ci printf("0x%08" PRIx32, apsr_ref); 1590b8021494Sopenharmony_ci printf(", "); 1591b8021494Sopenharmony_ci printf("0x%08" PRIx32, rd_ref); 1592b8021494Sopenharmony_ci printf(", "); 1593b8021494Sopenharmony_ci printf("0x%08" PRIx32, rn_ref); 1594b8021494Sopenharmony_ci printf(", "); 1595b8021494Sopenharmony_ci printf("0x%08" PRIx32, rm_ref); 1596b8021494Sopenharmony_ci printf("\n"); 1597b8021494Sopenharmony_ci printf(" Found: "); 1598b8021494Sopenharmony_ci printf("0x%08" PRIx32, apsr); 1599b8021494Sopenharmony_ci printf(", "); 1600b8021494Sopenharmony_ci printf("0x%08" PRIx32, rd); 1601b8021494Sopenharmony_ci printf(", "); 1602b8021494Sopenharmony_ci printf("0x%08" PRIx32, rn); 1603b8021494Sopenharmony_ci printf(", "); 1604b8021494Sopenharmony_ci printf("0x%08" PRIx32, rm); 1605b8021494Sopenharmony_ci printf("\n\n"); 1606b8021494Sopenharmony_ci } 1607b8021494Sopenharmony_ci } 1608b8021494Sopenharmony_ci } 1609b8021494Sopenharmony_ci 1610b8021494Sopenharmony_ci if (total_error_count > kErrorReportLimit) { 1611b8021494Sopenharmony_ci printf("%u other errors follow.\n", 1612b8021494Sopenharmony_ci total_error_count - kErrorReportLimit); 1613b8021494Sopenharmony_ci } 1614b8021494Sopenharmony_ci VIXL_CHECK(total_error_count == 0); 1615b8021494Sopenharmony_ci } else { 1616b8021494Sopenharmony_ci VIXL_WARNING("Assembled the code, but did not run anything.\n"); 1617b8021494Sopenharmony_ci } 1618b8021494Sopenharmony_ci 1619b8021494Sopenharmony_ci for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) { 1620b8021494Sopenharmony_ci delete[] results[i]->outputs; 1621b8021494Sopenharmony_ci delete results[i]; 1622b8021494Sopenharmony_ci delete[] scratch_memory_buffers[i]; 1623b8021494Sopenharmony_ci } 1624b8021494Sopenharmony_ci} 1625b8021494Sopenharmony_ci 1626b8021494Sopenharmony_ci// Instantiate tests for each instruction in the list. 1627b8021494Sopenharmony_ci// TODO: Remove this limitation by having a sandboxing mechanism. 1628b8021494Sopenharmony_ci#if defined(VIXL_HOST_POINTER_32) 1629b8021494Sopenharmony_ci#define TEST(mnemonic) \ 1630b8021494Sopenharmony_ci void Test_##mnemonic() { \ 1631b8021494Sopenharmony_ci TestHelper(&MacroAssembler::mnemonic, #mnemonic, kReference##mnemonic); \ 1632b8021494Sopenharmony_ci } \ 1633b8021494Sopenharmony_ci Test test_##mnemonic( \ 1634b8021494Sopenharmony_ci "AARCH32_SIMULATOR_COND_RD_RN_OPERAND_RM_SHIFT_AMOUNT_1TO32_" #mnemonic \ 1635b8021494Sopenharmony_ci "_T32", \ 1636b8021494Sopenharmony_ci &Test_##mnemonic); 1637b8021494Sopenharmony_ci#else 1638b8021494Sopenharmony_ci#define TEST(mnemonic) \ 1639b8021494Sopenharmony_ci void Test_##mnemonic() { \ 1640b8021494Sopenharmony_ci VIXL_WARNING("This test can only run on a 32-bit host.\n"); \ 1641b8021494Sopenharmony_ci USE(TestHelper); \ 1642b8021494Sopenharmony_ci } \ 1643b8021494Sopenharmony_ci Test test_##mnemonic( \ 1644b8021494Sopenharmony_ci "AARCH32_SIMULATOR_COND_RD_RN_OPERAND_RM_SHIFT_AMOUNT_1TO32_" #mnemonic \ 1645b8021494Sopenharmony_ci "_T32", \ 1646b8021494Sopenharmony_ci &Test_##mnemonic); 1647b8021494Sopenharmony_ci#endif 1648b8021494Sopenharmony_ci 1649b8021494Sopenharmony_ciFOREACH_INSTRUCTION(TEST) 1650b8021494Sopenharmony_ci#undef TEST 1651b8021494Sopenharmony_ci 1652b8021494Sopenharmony_ci} // namespace 1653b8021494Sopenharmony_ci#endif 1654b8021494Sopenharmony_ci 1655b8021494Sopenharmony_ci} // namespace aarch32 1656b8021494Sopenharmony_ci} // namespace vixl 1657