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