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