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(Vadd) \ 117b8021494Sopenharmony_ci M(Vsub) 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_A32 128b8021494Sopenharmony_cinamespace { 129b8021494Sopenharmony_ci 130b8021494Sopenharmony_ci// Values to be passed to the assembler to produce the instruction under test. 131b8021494Sopenharmony_cistruct Operands { 132b8021494Sopenharmony_ci DataType dt; 133b8021494Sopenharmony_ci DRegister rd; 134b8021494Sopenharmony_ci DRegister rn; 135b8021494Sopenharmony_ci DRegister rm; 136b8021494Sopenharmony_ci}; 137b8021494Sopenharmony_ci 138b8021494Sopenharmony_ci// Input data to feed to the instruction. 139b8021494Sopenharmony_cistruct Inputs { 140b8021494Sopenharmony_ci uint32_t fpscr; 141b8021494Sopenharmony_ci uint64_t rd; 142b8021494Sopenharmony_ci uint64_t rn; 143b8021494Sopenharmony_ci uint64_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 kFloats[] = 162b8021494Sopenharmony_ci {{0x0, 0x3fefffffffffffff, 0x000fffffffffffff, 0xfff0000000000000}, 163b8021494Sopenharmony_ci {0x0, 0xffefffffffffffff, 0xbfe0000000000000, 0x3ff0000000000000}, 164b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0x3ff0000000000001, 0x0000000000000000}, 165b8021494Sopenharmony_ci {0x0, 0xbff0000000000000, 0x4024000000000000, 0x4024000000000000}, 166b8021494Sopenharmony_ci {0x0, 0xbff0000000000000, 0x3fdfffffffffffff, 0x0000000000000000}, 167b8021494Sopenharmony_ci {0x0, 0x3fefffffffffffff, 0x7fefffffffffffff, 0xfff0000000000000}, 168b8021494Sopenharmony_ci {0x0, 0xbfe0000000000000, 0xc024000000000000, 0x7ff123456789abcd}, 169b8021494Sopenharmony_ci {0x0, 0x000fffffffffffff, 0x3ff0000000000001, 0xbff0000000000001}, 170b8021494Sopenharmony_ci {0x0, 0x0000000000000001, 0x0000000000000000, 0x3fdfffffffffffff}, 171b8021494Sopenharmony_ci {0x0, 0x8000000000000000, 0xfff123456789abcd, 0xfff0000000000000}, 172b8021494Sopenharmony_ci {0x0, 0xfff923456789abcd, 0xc024000000000000, 0x3ff0000000000000}, 173b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0x3ff8000000000000, 0x3fdfffffffffffff}, 174b8021494Sopenharmony_ci {0x0, 0x7ff923456789abcd, 0x3ff0000000000001, 0x8000000000000001}, 175b8021494Sopenharmony_ci {0x0, 0x0010000000000000, 0x0000000000000001, 0xbff0000000000000}, 176b8021494Sopenharmony_ci {0x0, 0x3fefffffffffffff, 0x3fdfffffffffffff, 0xfff0000000000000}, 177b8021494Sopenharmony_ci {0x0, 0x3fe0000000000001, 0x800fffffffffffff, 0xfff123456789abcd}, 178b8021494Sopenharmony_ci {0x0, 0xffefffffffffffff, 0x3ff0000000000001, 0x800fffffffffffff}, 179b8021494Sopenharmony_ci {0x0, 0x0010000000000000, 0xbfe0000000000001, 0xbfe0000000000000}, 180b8021494Sopenharmony_ci {0x0, 0xc024000000000000, 0x0000000000000000, 0xbff0000000000000}, 181b8021494Sopenharmony_ci {0x0, 0xfff0000000000000, 0x8000000000000001, 0x7ff0000000000000}, 182b8021494Sopenharmony_ci {0x0, 0x3fdfffffffffffff, 0xbfdfffffffffffff, 0x3fe0000000000001}, 183b8021494Sopenharmony_ci {0x0, 0x4024000000000000, 0x000fffffffffffff, 0x7ff923456789abcd}, 184b8021494Sopenharmony_ci {0x0, 0xfff8000000000000, 0xbfe0000000000001, 0x3ff0000000000001}, 185b8021494Sopenharmony_ci {0x0, 0x7fefffffffffffff, 0xbfe0000000000001, 0x3ff0000000000000}, 186b8021494Sopenharmony_ci {0x0, 0x7fefffffffffffff, 0xbfe0000000000001, 0xfff123456789abcd}, 187b8021494Sopenharmony_ci {0x0, 0xfff8000000000000, 0x7ff0000000000000, 0x7fefffffffffffff}, 188b8021494Sopenharmony_ci {0x0, 0xbfe0000000000000, 0x7ff123456789abcd, 0x800123456789abcd}, 189b8021494Sopenharmony_ci {0x0, 0x3ff0000000000001, 0xffefffffffffffff, 0xfff923456789abcd}, 190b8021494Sopenharmony_ci {0x0, 0x3fe0000000000000, 0x0000000000000001, 0x3ff8000000000000}, 191b8021494Sopenharmony_ci {0x0, 0x800123456789abcd, 0xbfe0000000000001, 0x8000000000000000}, 192b8021494Sopenharmony_ci {0x0, 0xbfe0000000000000, 0x3fe0000000000000, 0x3ff8000000000000}, 193b8021494Sopenharmony_ci {0x0, 0x8010000000000000, 0x0010000000000000, 0x8010000000000000}, 194b8021494Sopenharmony_ci {0x0, 0x3fe0000000000001, 0x7ff923456789abcd, 0x000123456789abcd}, 195b8021494Sopenharmony_ci {0x0, 0x3fe0000000000001, 0x3ff8000000000000, 0xbfe0000000000001}, 196b8021494Sopenharmony_ci {0x0, 0xbfefffffffffffff, 0x0000000000000001, 0x0010000000000000}, 197b8021494Sopenharmony_ci {0x0, 0xbfefffffffffffff, 0xbfdfffffffffffff, 0xbff8000000000000}, 198b8021494Sopenharmony_ci {0x0, 0x0000000000000000, 0x3ff0000000000000, 0x3fe0000000000001}, 199b8021494Sopenharmony_ci {0x0, 0xbff0000000000000, 0xffefffffffffffff, 0x3fefffffffffffff}, 200b8021494Sopenharmony_ci {0x0, 0x3ff8000000000000, 0x7ff8000000000000, 0x7ff0000000000000}, 201b8021494Sopenharmony_ci {0x0, 0x4024000000000000, 0xbfefffffffffffff, 0xfff8000000000000}, 202b8021494Sopenharmony_ci {0x0, 0x0000000000000000, 0x000123456789abcd, 0x3fe0000000000000}, 203b8021494Sopenharmony_ci {0x0, 0x7fefffffffffffff, 0x3fe0000000000001, 0xfff0000000000000}, 204b8021494Sopenharmony_ci {0x0, 0xbfefffffffffffff, 0x000123456789abcd, 0x800fffffffffffff}, 205b8021494Sopenharmony_ci {0x0, 0xfff8000000000000, 0x8000000000000001, 0x7fefffffffffffff}, 206b8021494Sopenharmony_ci {0x0, 0x3ff8000000000000, 0x3ff0000000000001, 0xfff123456789abcd}, 207b8021494Sopenharmony_ci {0x0, 0xbfe0000000000001, 0x0000000000000000, 0xbfefffffffffffff}, 208b8021494Sopenharmony_ci {0x0, 0x7fefffffffffffff, 0xfff0000000000000, 0xbff0000000000000}, 209b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0x3fe0000000000000, 0x7ff123456789abcd}, 210b8021494Sopenharmony_ci {0x0, 0x3ff0000000000000, 0x3ff0000000000000, 0x8000000000000001}, 211b8021494Sopenharmony_ci {0x0, 0xbff8000000000000, 0x4024000000000000, 0x3ff8000000000000}, 212b8021494Sopenharmony_ci {0x0, 0xfff923456789abcd, 0xbff8000000000000, 0x000fffffffffffff}, 213b8021494Sopenharmony_ci {0x0, 0x800123456789abcd, 0x0000000000000001, 0x4024000000000000}, 214b8021494Sopenharmony_ci {0x0, 0x0000000000000000, 0xfff923456789abcd, 0x0000000000000000}, 215b8021494Sopenharmony_ci {0x0, 0x3ff0000000000000, 0xfff8000000000000, 0xbfefffffffffffff}, 216b8021494Sopenharmony_ci {0x0, 0x8000000000000000, 0x0000000000000001, 0x3fefffffffffffff}, 217b8021494Sopenharmony_ci {0x0, 0xbff8000000000000, 0xbff0000000000000, 0x7ff8000000000000}, 218b8021494Sopenharmony_ci {0x0, 0x3fdfffffffffffff, 0x8000000000000001, 0x3fdfffffffffffff}, 219b8021494Sopenharmony_ci {0x0, 0x8010000000000000, 0x0000000000000001, 0x000123456789abcd}, 220b8021494Sopenharmony_ci {0x0, 0xbfe0000000000001, 0x000fffffffffffff, 0xbfe0000000000001}, 221b8021494Sopenharmony_ci {0x0, 0x7ff8000000000000, 0xbff0000000000001, 0x7ff0000000000000}, 222b8021494Sopenharmony_ci {0x0, 0xbfdfffffffffffff, 0x7ff123456789abcd, 0x4024000000000000}, 223b8021494Sopenharmony_ci {0x0, 0x3ff8000000000000, 0xbff0000000000000, 0xbfdfffffffffffff}, 224b8021494Sopenharmony_ci {0x0, 0x000123456789abcd, 0x3fefffffffffffff, 0x0000000000000000}, 225b8021494Sopenharmony_ci {0x0, 0x800fffffffffffff, 0xc024000000000000, 0x0000000000000001}, 226b8021494Sopenharmony_ci {0x0, 0xbff8000000000000, 0xbfe0000000000000, 0x8010000000000000}, 227b8021494Sopenharmony_ci {0x0, 0x3fdfffffffffffff, 0x000fffffffffffff, 0x3fdfffffffffffff}, 228b8021494Sopenharmony_ci {0x0, 0x0010000000000000, 0x800fffffffffffff, 0x3ff0000000000001}, 229b8021494Sopenharmony_ci {0x0, 0x3ff8000000000000, 0xfff0000000000000, 0x000fffffffffffff}, 230b8021494Sopenharmony_ci {0x0, 0x3fefffffffffffff, 0xbfefffffffffffff, 0x3fe0000000000000}, 231b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0xbff0000000000001, 0xbff8000000000000}, 232b8021494Sopenharmony_ci {0x0, 0x000fffffffffffff, 0xfff0000000000000, 0xbfe0000000000000}, 233b8021494Sopenharmony_ci {0x0, 0x0000000000000000, 0x3fdfffffffffffff, 0x7ff123456789abcd}, 234b8021494Sopenharmony_ci {0x0, 0x3ff8000000000000, 0xbff8000000000000, 0x000fffffffffffff}, 235b8021494Sopenharmony_ci {0x0, 0x7ff923456789abcd, 0x7ff0000000000000, 0x7ff923456789abcd}, 236b8021494Sopenharmony_ci {0x0, 0x000fffffffffffff, 0x000fffffffffffff, 0x3fe0000000000000}, 237b8021494Sopenharmony_ci {0x0, 0x7ff923456789abcd, 0xbff0000000000000, 0x8000000000000001}, 238b8021494Sopenharmony_ci {0x0, 0x3fe0000000000001, 0x3ff0000000000000, 0x7fefffffffffffff}, 239b8021494Sopenharmony_ci {0x0, 0xfff923456789abcd, 0x3fe0000000000000, 0xc024000000000000}, 240b8021494Sopenharmony_ci {0x0, 0xbff0000000000000, 0x8010000000000000, 0x000fffffffffffff}, 241b8021494Sopenharmony_ci {0x0, 0xbff0000000000001, 0x4024000000000000, 0x7fefffffffffffff}, 242b8021494Sopenharmony_ci {0x0, 0xfff0000000000000, 0x0000000000000000, 0xffefffffffffffff}, 243b8021494Sopenharmony_ci {0x0, 0xfff8000000000000, 0x3fe0000000000000, 0x800fffffffffffff}, 244b8021494Sopenharmony_ci {0x0, 0x000fffffffffffff, 0xbfe0000000000000, 0x7fefffffffffffff}, 245b8021494Sopenharmony_ci {0x0, 0x000fffffffffffff, 0xffefffffffffffff, 0x7ff0000000000000}, 246b8021494Sopenharmony_ci {0x0, 0xbff0000000000001, 0x3ff0000000000001, 0x7ff123456789abcd}, 247b8021494Sopenharmony_ci {0x0, 0xc024000000000000, 0x8000000000000001, 0x3ff8000000000000}, 248b8021494Sopenharmony_ci {0x0, 0xbfe0000000000001, 0x8000000000000001, 0xbfdfffffffffffff}, 249b8021494Sopenharmony_ci {0x0, 0xfff0000000000000, 0x0000000000000000, 0xfff923456789abcd}, 250b8021494Sopenharmony_ci {0x0, 0x3fefffffffffffff, 0xbfdfffffffffffff, 0x8000000000000001}, 251b8021494Sopenharmony_ci {0x0, 0x3fe0000000000000, 0xfff123456789abcd, 0xffefffffffffffff}, 252b8021494Sopenharmony_ci {0x0, 0x3fefffffffffffff, 0xfff923456789abcd, 0x800123456789abcd}, 253b8021494Sopenharmony_ci {0x0, 0x8010000000000000, 0x3ff0000000000000, 0xc024000000000000}, 254b8021494Sopenharmony_ci {0x0, 0x7ff123456789abcd, 0x3fe0000000000001, 0x0000000000000001}, 255b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0xffefffffffffffff, 0x3fe0000000000001}, 256b8021494Sopenharmony_ci {0x0, 0x0010000000000000, 0xfff923456789abcd, 0x000fffffffffffff}, 257b8021494Sopenharmony_ci {0x0, 0x4024000000000000, 0x7ff8000000000000, 0x000123456789abcd}, 258b8021494Sopenharmony_ci {0x0, 0x8010000000000000, 0x8000000000000001, 0xbfe0000000000000}, 259b8021494Sopenharmony_ci {0x0, 0x000fffffffffffff, 0x3ff0000000000000, 0x3ff0000000000001}, 260b8021494Sopenharmony_ci {0x0, 0xbff0000000000000, 0x3fe0000000000000, 0xbff0000000000000}, 261b8021494Sopenharmony_ci {0x0, 0x3fe0000000000001, 0xbfe0000000000000, 0x7ff0000000000000}}; 262b8021494Sopenharmony_ci 263b8021494Sopenharmony_cistatic const Inputs kFloatsSameRegisters[] = 264b8021494Sopenharmony_ci {{0x0, 0x8000000000000000, 0xbfdfffffffffffff, 0xbfdfffffffffffff}, 265b8021494Sopenharmony_ci {0x0, 0xbfe0000000000000, 0xfff0000000000000, 0xfff0000000000000}, 266b8021494Sopenharmony_ci {0x0, 0x0000000000000001, 0x3fdfffffffffffff, 0x3fdfffffffffffff}, 267b8021494Sopenharmony_ci {0x0, 0xfff8000000000000, 0x8000000000000001, 0x8000000000000001}, 268b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0x7ff923456789abcd, 0x7ff923456789abcd}, 269b8021494Sopenharmony_ci {0x0, 0x7ff123456789abcd, 0xfff0000000000000, 0xfff0000000000000}, 270b8021494Sopenharmony_ci {0x0, 0xbff0000000000001, 0xfff123456789abcd, 0xfff123456789abcd}, 271b8021494Sopenharmony_ci {0x0, 0xbfe0000000000001, 0x8000000000000000, 0x8000000000000000}, 272b8021494Sopenharmony_ci {0x0, 0xc024000000000000, 0x3fe0000000000001, 0x3fe0000000000001}, 273b8021494Sopenharmony_ci {0x0, 0xfff0000000000000, 0x8000000000000001, 0x8000000000000001}, 274b8021494Sopenharmony_ci {0x0, 0x800fffffffffffff, 0x7ff8000000000000, 0x7ff8000000000000}, 275b8021494Sopenharmony_ci {0x0, 0x800fffffffffffff, 0xfff8000000000000, 0xfff8000000000000}, 276b8021494Sopenharmony_ci {0x0, 0xbfe0000000000001, 0x7ff8000000000000, 0x7ff8000000000000}, 277b8021494Sopenharmony_ci {0x0, 0x0010000000000000, 0x7fefffffffffffff, 0x7fefffffffffffff}, 278b8021494Sopenharmony_ci {0x0, 0xfff0000000000000, 0xbff0000000000000, 0xbff0000000000000}, 279b8021494Sopenharmony_ci {0x0, 0xc024000000000000, 0xfff8000000000000, 0xfff8000000000000}, 280b8021494Sopenharmony_ci {0x0, 0xbfe0000000000001, 0xbfe0000000000000, 0xbfe0000000000000}, 281b8021494Sopenharmony_ci {0x0, 0xbff0000000000001, 0x3ff0000000000000, 0x3ff0000000000000}, 282b8021494Sopenharmony_ci {0x0, 0x3fdfffffffffffff, 0xbfe0000000000000, 0xbfe0000000000000}, 283b8021494Sopenharmony_ci {0x0, 0xfff923456789abcd, 0xfff123456789abcd, 0xfff123456789abcd}, 284b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0x800123456789abcd, 0x800123456789abcd}, 285b8021494Sopenharmony_ci {0x0, 0x3ff8000000000000, 0xbfdfffffffffffff, 0xbfdfffffffffffff}, 286b8021494Sopenharmony_ci {0x0, 0xffefffffffffffff, 0xbfe0000000000000, 0xbfe0000000000000}, 287b8021494Sopenharmony_ci {0x0, 0x800123456789abcd, 0xbff0000000000001, 0xbff0000000000001}, 288b8021494Sopenharmony_ci {0x0, 0x0000000000000000, 0x800fffffffffffff, 0x800fffffffffffff}, 289b8021494Sopenharmony_ci {0x0, 0xfff0000000000000, 0x3ff8000000000000, 0x3ff8000000000000}, 290b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0x7ff0000000000000, 0x7ff0000000000000}, 291b8021494Sopenharmony_ci {0x0, 0x0010000000000000, 0xfff923456789abcd, 0xfff923456789abcd}, 292b8021494Sopenharmony_ci {0x0, 0x3fefffffffffffff, 0xfff0000000000000, 0xfff0000000000000}, 293b8021494Sopenharmony_ci {0x0, 0x000fffffffffffff, 0x7ff0000000000000, 0x7ff0000000000000}, 294b8021494Sopenharmony_ci {0x0, 0x000123456789abcd, 0xbfe0000000000001, 0xbfe0000000000001}, 295b8021494Sopenharmony_ci {0x0, 0xfff923456789abcd, 0x3fefffffffffffff, 0x3fefffffffffffff}, 296b8021494Sopenharmony_ci {0x0, 0x3fdfffffffffffff, 0xbff0000000000001, 0xbff0000000000001}, 297b8021494Sopenharmony_ci {0x0, 0x000123456789abcd, 0xbfe0000000000000, 0xbfe0000000000000}, 298b8021494Sopenharmony_ci {0x0, 0xfff0000000000000, 0xbfefffffffffffff, 0xbfefffffffffffff}, 299b8021494Sopenharmony_ci {0x0, 0xfff8000000000000, 0xfff0000000000000, 0xfff0000000000000}, 300b8021494Sopenharmony_ci {0x0, 0x3fe0000000000000, 0xbfdfffffffffffff, 0xbfdfffffffffffff}, 301b8021494Sopenharmony_ci {0x0, 0x0010000000000000, 0xfff0000000000000, 0xfff0000000000000}, 302b8021494Sopenharmony_ci {0x0, 0xfff123456789abcd, 0x3fe0000000000000, 0x3fe0000000000000}, 303b8021494Sopenharmony_ci {0x0, 0x3fe0000000000000, 0xfff0000000000000, 0xfff0000000000000}, 304b8021494Sopenharmony_ci {0x0, 0x3fdfffffffffffff, 0xbff8000000000000, 0xbff8000000000000}, 305b8021494Sopenharmony_ci {0x0, 0xbff0000000000001, 0x3fefffffffffffff, 0x3fefffffffffffff}, 306b8021494Sopenharmony_ci {0x0, 0x0000000000000000, 0x7ff0000000000000, 0x7ff0000000000000}, 307b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0xffefffffffffffff, 0xffefffffffffffff}, 308b8021494Sopenharmony_ci {0x0, 0x000123456789abcd, 0x3fdfffffffffffff, 0x3fdfffffffffffff}, 309b8021494Sopenharmony_ci {0x0, 0xc024000000000000, 0x4024000000000000, 0x4024000000000000}, 310b8021494Sopenharmony_ci {0x0, 0x3fefffffffffffff, 0xbfdfffffffffffff, 0xbfdfffffffffffff}, 311b8021494Sopenharmony_ci {0x0, 0x0010000000000000, 0x7ff8000000000000, 0x7ff8000000000000}, 312b8021494Sopenharmony_ci {0x0, 0x3fe0000000000001, 0x7ff8000000000000, 0x7ff8000000000000}, 313b8021494Sopenharmony_ci {0x0, 0x8000000000000000, 0x7fefffffffffffff, 0x7fefffffffffffff}, 314b8021494Sopenharmony_ci {0x0, 0x7ff123456789abcd, 0xfff0000000000000, 0xfff0000000000000}, 315b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0x000fffffffffffff, 0x000fffffffffffff}, 316b8021494Sopenharmony_ci {0x0, 0x7ff923456789abcd, 0xbff8000000000000, 0xbff8000000000000}, 317b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0xbfefffffffffffff, 0xbfefffffffffffff}, 318b8021494Sopenharmony_ci {0x0, 0xfff123456789abcd, 0x3ff0000000000000, 0x3ff0000000000000}, 319b8021494Sopenharmony_ci {0x0, 0xfff923456789abcd, 0x3ff0000000000001, 0x3ff0000000000001}, 320b8021494Sopenharmony_ci {0x0, 0xc024000000000000, 0xfff123456789abcd, 0xfff123456789abcd}, 321b8021494Sopenharmony_ci {0x0, 0xbfe0000000000001, 0x8010000000000000, 0x8010000000000000}, 322b8021494Sopenharmony_ci {0x0, 0xfff923456789abcd, 0xbfdfffffffffffff, 0xbfdfffffffffffff}, 323b8021494Sopenharmony_ci {0x0, 0x8010000000000000, 0x3fe0000000000000, 0x3fe0000000000000}, 324b8021494Sopenharmony_ci {0x0, 0xfff123456789abcd, 0x3ff8000000000000, 0x3ff8000000000000}, 325b8021494Sopenharmony_ci {0x0, 0x800fffffffffffff, 0x000fffffffffffff, 0x000fffffffffffff}, 326b8021494Sopenharmony_ci {0x0, 0xffefffffffffffff, 0xfff0000000000000, 0xfff0000000000000}, 327b8021494Sopenharmony_ci {0x0, 0x4024000000000000, 0xbfe0000000000001, 0xbfe0000000000001}, 328b8021494Sopenharmony_ci {0x0, 0xfff0000000000000, 0xfff923456789abcd, 0xfff923456789abcd}, 329b8021494Sopenharmony_ci {0x0, 0x7ff123456789abcd, 0xfff0000000000000, 0xfff0000000000000}, 330b8021494Sopenharmony_ci {0x0, 0x8000000000000000, 0x7ff123456789abcd, 0x7ff123456789abcd}, 331b8021494Sopenharmony_ci {0x0, 0x0000000000000001, 0xc024000000000000, 0xc024000000000000}, 332b8021494Sopenharmony_ci {0x0, 0x0010000000000000, 0x7ff0000000000000, 0x7ff0000000000000}, 333b8021494Sopenharmony_ci {0x0, 0x3fe0000000000000, 0xbff0000000000000, 0xbff0000000000000}, 334b8021494Sopenharmony_ci {0x0, 0xbfdfffffffffffff, 0x8010000000000000, 0x8010000000000000}, 335b8021494Sopenharmony_ci {0x0, 0xbff8000000000000, 0x3fe0000000000001, 0x3fe0000000000001}, 336b8021494Sopenharmony_ci {0x0, 0xffefffffffffffff, 0x8000000000000000, 0x8000000000000000}, 337b8021494Sopenharmony_ci {0x0, 0x3fe0000000000000, 0x7ff8000000000000, 0x7ff8000000000000}, 338b8021494Sopenharmony_ci {0x0, 0xbff0000000000001, 0xbff8000000000000, 0xbff8000000000000}, 339b8021494Sopenharmony_ci {0x0, 0xbfe0000000000000, 0xbfe0000000000001, 0xbfe0000000000001}, 340b8021494Sopenharmony_ci {0x0, 0xc024000000000000, 0x7ff0000000000000, 0x7ff0000000000000}, 341b8021494Sopenharmony_ci {0x0, 0x8000000000000001, 0x7fefffffffffffff, 0x7fefffffffffffff}, 342b8021494Sopenharmony_ci {0x0, 0x7ff923456789abcd, 0xfff0000000000000, 0xfff0000000000000}, 343b8021494Sopenharmony_ci {0x0, 0x8010000000000000, 0x7ff0000000000000, 0x7ff0000000000000}, 344b8021494Sopenharmony_ci {0x0, 0xc024000000000000, 0x800123456789abcd, 0x800123456789abcd}, 345b8021494Sopenharmony_ci {0x0, 0x7ff0000000000000, 0xc024000000000000, 0xc024000000000000}, 346b8021494Sopenharmony_ci {0x0, 0x4024000000000000, 0x0010000000000000, 0x0010000000000000}, 347b8021494Sopenharmony_ci {0x0, 0x3ff0000000000000, 0x7ff0000000000000, 0x7ff0000000000000}, 348b8021494Sopenharmony_ci {0x0, 0xbfe0000000000001, 0xc024000000000000, 0xc024000000000000}, 349b8021494Sopenharmony_ci {0x0, 0xbfdfffffffffffff, 0x7ff0000000000000, 0x7ff0000000000000}, 350b8021494Sopenharmony_ci {0x0, 0x000123456789abcd, 0xfff8000000000000, 0xfff8000000000000}, 351b8021494Sopenharmony_ci {0x0, 0xbff0000000000001, 0x000123456789abcd, 0x000123456789abcd}, 352b8021494Sopenharmony_ci {0x0, 0x0000000000000000, 0x7ff123456789abcd, 0x7ff123456789abcd}, 353b8021494Sopenharmony_ci {0x0, 0x3ff0000000000001, 0x7ff8000000000000, 0x7ff8000000000000}, 354b8021494Sopenharmony_ci {0x0, 0x3fe0000000000001, 0x3ff0000000000001, 0x3ff0000000000001}, 355b8021494Sopenharmony_ci {0x0, 0x3ff0000000000001, 0x000123456789abcd, 0x000123456789abcd}, 356b8021494Sopenharmony_ci {0x0, 0x3ff8000000000000, 0x8010000000000000, 0x8010000000000000}, 357b8021494Sopenharmony_ci {0x0, 0x8000000000000000, 0x800fffffffffffff, 0x800fffffffffffff}, 358b8021494Sopenharmony_ci {0x0, 0x7ff8000000000000, 0x7ff0000000000000, 0x7ff0000000000000}, 359b8021494Sopenharmony_ci {0x0, 0xbff0000000000000, 0xfff8000000000000, 0xfff8000000000000}, 360b8021494Sopenharmony_ci {0x0, 0x000fffffffffffff, 0xbff8000000000000, 0xbff8000000000000}, 361b8021494Sopenharmony_ci {0x0, 0x7ff123456789abcd, 0x8010000000000000, 0x8010000000000000}, 362b8021494Sopenharmony_ci {0x0, 0x8000000000000000, 0x3fefffffffffffff, 0x3fefffffffffffff}, 363b8021494Sopenharmony_ci {0x0, 0xbfe0000000000000, 0x7ff0000000000000, 0x7ff0000000000000}}; 364b8021494Sopenharmony_ci 365b8021494Sopenharmony_ci 366b8021494Sopenharmony_ci// A loop will be generated for each element of this array. 367b8021494Sopenharmony_ciconst TestLoopData kTests[] = {{{F64, d3, d31, d11}, 368b8021494Sopenharmony_ci "F64 d3 d31 d11", 369b8021494Sopenharmony_ci "Floats_F64_d3_d31_d11", 370b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 371b8021494Sopenharmony_ci kFloats}, 372b8021494Sopenharmony_ci {{F64, d21, d17, d0}, 373b8021494Sopenharmony_ci "F64 d21 d17 d0", 374b8021494Sopenharmony_ci "Floats_F64_d21_d17_d0", 375b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 376b8021494Sopenharmony_ci kFloats}, 377b8021494Sopenharmony_ci {{F64, d8, d4, d16}, 378b8021494Sopenharmony_ci "F64 d8 d4 d16", 379b8021494Sopenharmony_ci "Floats_F64_d8_d4_d16", 380b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 381b8021494Sopenharmony_ci kFloats}, 382b8021494Sopenharmony_ci {{F64, d18, d11, d29}, 383b8021494Sopenharmony_ci "F64 d18 d11 d29", 384b8021494Sopenharmony_ci "Floats_F64_d18_d11_d29", 385b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 386b8021494Sopenharmony_ci kFloats}, 387b8021494Sopenharmony_ci {{F64, d18, d7, d16}, 388b8021494Sopenharmony_ci "F64 d18 d7 d16", 389b8021494Sopenharmony_ci "Floats_F64_d18_d7_d16", 390b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 391b8021494Sopenharmony_ci kFloats}, 392b8021494Sopenharmony_ci {{F64, d31, d28, d30}, 393b8021494Sopenharmony_ci "F64 d31 d28 d30", 394b8021494Sopenharmony_ci "Floats_F64_d31_d28_d30", 395b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 396b8021494Sopenharmony_ci kFloats}, 397b8021494Sopenharmony_ci {{F64, d3, d27, d4}, 398b8021494Sopenharmony_ci "F64 d3 d27 d4", 399b8021494Sopenharmony_ci "Floats_F64_d3_d27_d4", 400b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 401b8021494Sopenharmony_ci kFloats}, 402b8021494Sopenharmony_ci {{F64, d16, d17, d25}, 403b8021494Sopenharmony_ci "F64 d16 d17 d25", 404b8021494Sopenharmony_ci "Floats_F64_d16_d17_d25", 405b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 406b8021494Sopenharmony_ci kFloats}, 407b8021494Sopenharmony_ci {{F64, d12, d16, d21}, 408b8021494Sopenharmony_ci "F64 d12 d16 d21", 409b8021494Sopenharmony_ci "Floats_F64_d12_d16_d21", 410b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 411b8021494Sopenharmony_ci kFloats}, 412b8021494Sopenharmony_ci {{F64, d13, d3, d9}, 413b8021494Sopenharmony_ci "F64 d13 d3 d9", 414b8021494Sopenharmony_ci "Floats_F64_d13_d3_d9", 415b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 416b8021494Sopenharmony_ci kFloats}, 417b8021494Sopenharmony_ci {{F64, d14, d15, d9}, 418b8021494Sopenharmony_ci "F64 d14 d15 d9", 419b8021494Sopenharmony_ci "Floats_F64_d14_d15_d9", 420b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 421b8021494Sopenharmony_ci kFloats}, 422b8021494Sopenharmony_ci {{F64, d23, d3, d9}, 423b8021494Sopenharmony_ci "F64 d23 d3 d9", 424b8021494Sopenharmony_ci "Floats_F64_d23_d3_d9", 425b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 426b8021494Sopenharmony_ci kFloats}, 427b8021494Sopenharmony_ci {{F64, d8, d5, d4}, 428b8021494Sopenharmony_ci "F64 d8 d5 d4", 429b8021494Sopenharmony_ci "Floats_F64_d8_d5_d4", 430b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 431b8021494Sopenharmony_ci kFloats}, 432b8021494Sopenharmony_ci {{F64, d28, d10, d8}, 433b8021494Sopenharmony_ci "F64 d28 d10 d8", 434b8021494Sopenharmony_ci "Floats_F64_d28_d10_d8", 435b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 436b8021494Sopenharmony_ci kFloats}, 437b8021494Sopenharmony_ci {{F64, d8, d28, d11}, 438b8021494Sopenharmony_ci "F64 d8 d28 d11", 439b8021494Sopenharmony_ci "Floats_F64_d8_d28_d11", 440b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 441b8021494Sopenharmony_ci kFloats}, 442b8021494Sopenharmony_ci {{F64, d1, d2, d23}, 443b8021494Sopenharmony_ci "F64 d1 d2 d23", 444b8021494Sopenharmony_ci "Floats_F64_d1_d2_d23", 445b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 446b8021494Sopenharmony_ci kFloats}, 447b8021494Sopenharmony_ci {{F64, d27, d26, d30}, 448b8021494Sopenharmony_ci "F64 d27 d26 d30", 449b8021494Sopenharmony_ci "Floats_F64_d27_d26_d30", 450b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 451b8021494Sopenharmony_ci kFloats}, 452b8021494Sopenharmony_ci {{F64, d3, d22, d7}, 453b8021494Sopenharmony_ci "F64 d3 d22 d7", 454b8021494Sopenharmony_ci "Floats_F64_d3_d22_d7", 455b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 456b8021494Sopenharmony_ci kFloats}, 457b8021494Sopenharmony_ci {{F64, d3, d19, d24}, 458b8021494Sopenharmony_ci "F64 d3 d19 d24", 459b8021494Sopenharmony_ci "Floats_F64_d3_d19_d24", 460b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 461b8021494Sopenharmony_ci kFloats}, 462b8021494Sopenharmony_ci {{F64, d27, d30, d22}, 463b8021494Sopenharmony_ci "F64 d27 d30 d22", 464b8021494Sopenharmony_ci "Floats_F64_d27_d30_d22", 465b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 466b8021494Sopenharmony_ci kFloats}, 467b8021494Sopenharmony_ci {{F64, d27, d25, d7}, 468b8021494Sopenharmony_ci "F64 d27 d25 d7", 469b8021494Sopenharmony_ci "Floats_F64_d27_d25_d7", 470b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 471b8021494Sopenharmony_ci kFloats}, 472b8021494Sopenharmony_ci {{F64, d21, d8, d10}, 473b8021494Sopenharmony_ci "F64 d21 d8 d10", 474b8021494Sopenharmony_ci "Floats_F64_d21_d8_d10", 475b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 476b8021494Sopenharmony_ci kFloats}, 477b8021494Sopenharmony_ci {{F64, d28, d17, d14}, 478b8021494Sopenharmony_ci "F64 d28 d17 d14", 479b8021494Sopenharmony_ci "Floats_F64_d28_d17_d14", 480b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 481b8021494Sopenharmony_ci kFloats}, 482b8021494Sopenharmony_ci {{F64, d1, d5, d24}, 483b8021494Sopenharmony_ci "F64 d1 d5 d24", 484b8021494Sopenharmony_ci "Floats_F64_d1_d5_d24", 485b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 486b8021494Sopenharmony_ci kFloats}, 487b8021494Sopenharmony_ci {{F64, d20, d12, d17}, 488b8021494Sopenharmony_ci "F64 d20 d12 d17", 489b8021494Sopenharmony_ci "Floats_F64_d20_d12_d17", 490b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 491b8021494Sopenharmony_ci kFloats}, 492b8021494Sopenharmony_ci {{F64, d30, d29, d10}, 493b8021494Sopenharmony_ci "F64 d30 d29 d10", 494b8021494Sopenharmony_ci "Floats_F64_d30_d29_d10", 495b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 496b8021494Sopenharmony_ci kFloats}, 497b8021494Sopenharmony_ci {{F64, d25, d14, d25}, 498b8021494Sopenharmony_ci "F64 d25 d14 d25", 499b8021494Sopenharmony_ci "Floats_F64_d25_d14_d25", 500b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 501b8021494Sopenharmony_ci kFloats}, 502b8021494Sopenharmony_ci {{F64, d1, d27, d16}, 503b8021494Sopenharmony_ci "F64 d1 d27 d16", 504b8021494Sopenharmony_ci "Floats_F64_d1_d27_d16", 505b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 506b8021494Sopenharmony_ci kFloats}, 507b8021494Sopenharmony_ci {{F64, d6, d28, d7}, 508b8021494Sopenharmony_ci "F64 d6 d28 d7", 509b8021494Sopenharmony_ci "Floats_F64_d6_d28_d7", 510b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 511b8021494Sopenharmony_ci kFloats}, 512b8021494Sopenharmony_ci {{F64, d23, d23, d15}, 513b8021494Sopenharmony_ci "F64 d23 d23 d15", 514b8021494Sopenharmony_ci "Floats_F64_d23_d23_d15", 515b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 516b8021494Sopenharmony_ci kFloats}, 517b8021494Sopenharmony_ci {{F64, d7, d23, d3}, 518b8021494Sopenharmony_ci "F64 d7 d23 d3", 519b8021494Sopenharmony_ci "Floats_F64_d7_d23_d3", 520b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 521b8021494Sopenharmony_ci kFloats}, 522b8021494Sopenharmony_ci {{F64, d7, d23, d16}, 523b8021494Sopenharmony_ci "F64 d7 d23 d16", 524b8021494Sopenharmony_ci "Floats_F64_d7_d23_d16", 525b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 526b8021494Sopenharmony_ci kFloats}, 527b8021494Sopenharmony_ci {{F64, d23, d18, d21}, 528b8021494Sopenharmony_ci "F64 d23 d18 d21", 529b8021494Sopenharmony_ci "Floats_F64_d23_d18_d21", 530b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 531b8021494Sopenharmony_ci kFloats}, 532b8021494Sopenharmony_ci {{F64, d16, d9, d17}, 533b8021494Sopenharmony_ci "F64 d16 d9 d17", 534b8021494Sopenharmony_ci "Floats_F64_d16_d9_d17", 535b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 536b8021494Sopenharmony_ci kFloats}, 537b8021494Sopenharmony_ci {{F64, d5, d21, d9}, 538b8021494Sopenharmony_ci "F64 d5 d21 d9", 539b8021494Sopenharmony_ci "Floats_F64_d5_d21_d9", 540b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 541b8021494Sopenharmony_ci kFloats}, 542b8021494Sopenharmony_ci {{F64, d28, d15, d11}, 543b8021494Sopenharmony_ci "F64 d28 d15 d11", 544b8021494Sopenharmony_ci "Floats_F64_d28_d15_d11", 545b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 546b8021494Sopenharmony_ci kFloats}, 547b8021494Sopenharmony_ci {{F64, d2, d17, d1}, 548b8021494Sopenharmony_ci "F64 d2 d17 d1", 549b8021494Sopenharmony_ci "Floats_F64_d2_d17_d1", 550b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 551b8021494Sopenharmony_ci kFloats}, 552b8021494Sopenharmony_ci {{F64, d25, d29, d17}, 553b8021494Sopenharmony_ci "F64 d25 d29 d17", 554b8021494Sopenharmony_ci "Floats_F64_d25_d29_d17", 555b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 556b8021494Sopenharmony_ci kFloats}, 557b8021494Sopenharmony_ci {{F64, d16, d2, d12}, 558b8021494Sopenharmony_ci "F64 d16 d2 d12", 559b8021494Sopenharmony_ci "Floats_F64_d16_d2_d12", 560b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 561b8021494Sopenharmony_ci kFloats}, 562b8021494Sopenharmony_ci {{F64, d14, d18, d24}, 563b8021494Sopenharmony_ci "F64 d14 d18 d24", 564b8021494Sopenharmony_ci "Floats_F64_d14_d18_d24", 565b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 566b8021494Sopenharmony_ci kFloats}, 567b8021494Sopenharmony_ci {{F64, d3, d4, d25}, 568b8021494Sopenharmony_ci "F64 d3 d4 d25", 569b8021494Sopenharmony_ci "Floats_F64_d3_d4_d25", 570b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 571b8021494Sopenharmony_ci kFloats}, 572b8021494Sopenharmony_ci {{F64, d29, d10, d21}, 573b8021494Sopenharmony_ci "F64 d29 d10 d21", 574b8021494Sopenharmony_ci "Floats_F64_d29_d10_d21", 575b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 576b8021494Sopenharmony_ci kFloats}, 577b8021494Sopenharmony_ci {{F64, d29, d27, d24}, 578b8021494Sopenharmony_ci "F64 d29 d27 d24", 579b8021494Sopenharmony_ci "Floats_F64_d29_d27_d24", 580b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 581b8021494Sopenharmony_ci kFloats}, 582b8021494Sopenharmony_ci {{F64, d30, d19, d23}, 583b8021494Sopenharmony_ci "F64 d30 d19 d23", 584b8021494Sopenharmony_ci "Floats_F64_d30_d19_d23", 585b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 586b8021494Sopenharmony_ci kFloats}, 587b8021494Sopenharmony_ci {{F64, d3, d2, d14}, 588b8021494Sopenharmony_ci "F64 d3 d2 d14", 589b8021494Sopenharmony_ci "Floats_F64_d3_d2_d14", 590b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 591b8021494Sopenharmony_ci kFloats}, 592b8021494Sopenharmony_ci {{F64, d17, d26, d0}, 593b8021494Sopenharmony_ci "F64 d17 d26 d0", 594b8021494Sopenharmony_ci "Floats_F64_d17_d26_d0", 595b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 596b8021494Sopenharmony_ci kFloats}, 597b8021494Sopenharmony_ci {{F64, d17, d28, d8}, 598b8021494Sopenharmony_ci "F64 d17 d28 d8", 599b8021494Sopenharmony_ci "Floats_F64_d17_d28_d8", 600b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 601b8021494Sopenharmony_ci kFloats}, 602b8021494Sopenharmony_ci {{F64, d0, d3, d24}, 603b8021494Sopenharmony_ci "F64 d0 d3 d24", 604b8021494Sopenharmony_ci "Floats_F64_d0_d3_d24", 605b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 606b8021494Sopenharmony_ci kFloats}, 607b8021494Sopenharmony_ci {{F64, d30, d16, d21}, 608b8021494Sopenharmony_ci "F64 d30 d16 d21", 609b8021494Sopenharmony_ci "Floats_F64_d30_d16_d21", 610b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 611b8021494Sopenharmony_ci kFloats}, 612b8021494Sopenharmony_ci {{F64, d18, d24, d3}, 613b8021494Sopenharmony_ci "F64 d18 d24 d3", 614b8021494Sopenharmony_ci "Floats_F64_d18_d24_d3", 615b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 616b8021494Sopenharmony_ci kFloats}, 617b8021494Sopenharmony_ci {{F64, d6, d2, d15}, 618b8021494Sopenharmony_ci "F64 d6 d2 d15", 619b8021494Sopenharmony_ci "Floats_F64_d6_d2_d15", 620b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 621b8021494Sopenharmony_ci kFloats}, 622b8021494Sopenharmony_ci {{F64, d7, d0, d27}, 623b8021494Sopenharmony_ci "F64 d7 d0 d27", 624b8021494Sopenharmony_ci "Floats_F64_d7_d0_d27", 625b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 626b8021494Sopenharmony_ci kFloats}, 627b8021494Sopenharmony_ci {{F64, d0, d9, d27}, 628b8021494Sopenharmony_ci "F64 d0 d9 d27", 629b8021494Sopenharmony_ci "Floats_F64_d0_d9_d27", 630b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 631b8021494Sopenharmony_ci kFloats}, 632b8021494Sopenharmony_ci {{F64, d7, d11, d27}, 633b8021494Sopenharmony_ci "F64 d7 d11 d27", 634b8021494Sopenharmony_ci "Floats_F64_d7_d11_d27", 635b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 636b8021494Sopenharmony_ci kFloats}, 637b8021494Sopenharmony_ci {{F64, d17, d25, d11}, 638b8021494Sopenharmony_ci "F64 d17 d25 d11", 639b8021494Sopenharmony_ci "Floats_F64_d17_d25_d11", 640b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 641b8021494Sopenharmony_ci kFloats}, 642b8021494Sopenharmony_ci {{F64, d31, d9, d22}, 643b8021494Sopenharmony_ci "F64 d31 d9 d22", 644b8021494Sopenharmony_ci "Floats_F64_d31_d9_d22", 645b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 646b8021494Sopenharmony_ci kFloats}, 647b8021494Sopenharmony_ci {{F64, d24, d0, d5}, 648b8021494Sopenharmony_ci "F64 d24 d0 d5", 649b8021494Sopenharmony_ci "Floats_F64_d24_d0_d5", 650b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 651b8021494Sopenharmony_ci kFloats}, 652b8021494Sopenharmony_ci {{F64, d5, d31, d4}, 653b8021494Sopenharmony_ci "F64 d5 d31 d4", 654b8021494Sopenharmony_ci "Floats_F64_d5_d31_d4", 655b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 656b8021494Sopenharmony_ci kFloats}, 657b8021494Sopenharmony_ci {{F64, d16, d24, d2}, 658b8021494Sopenharmony_ci "F64 d16 d24 d2", 659b8021494Sopenharmony_ci "Floats_F64_d16_d24_d2", 660b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 661b8021494Sopenharmony_ci kFloats}, 662b8021494Sopenharmony_ci {{F64, d7, d30, d4}, 663b8021494Sopenharmony_ci "F64 d7 d30 d4", 664b8021494Sopenharmony_ci "Floats_F64_d7_d30_d4", 665b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 666b8021494Sopenharmony_ci kFloats}, 667b8021494Sopenharmony_ci {{F64, d31, d4, d28}, 668b8021494Sopenharmony_ci "F64 d31 d4 d28", 669b8021494Sopenharmony_ci "Floats_F64_d31_d4_d28", 670b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 671b8021494Sopenharmony_ci kFloats}, 672b8021494Sopenharmony_ci {{F64, d10, d31, d13}, 673b8021494Sopenharmony_ci "F64 d10 d31 d13", 674b8021494Sopenharmony_ci "Floats_F64_d10_d31_d13", 675b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 676b8021494Sopenharmony_ci kFloats}, 677b8021494Sopenharmony_ci {{F64, d28, d14, d1}, 678b8021494Sopenharmony_ci "F64 d28 d14 d1", 679b8021494Sopenharmony_ci "Floats_F64_d28_d14_d1", 680b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 681b8021494Sopenharmony_ci kFloats}, 682b8021494Sopenharmony_ci {{F64, d4, d16, d0}, 683b8021494Sopenharmony_ci "F64 d4 d16 d0", 684b8021494Sopenharmony_ci "Floats_F64_d4_d16_d0", 685b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 686b8021494Sopenharmony_ci kFloats}, 687b8021494Sopenharmony_ci {{F64, d19, d26, d15}, 688b8021494Sopenharmony_ci "F64 d19 d26 d15", 689b8021494Sopenharmony_ci "Floats_F64_d19_d26_d15", 690b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 691b8021494Sopenharmony_ci kFloats}, 692b8021494Sopenharmony_ci {{F64, d23, d2, d26}, 693b8021494Sopenharmony_ci "F64 d23 d2 d26", 694b8021494Sopenharmony_ci "Floats_F64_d23_d2_d26", 695b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 696b8021494Sopenharmony_ci kFloats}, 697b8021494Sopenharmony_ci {{F64, d25, d26, d10}, 698b8021494Sopenharmony_ci "F64 d25 d26 d10", 699b8021494Sopenharmony_ci "Floats_F64_d25_d26_d10", 700b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 701b8021494Sopenharmony_ci kFloats}, 702b8021494Sopenharmony_ci {{F64, d0, d19, d0}, 703b8021494Sopenharmony_ci "F64 d0 d19 d0", 704b8021494Sopenharmony_ci "Floats_F64_d0_d19_d0", 705b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 706b8021494Sopenharmony_ci kFloats}, 707b8021494Sopenharmony_ci {{F64, d4, d31, d23}, 708b8021494Sopenharmony_ci "F64 d4 d31 d23", 709b8021494Sopenharmony_ci "Floats_F64_d4_d31_d23", 710b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 711b8021494Sopenharmony_ci kFloats}, 712b8021494Sopenharmony_ci {{F64, d30, d1, d23}, 713b8021494Sopenharmony_ci "F64 d30 d1 d23", 714b8021494Sopenharmony_ci "Floats_F64_d30_d1_d23", 715b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 716b8021494Sopenharmony_ci kFloats}, 717b8021494Sopenharmony_ci {{F64, d14, d5, d20}, 718b8021494Sopenharmony_ci "F64 d14 d5 d20", 719b8021494Sopenharmony_ci "Floats_F64_d14_d5_d20", 720b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 721b8021494Sopenharmony_ci kFloats}, 722b8021494Sopenharmony_ci {{F64, d20, d4, d12}, 723b8021494Sopenharmony_ci "F64 d20 d4 d12", 724b8021494Sopenharmony_ci "Floats_F64_d20_d4_d12", 725b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 726b8021494Sopenharmony_ci kFloats}, 727b8021494Sopenharmony_ci {{F64, d2, d5, d10}, 728b8021494Sopenharmony_ci "F64 d2 d5 d10", 729b8021494Sopenharmony_ci "Floats_F64_d2_d5_d10", 730b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 731b8021494Sopenharmony_ci kFloats}, 732b8021494Sopenharmony_ci {{F64, d14, d29, d3}, 733b8021494Sopenharmony_ci "F64 d14 d29 d3", 734b8021494Sopenharmony_ci "Floats_F64_d14_d29_d3", 735b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 736b8021494Sopenharmony_ci kFloats}, 737b8021494Sopenharmony_ci {{F64, d17, d2, d15}, 738b8021494Sopenharmony_ci "F64 d17 d2 d15", 739b8021494Sopenharmony_ci "Floats_F64_d17_d2_d15", 740b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 741b8021494Sopenharmony_ci kFloats}, 742b8021494Sopenharmony_ci {{F64, d9, d30, d29}, 743b8021494Sopenharmony_ci "F64 d9 d30 d29", 744b8021494Sopenharmony_ci "Floats_F64_d9_d30_d29", 745b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 746b8021494Sopenharmony_ci kFloats}, 747b8021494Sopenharmony_ci {{F64, d30, d12, d30}, 748b8021494Sopenharmony_ci "F64 d30 d12 d30", 749b8021494Sopenharmony_ci "Floats_F64_d30_d12_d30", 750b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 751b8021494Sopenharmony_ci kFloats}, 752b8021494Sopenharmony_ci {{F64, d28, d13, d21}, 753b8021494Sopenharmony_ci "F64 d28 d13 d21", 754b8021494Sopenharmony_ci "Floats_F64_d28_d13_d21", 755b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 756b8021494Sopenharmony_ci kFloats}, 757b8021494Sopenharmony_ci {{F64, d15, d17, d26}, 758b8021494Sopenharmony_ci "F64 d15 d17 d26", 759b8021494Sopenharmony_ci "Floats_F64_d15_d17_d26", 760b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 761b8021494Sopenharmony_ci kFloats}, 762b8021494Sopenharmony_ci {{F64, d30, d18, d9}, 763b8021494Sopenharmony_ci "F64 d30 d18 d9", 764b8021494Sopenharmony_ci "Floats_F64_d30_d18_d9", 765b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 766b8021494Sopenharmony_ci kFloats}, 767b8021494Sopenharmony_ci {{F64, d6, d9, d31}, 768b8021494Sopenharmony_ci "F64 d6 d9 d31", 769b8021494Sopenharmony_ci "Floats_F64_d6_d9_d31", 770b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 771b8021494Sopenharmony_ci kFloats}, 772b8021494Sopenharmony_ci {{F64, d11, d23, d22}, 773b8021494Sopenharmony_ci "F64 d11 d23 d22", 774b8021494Sopenharmony_ci "Floats_F64_d11_d23_d22", 775b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 776b8021494Sopenharmony_ci kFloats}, 777b8021494Sopenharmony_ci {{F64, d26, d23, d29}, 778b8021494Sopenharmony_ci "F64 d26 d23 d29", 779b8021494Sopenharmony_ci "Floats_F64_d26_d23_d29", 780b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 781b8021494Sopenharmony_ci kFloats}, 782b8021494Sopenharmony_ci {{F64, d20, d2, d21}, 783b8021494Sopenharmony_ci "F64 d20 d2 d21", 784b8021494Sopenharmony_ci "Floats_F64_d20_d2_d21", 785b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 786b8021494Sopenharmony_ci kFloats}, 787b8021494Sopenharmony_ci {{F64, d1, d25, d1}, 788b8021494Sopenharmony_ci "F64 d1 d25 d1", 789b8021494Sopenharmony_ci "Floats_F64_d1_d25_d1", 790b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 791b8021494Sopenharmony_ci kFloats}, 792b8021494Sopenharmony_ci {{F64, d1, d13, d15}, 793b8021494Sopenharmony_ci "F64 d1 d13 d15", 794b8021494Sopenharmony_ci "Floats_F64_d1_d13_d15", 795b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 796b8021494Sopenharmony_ci kFloats}, 797b8021494Sopenharmony_ci {{F64, d6, d15, d13}, 798b8021494Sopenharmony_ci "F64 d6 d15 d13", 799b8021494Sopenharmony_ci "Floats_F64_d6_d15_d13", 800b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 801b8021494Sopenharmony_ci kFloats}, 802b8021494Sopenharmony_ci {{F64, d4, d3, d7}, 803b8021494Sopenharmony_ci "F64 d4 d3 d7", 804b8021494Sopenharmony_ci "Floats_F64_d4_d3_d7", 805b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 806b8021494Sopenharmony_ci kFloats}, 807b8021494Sopenharmony_ci {{F64, d8, d16, d18}, 808b8021494Sopenharmony_ci "F64 d8 d16 d18", 809b8021494Sopenharmony_ci "Floats_F64_d8_d16_d18", 810b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 811b8021494Sopenharmony_ci kFloats}, 812b8021494Sopenharmony_ci {{F64, d12, d30, d21}, 813b8021494Sopenharmony_ci "F64 d12 d30 d21", 814b8021494Sopenharmony_ci "Floats_F64_d12_d30_d21", 815b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 816b8021494Sopenharmony_ci kFloats}, 817b8021494Sopenharmony_ci {{F64, d0, d1, d15}, 818b8021494Sopenharmony_ci "F64 d0 d1 d15", 819b8021494Sopenharmony_ci "Floats_F64_d0_d1_d15", 820b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 821b8021494Sopenharmony_ci kFloats}, 822b8021494Sopenharmony_ci {{F64, d6, d11, d4}, 823b8021494Sopenharmony_ci "F64 d6 d11 d4", 824b8021494Sopenharmony_ci "Floats_F64_d6_d11_d4", 825b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 826b8021494Sopenharmony_ci kFloats}, 827b8021494Sopenharmony_ci {{F64, d8, d30, d13}, 828b8021494Sopenharmony_ci "F64 d8 d30 d13", 829b8021494Sopenharmony_ci "Floats_F64_d8_d30_d13", 830b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 831b8021494Sopenharmony_ci kFloats}, 832b8021494Sopenharmony_ci {{F64, d12, d22, d12}, 833b8021494Sopenharmony_ci "F64 d12 d22 d12", 834b8021494Sopenharmony_ci "Floats_F64_d12_d22_d12", 835b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 836b8021494Sopenharmony_ci kFloats}, 837b8021494Sopenharmony_ci {{F64, d9, d7, d13}, 838b8021494Sopenharmony_ci "F64 d9 d7 d13", 839b8021494Sopenharmony_ci "Floats_F64_d9_d7_d13", 840b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 841b8021494Sopenharmony_ci kFloats}, 842b8021494Sopenharmony_ci {{F64, d3, d1, d0}, 843b8021494Sopenharmony_ci "F64 d3 d1 d0", 844b8021494Sopenharmony_ci "Floats_F64_d3_d1_d0", 845b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 846b8021494Sopenharmony_ci kFloats}, 847b8021494Sopenharmony_ci {{F64, d28, d22, d20}, 848b8021494Sopenharmony_ci "F64 d28 d22 d20", 849b8021494Sopenharmony_ci "Floats_F64_d28_d22_d20", 850b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 851b8021494Sopenharmony_ci kFloats}, 852b8021494Sopenharmony_ci {{F64, d22, d20, d9}, 853b8021494Sopenharmony_ci "F64 d22 d20 d9", 854b8021494Sopenharmony_ci "Floats_F64_d22_d20_d9", 855b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 856b8021494Sopenharmony_ci kFloats}, 857b8021494Sopenharmony_ci {{F64, d18, d18, d25}, 858b8021494Sopenharmony_ci "F64 d18 d18 d25", 859b8021494Sopenharmony_ci "Floats_F64_d18_d18_d25", 860b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 861b8021494Sopenharmony_ci kFloats}, 862b8021494Sopenharmony_ci {{F64, d19, d3, d8}, 863b8021494Sopenharmony_ci "F64 d19 d3 d8", 864b8021494Sopenharmony_ci "Floats_F64_d19_d3_d8", 865b8021494Sopenharmony_ci ARRAY_SIZE(kFloats), 866b8021494Sopenharmony_ci kFloats}, 867b8021494Sopenharmony_ci {{F64, d25, d21, d21}, 868b8021494Sopenharmony_ci "F64 d25 d21 d21", 869b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d25_d21_d21", 870b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 871b8021494Sopenharmony_ci kFloatsSameRegisters}, 872b8021494Sopenharmony_ci {{F64, d31, d4, d4}, 873b8021494Sopenharmony_ci "F64 d31 d4 d4", 874b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d31_d4_d4", 875b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 876b8021494Sopenharmony_ci kFloatsSameRegisters}, 877b8021494Sopenharmony_ci {{F64, d14, d30, d30}, 878b8021494Sopenharmony_ci "F64 d14 d30 d30", 879b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d14_d30_d30", 880b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 881b8021494Sopenharmony_ci kFloatsSameRegisters}, 882b8021494Sopenharmony_ci {{F64, d11, d27, d27}, 883b8021494Sopenharmony_ci "F64 d11 d27 d27", 884b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d11_d27_d27", 885b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 886b8021494Sopenharmony_ci kFloatsSameRegisters}, 887b8021494Sopenharmony_ci {{F64, d21, d20, d20}, 888b8021494Sopenharmony_ci "F64 d21 d20 d20", 889b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d21_d20_d20", 890b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 891b8021494Sopenharmony_ci kFloatsSameRegisters}, 892b8021494Sopenharmony_ci {{F64, d26, d14, d14}, 893b8021494Sopenharmony_ci "F64 d26 d14 d14", 894b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d26_d14_d14", 895b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 896b8021494Sopenharmony_ci kFloatsSameRegisters}, 897b8021494Sopenharmony_ci {{F64, d10, d1, d1}, 898b8021494Sopenharmony_ci "F64 d10 d1 d1", 899b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d10_d1_d1", 900b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 901b8021494Sopenharmony_ci kFloatsSameRegisters}, 902b8021494Sopenharmony_ci {{F64, d9, d24, d24}, 903b8021494Sopenharmony_ci "F64 d9 d24 d24", 904b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d9_d24_d24", 905b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 906b8021494Sopenharmony_ci kFloatsSameRegisters}, 907b8021494Sopenharmony_ci {{F64, d17, d20, d20}, 908b8021494Sopenharmony_ci "F64 d17 d20 d20", 909b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d17_d20_d20", 910b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 911b8021494Sopenharmony_ci kFloatsSameRegisters}, 912b8021494Sopenharmony_ci {{F64, d15, d13, d13}, 913b8021494Sopenharmony_ci "F64 d15 d13 d13", 914b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d15_d13_d13", 915b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 916b8021494Sopenharmony_ci kFloatsSameRegisters}, 917b8021494Sopenharmony_ci {{F64, d18, d14, d14}, 918b8021494Sopenharmony_ci "F64 d18 d14 d14", 919b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d18_d14_d14", 920b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 921b8021494Sopenharmony_ci kFloatsSameRegisters}, 922b8021494Sopenharmony_ci {{F64, d20, d10, d10}, 923b8021494Sopenharmony_ci "F64 d20 d10 d10", 924b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d20_d10_d10", 925b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 926b8021494Sopenharmony_ci kFloatsSameRegisters}, 927b8021494Sopenharmony_ci {{F64, d23, d27, d27}, 928b8021494Sopenharmony_ci "F64 d23 d27 d27", 929b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d23_d27_d27", 930b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 931b8021494Sopenharmony_ci kFloatsSameRegisters}, 932b8021494Sopenharmony_ci {{F64, d25, d26, d26}, 933b8021494Sopenharmony_ci "F64 d25 d26 d26", 934b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d25_d26_d26", 935b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 936b8021494Sopenharmony_ci kFloatsSameRegisters}, 937b8021494Sopenharmony_ci {{F64, d24, d5, d5}, 938b8021494Sopenharmony_ci "F64 d24 d5 d5", 939b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d24_d5_d5", 940b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 941b8021494Sopenharmony_ci kFloatsSameRegisters}, 942b8021494Sopenharmony_ci {{F64, d15, d10, d10}, 943b8021494Sopenharmony_ci "F64 d15 d10 d10", 944b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d15_d10_d10", 945b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 946b8021494Sopenharmony_ci kFloatsSameRegisters}, 947b8021494Sopenharmony_ci {{F64, d0, d26, d26}, 948b8021494Sopenharmony_ci "F64 d0 d26 d26", 949b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d0_d26_d26", 950b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 951b8021494Sopenharmony_ci kFloatsSameRegisters}, 952b8021494Sopenharmony_ci {{F64, d22, d23, d23}, 953b8021494Sopenharmony_ci "F64 d22 d23 d23", 954b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d22_d23_d23", 955b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 956b8021494Sopenharmony_ci kFloatsSameRegisters}, 957b8021494Sopenharmony_ci {{F64, d18, d29, d29}, 958b8021494Sopenharmony_ci "F64 d18 d29 d29", 959b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d18_d29_d29", 960b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 961b8021494Sopenharmony_ci kFloatsSameRegisters}, 962b8021494Sopenharmony_ci {{F64, d27, d25, d25}, 963b8021494Sopenharmony_ci "F64 d27 d25 d25", 964b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d27_d25_d25", 965b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 966b8021494Sopenharmony_ci kFloatsSameRegisters}, 967b8021494Sopenharmony_ci {{F64, d15, d15, d15}, 968b8021494Sopenharmony_ci "F64 d15 d15 d15", 969b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d15_d15_d15", 970b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 971b8021494Sopenharmony_ci kFloatsSameRegisters}, 972b8021494Sopenharmony_ci {{F64, d17, d5, d5}, 973b8021494Sopenharmony_ci "F64 d17 d5 d5", 974b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d17_d5_d5", 975b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 976b8021494Sopenharmony_ci kFloatsSameRegisters}, 977b8021494Sopenharmony_ci {{F64, d1, d22, d22}, 978b8021494Sopenharmony_ci "F64 d1 d22 d22", 979b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d1_d22_d22", 980b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 981b8021494Sopenharmony_ci kFloatsSameRegisters}, 982b8021494Sopenharmony_ci {{F64, d20, d29, d29}, 983b8021494Sopenharmony_ci "F64 d20 d29 d29", 984b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d20_d29_d29", 985b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 986b8021494Sopenharmony_ci kFloatsSameRegisters}, 987b8021494Sopenharmony_ci {{F64, d7, d26, d26}, 988b8021494Sopenharmony_ci "F64 d7 d26 d26", 989b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d7_d26_d26", 990b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 991b8021494Sopenharmony_ci kFloatsSameRegisters}, 992b8021494Sopenharmony_ci {{F64, d5, d19, d19}, 993b8021494Sopenharmony_ci "F64 d5 d19 d19", 994b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d5_d19_d19", 995b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 996b8021494Sopenharmony_ci kFloatsSameRegisters}, 997b8021494Sopenharmony_ci {{F64, d19, d13, d13}, 998b8021494Sopenharmony_ci "F64 d19 d13 d13", 999b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d19_d13_d13", 1000b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1001b8021494Sopenharmony_ci kFloatsSameRegisters}, 1002b8021494Sopenharmony_ci {{F64, d23, d13, d13}, 1003b8021494Sopenharmony_ci "F64 d23 d13 d13", 1004b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d23_d13_d13", 1005b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1006b8021494Sopenharmony_ci kFloatsSameRegisters}, 1007b8021494Sopenharmony_ci {{F64, d0, d20, d20}, 1008b8021494Sopenharmony_ci "F64 d0 d20 d20", 1009b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d0_d20_d20", 1010b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1011b8021494Sopenharmony_ci kFloatsSameRegisters}, 1012b8021494Sopenharmony_ci {{F64, d19, d26, d26}, 1013b8021494Sopenharmony_ci "F64 d19 d26 d26", 1014b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d19_d26_d26", 1015b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1016b8021494Sopenharmony_ci kFloatsSameRegisters}, 1017b8021494Sopenharmony_ci {{F64, d7, d15, d15}, 1018b8021494Sopenharmony_ci "F64 d7 d15 d15", 1019b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d7_d15_d15", 1020b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1021b8021494Sopenharmony_ci kFloatsSameRegisters}, 1022b8021494Sopenharmony_ci {{F64, d1, d6, d6}, 1023b8021494Sopenharmony_ci "F64 d1 d6 d6", 1024b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d1_d6_d6", 1025b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1026b8021494Sopenharmony_ci kFloatsSameRegisters}, 1027b8021494Sopenharmony_ci {{F64, d3, d25, d25}, 1028b8021494Sopenharmony_ci "F64 d3 d25 d25", 1029b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d3_d25_d25", 1030b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1031b8021494Sopenharmony_ci kFloatsSameRegisters}, 1032b8021494Sopenharmony_ci {{F64, d11, d11, d11}, 1033b8021494Sopenharmony_ci "F64 d11 d11 d11", 1034b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d11_d11_d11", 1035b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1036b8021494Sopenharmony_ci kFloatsSameRegisters}, 1037b8021494Sopenharmony_ci {{F64, d10, d28, d28}, 1038b8021494Sopenharmony_ci "F64 d10 d28 d28", 1039b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d10_d28_d28", 1040b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1041b8021494Sopenharmony_ci kFloatsSameRegisters}, 1042b8021494Sopenharmony_ci {{F64, d20, d13, d13}, 1043b8021494Sopenharmony_ci "F64 d20 d13 d13", 1044b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d20_d13_d13", 1045b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1046b8021494Sopenharmony_ci kFloatsSameRegisters}, 1047b8021494Sopenharmony_ci {{F64, d1, d24, d24}, 1048b8021494Sopenharmony_ci "F64 d1 d24 d24", 1049b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d1_d24_d24", 1050b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1051b8021494Sopenharmony_ci kFloatsSameRegisters}, 1052b8021494Sopenharmony_ci {{F64, d27, d6, d6}, 1053b8021494Sopenharmony_ci "F64 d27 d6 d6", 1054b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d27_d6_d6", 1055b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1056b8021494Sopenharmony_ci kFloatsSameRegisters}, 1057b8021494Sopenharmony_ci {{F64, d30, d29, d29}, 1058b8021494Sopenharmony_ci "F64 d30 d29 d29", 1059b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d30_d29_d29", 1060b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1061b8021494Sopenharmony_ci kFloatsSameRegisters}, 1062b8021494Sopenharmony_ci {{F64, d31, d14, d14}, 1063b8021494Sopenharmony_ci "F64 d31 d14 d14", 1064b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d31_d14_d14", 1065b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1066b8021494Sopenharmony_ci kFloatsSameRegisters}, 1067b8021494Sopenharmony_ci {{F64, d25, d13, d13}, 1068b8021494Sopenharmony_ci "F64 d25 d13 d13", 1069b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d25_d13_d13", 1070b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1071b8021494Sopenharmony_ci kFloatsSameRegisters}, 1072b8021494Sopenharmony_ci {{F64, d21, d16, d16}, 1073b8021494Sopenharmony_ci "F64 d21 d16 d16", 1074b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d21_d16_d16", 1075b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1076b8021494Sopenharmony_ci kFloatsSameRegisters}, 1077b8021494Sopenharmony_ci {{F64, d12, d26, d26}, 1078b8021494Sopenharmony_ci "F64 d12 d26 d26", 1079b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d12_d26_d26", 1080b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1081b8021494Sopenharmony_ci kFloatsSameRegisters}, 1082b8021494Sopenharmony_ci {{F64, d2, d10, d10}, 1083b8021494Sopenharmony_ci "F64 d2 d10 d10", 1084b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d2_d10_d10", 1085b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1086b8021494Sopenharmony_ci kFloatsSameRegisters}, 1087b8021494Sopenharmony_ci {{F64, d1, d5, d5}, 1088b8021494Sopenharmony_ci "F64 d1 d5 d5", 1089b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d1_d5_d5", 1090b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1091b8021494Sopenharmony_ci kFloatsSameRegisters}, 1092b8021494Sopenharmony_ci {{F64, d26, d10, d10}, 1093b8021494Sopenharmony_ci "F64 d26 d10 d10", 1094b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d26_d10_d10", 1095b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1096b8021494Sopenharmony_ci kFloatsSameRegisters}, 1097b8021494Sopenharmony_ci {{F64, d21, d22, d22}, 1098b8021494Sopenharmony_ci "F64 d21 d22 d22", 1099b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d21_d22_d22", 1100b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1101b8021494Sopenharmony_ci kFloatsSameRegisters}, 1102b8021494Sopenharmony_ci {{F64, d2, d15, d15}, 1103b8021494Sopenharmony_ci "F64 d2 d15 d15", 1104b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d2_d15_d15", 1105b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1106b8021494Sopenharmony_ci kFloatsSameRegisters}, 1107b8021494Sopenharmony_ci {{F64, d30, d27, d27}, 1108b8021494Sopenharmony_ci "F64 d30 d27 d27", 1109b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d30_d27_d27", 1110b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1111b8021494Sopenharmony_ci kFloatsSameRegisters}, 1112b8021494Sopenharmony_ci {{F64, d17, d4, d4}, 1113b8021494Sopenharmony_ci "F64 d17 d4 d4", 1114b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d17_d4_d4", 1115b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1116b8021494Sopenharmony_ci kFloatsSameRegisters}, 1117b8021494Sopenharmony_ci {{F64, d0, d8, d8}, 1118b8021494Sopenharmony_ci "F64 d0 d8 d8", 1119b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d0_d8_d8", 1120b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1121b8021494Sopenharmony_ci kFloatsSameRegisters}, 1122b8021494Sopenharmony_ci {{F64, d27, d28, d28}, 1123b8021494Sopenharmony_ci "F64 d27 d28 d28", 1124b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d27_d28_d28", 1125b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1126b8021494Sopenharmony_ci kFloatsSameRegisters}, 1127b8021494Sopenharmony_ci {{F64, d10, d10, d10}, 1128b8021494Sopenharmony_ci "F64 d10 d10 d10", 1129b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d10_d10_d10", 1130b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1131b8021494Sopenharmony_ci kFloatsSameRegisters}, 1132b8021494Sopenharmony_ci {{F64, d10, d17, d17}, 1133b8021494Sopenharmony_ci "F64 d10 d17 d17", 1134b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d10_d17_d17", 1135b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1136b8021494Sopenharmony_ci kFloatsSameRegisters}, 1137b8021494Sopenharmony_ci {{F64, d18, d16, d16}, 1138b8021494Sopenharmony_ci "F64 d18 d16 d16", 1139b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d18_d16_d16", 1140b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1141b8021494Sopenharmony_ci kFloatsSameRegisters}, 1142b8021494Sopenharmony_ci {{F64, d3, d20, d20}, 1143b8021494Sopenharmony_ci "F64 d3 d20 d20", 1144b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d3_d20_d20", 1145b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1146b8021494Sopenharmony_ci kFloatsSameRegisters}, 1147b8021494Sopenharmony_ci {{F64, d0, d28, d28}, 1148b8021494Sopenharmony_ci "F64 d0 d28 d28", 1149b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d0_d28_d28", 1150b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1151b8021494Sopenharmony_ci kFloatsSameRegisters}, 1152b8021494Sopenharmony_ci {{F64, d2, d27, d27}, 1153b8021494Sopenharmony_ci "F64 d2 d27 d27", 1154b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d2_d27_d27", 1155b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1156b8021494Sopenharmony_ci kFloatsSameRegisters}, 1157b8021494Sopenharmony_ci {{F64, d12, d20, d20}, 1158b8021494Sopenharmony_ci "F64 d12 d20 d20", 1159b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d12_d20_d20", 1160b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1161b8021494Sopenharmony_ci kFloatsSameRegisters}, 1162b8021494Sopenharmony_ci {{F64, d9, d22, d22}, 1163b8021494Sopenharmony_ci "F64 d9 d22 d22", 1164b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d9_d22_d22", 1165b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1166b8021494Sopenharmony_ci kFloatsSameRegisters}, 1167b8021494Sopenharmony_ci {{F64, d10, d4, d4}, 1168b8021494Sopenharmony_ci "F64 d10 d4 d4", 1169b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d10_d4_d4", 1170b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1171b8021494Sopenharmony_ci kFloatsSameRegisters}, 1172b8021494Sopenharmony_ci {{F64, d8, d10, d10}, 1173b8021494Sopenharmony_ci "F64 d8 d10 d10", 1174b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d8_d10_d10", 1175b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1176b8021494Sopenharmony_ci kFloatsSameRegisters}, 1177b8021494Sopenharmony_ci {{F64, d26, d5, d5}, 1178b8021494Sopenharmony_ci "F64 d26 d5 d5", 1179b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d26_d5_d5", 1180b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1181b8021494Sopenharmony_ci kFloatsSameRegisters}, 1182b8021494Sopenharmony_ci {{F64, d7, d20, d20}, 1183b8021494Sopenharmony_ci "F64 d7 d20 d20", 1184b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d7_d20_d20", 1185b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1186b8021494Sopenharmony_ci kFloatsSameRegisters}, 1187b8021494Sopenharmony_ci {{F64, d21, d24, d24}, 1188b8021494Sopenharmony_ci "F64 d21 d24 d24", 1189b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d21_d24_d24", 1190b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1191b8021494Sopenharmony_ci kFloatsSameRegisters}, 1192b8021494Sopenharmony_ci {{F64, d29, d9, d9}, 1193b8021494Sopenharmony_ci "F64 d29 d9 d9", 1194b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d29_d9_d9", 1195b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1196b8021494Sopenharmony_ci kFloatsSameRegisters}, 1197b8021494Sopenharmony_ci {{F64, d20, d14, d14}, 1198b8021494Sopenharmony_ci "F64 d20 d14 d14", 1199b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d20_d14_d14", 1200b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1201b8021494Sopenharmony_ci kFloatsSameRegisters}, 1202b8021494Sopenharmony_ci {{F64, d18, d30, d30}, 1203b8021494Sopenharmony_ci "F64 d18 d30 d30", 1204b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d18_d30_d30", 1205b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1206b8021494Sopenharmony_ci kFloatsSameRegisters}, 1207b8021494Sopenharmony_ci {{F64, d15, d14, d14}, 1208b8021494Sopenharmony_ci "F64 d15 d14 d14", 1209b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d15_d14_d14", 1210b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1211b8021494Sopenharmony_ci kFloatsSameRegisters}, 1212b8021494Sopenharmony_ci {{F64, d31, d21, d21}, 1213b8021494Sopenharmony_ci "F64 d31 d21 d21", 1214b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d31_d21_d21", 1215b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1216b8021494Sopenharmony_ci kFloatsSameRegisters}, 1217b8021494Sopenharmony_ci {{F64, d20, d22, d22}, 1218b8021494Sopenharmony_ci "F64 d20 d22 d22", 1219b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d20_d22_d22", 1220b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1221b8021494Sopenharmony_ci kFloatsSameRegisters}, 1222b8021494Sopenharmony_ci {{F64, d13, d5, d5}, 1223b8021494Sopenharmony_ci "F64 d13 d5 d5", 1224b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d13_d5_d5", 1225b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1226b8021494Sopenharmony_ci kFloatsSameRegisters}, 1227b8021494Sopenharmony_ci {{F64, d28, d14, d14}, 1228b8021494Sopenharmony_ci "F64 d28 d14 d14", 1229b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d28_d14_d14", 1230b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1231b8021494Sopenharmony_ci kFloatsSameRegisters}, 1232b8021494Sopenharmony_ci {{F64, d21, d25, d25}, 1233b8021494Sopenharmony_ci "F64 d21 d25 d25", 1234b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d21_d25_d25", 1235b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1236b8021494Sopenharmony_ci kFloatsSameRegisters}, 1237b8021494Sopenharmony_ci {{F64, d23, d29, d29}, 1238b8021494Sopenharmony_ci "F64 d23 d29 d29", 1239b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d23_d29_d29", 1240b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1241b8021494Sopenharmony_ci kFloatsSameRegisters}, 1242b8021494Sopenharmony_ci {{F64, d19, d17, d17}, 1243b8021494Sopenharmony_ci "F64 d19 d17 d17", 1244b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d19_d17_d17", 1245b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1246b8021494Sopenharmony_ci kFloatsSameRegisters}, 1247b8021494Sopenharmony_ci {{F64, d30, d21, d21}, 1248b8021494Sopenharmony_ci "F64 d30 d21 d21", 1249b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d30_d21_d21", 1250b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1251b8021494Sopenharmony_ci kFloatsSameRegisters}, 1252b8021494Sopenharmony_ci {{F64, d6, d9, d9}, 1253b8021494Sopenharmony_ci "F64 d6 d9 d9", 1254b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d6_d9_d9", 1255b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1256b8021494Sopenharmony_ci kFloatsSameRegisters}, 1257b8021494Sopenharmony_ci {{F64, d22, d27, d27}, 1258b8021494Sopenharmony_ci "F64 d22 d27 d27", 1259b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d22_d27_d27", 1260b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1261b8021494Sopenharmony_ci kFloatsSameRegisters}, 1262b8021494Sopenharmony_ci {{F64, d9, d25, d25}, 1263b8021494Sopenharmony_ci "F64 d9 d25 d25", 1264b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d9_d25_d25", 1265b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1266b8021494Sopenharmony_ci kFloatsSameRegisters}, 1267b8021494Sopenharmony_ci {{F64, d12, d22, d22}, 1268b8021494Sopenharmony_ci "F64 d12 d22 d22", 1269b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d12_d22_d22", 1270b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1271b8021494Sopenharmony_ci kFloatsSameRegisters}, 1272b8021494Sopenharmony_ci {{F64, d12, d9, d9}, 1273b8021494Sopenharmony_ci "F64 d12 d9 d9", 1274b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d12_d9_d9", 1275b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1276b8021494Sopenharmony_ci kFloatsSameRegisters}, 1277b8021494Sopenharmony_ci {{F64, d0, d27, d27}, 1278b8021494Sopenharmony_ci "F64 d0 d27 d27", 1279b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d0_d27_d27", 1280b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1281b8021494Sopenharmony_ci kFloatsSameRegisters}, 1282b8021494Sopenharmony_ci {{F64, d2, d12, d12}, 1283b8021494Sopenharmony_ci "F64 d2 d12 d12", 1284b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d2_d12_d12", 1285b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1286b8021494Sopenharmony_ci kFloatsSameRegisters}, 1287b8021494Sopenharmony_ci {{F64, d27, d29, d29}, 1288b8021494Sopenharmony_ci "F64 d27 d29 d29", 1289b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d27_d29_d29", 1290b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1291b8021494Sopenharmony_ci kFloatsSameRegisters}, 1292b8021494Sopenharmony_ci {{F64, d14, d4, d4}, 1293b8021494Sopenharmony_ci "F64 d14 d4 d4", 1294b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d14_d4_d4", 1295b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1296b8021494Sopenharmony_ci kFloatsSameRegisters}, 1297b8021494Sopenharmony_ci {{F64, d17, d25, d25}, 1298b8021494Sopenharmony_ci "F64 d17 d25 d25", 1299b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d17_d25_d25", 1300b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1301b8021494Sopenharmony_ci kFloatsSameRegisters}, 1302b8021494Sopenharmony_ci {{F64, d19, d11, d11}, 1303b8021494Sopenharmony_ci "F64 d19 d11 d11", 1304b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d19_d11_d11", 1305b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1306b8021494Sopenharmony_ci kFloatsSameRegisters}, 1307b8021494Sopenharmony_ci {{F64, d2, d6, d6}, 1308b8021494Sopenharmony_ci "F64 d2 d6 d6", 1309b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d2_d6_d6", 1310b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1311b8021494Sopenharmony_ci kFloatsSameRegisters}, 1312b8021494Sopenharmony_ci {{F64, d26, d24, d24}, 1313b8021494Sopenharmony_ci "F64 d26 d24 d24", 1314b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d26_d24_d24", 1315b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1316b8021494Sopenharmony_ci kFloatsSameRegisters}, 1317b8021494Sopenharmony_ci {{F64, d17, d16, d16}, 1318b8021494Sopenharmony_ci "F64 d17 d16 d16", 1319b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d17_d16_d16", 1320b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1321b8021494Sopenharmony_ci kFloatsSameRegisters}, 1322b8021494Sopenharmony_ci {{F64, d14, d26, d26}, 1323b8021494Sopenharmony_ci "F64 d14 d26 d26", 1324b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d14_d26_d26", 1325b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1326b8021494Sopenharmony_ci kFloatsSameRegisters}, 1327b8021494Sopenharmony_ci {{F64, d18, d20, d20}, 1328b8021494Sopenharmony_ci "F64 d18 d20 d20", 1329b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d18_d20_d20", 1330b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1331b8021494Sopenharmony_ci kFloatsSameRegisters}, 1332b8021494Sopenharmony_ci {{F64, d24, d14, d14}, 1333b8021494Sopenharmony_ci "F64 d24 d14 d14", 1334b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d24_d14_d14", 1335b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1336b8021494Sopenharmony_ci kFloatsSameRegisters}, 1337b8021494Sopenharmony_ci {{F64, d8, d14, d14}, 1338b8021494Sopenharmony_ci "F64 d8 d14 d14", 1339b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d8_d14_d14", 1340b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1341b8021494Sopenharmony_ci kFloatsSameRegisters}, 1342b8021494Sopenharmony_ci {{F64, d13, d9, d9}, 1343b8021494Sopenharmony_ci "F64 d13 d9 d9", 1344b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d13_d9_d9", 1345b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1346b8021494Sopenharmony_ci kFloatsSameRegisters}, 1347b8021494Sopenharmony_ci {{F64, d18, d31, d31}, 1348b8021494Sopenharmony_ci "F64 d18 d31 d31", 1349b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d18_d31_d31", 1350b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1351b8021494Sopenharmony_ci kFloatsSameRegisters}, 1352b8021494Sopenharmony_ci {{F64, d7, d22, d22}, 1353b8021494Sopenharmony_ci "F64 d7 d22 d22", 1354b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d7_d22_d22", 1355b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1356b8021494Sopenharmony_ci kFloatsSameRegisters}, 1357b8021494Sopenharmony_ci {{F64, d29, d10, d10}, 1358b8021494Sopenharmony_ci "F64 d29 d10 d10", 1359b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d29_d10_d10", 1360b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1361b8021494Sopenharmony_ci kFloatsSameRegisters}, 1362b8021494Sopenharmony_ci {{F64, d5, d29, d29}, 1363b8021494Sopenharmony_ci "F64 d5 d29 d29", 1364b8021494Sopenharmony_ci "FloatsSameRegisters_F64_d5_d29_d29", 1365b8021494Sopenharmony_ci ARRAY_SIZE(kFloatsSameRegisters), 1366b8021494Sopenharmony_ci kFloatsSameRegisters}}; 1367b8021494Sopenharmony_ci 1368b8021494Sopenharmony_ci// We record all inputs to the instructions as outputs. This way, we also check 1369b8021494Sopenharmony_ci// that what shouldn't change didn't change. 1370b8021494Sopenharmony_cistruct TestResult { 1371b8021494Sopenharmony_ci size_t output_size; 1372b8021494Sopenharmony_ci const Inputs* outputs; 1373b8021494Sopenharmony_ci}; 1374b8021494Sopenharmony_ci 1375b8021494Sopenharmony_ci// These headers each contain an array of `TestResult` with the reference output 1376b8021494Sopenharmony_ci// values. The reference arrays are names `kReference{mnemonic}`. 1377b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-dt-drt-drd-drn-drm-float-f64-vadd-a32.h" 1378b8021494Sopenharmony_ci#include "aarch32/traces/simulator-cond-dt-drt-drd-drn-drm-float-f64-vsub-a32.h" 1379b8021494Sopenharmony_ci 1380b8021494Sopenharmony_ci 1381b8021494Sopenharmony_ci// The maximum number of errors to report in detail for each test. 1382b8021494Sopenharmony_ciconst unsigned kErrorReportLimit = 8; 1383b8021494Sopenharmony_ci 1384b8021494Sopenharmony_citypedef void (MacroAssembler::*Fn)(DataType dt, 1385b8021494Sopenharmony_ci DRegister rd, 1386b8021494Sopenharmony_ci DRegister rn, 1387b8021494Sopenharmony_ci DRegister rm); 1388b8021494Sopenharmony_ci 1389b8021494Sopenharmony_civoid TestHelper(Fn instruction, 1390b8021494Sopenharmony_ci const char* mnemonic, 1391b8021494Sopenharmony_ci const TestResult reference[]) { 1392b8021494Sopenharmony_ci SETUP(); 1393b8021494Sopenharmony_ci masm.UseA32(); 1394b8021494Sopenharmony_ci START(); 1395b8021494Sopenharmony_ci 1396b8021494Sopenharmony_ci // Data to compare to `reference`. 1397b8021494Sopenharmony_ci TestResult* results[ARRAY_SIZE(kTests)]; 1398b8021494Sopenharmony_ci 1399b8021494Sopenharmony_ci // Test cases for memory bound instructions may allocate a buffer and save its 1400b8021494Sopenharmony_ci // address in this array. 1401b8021494Sopenharmony_ci byte* scratch_memory_buffers[ARRAY_SIZE(kTests)]; 1402b8021494Sopenharmony_ci 1403b8021494Sopenharmony_ci // Generate a loop for each element in `kTests`. Each loop tests one specific 1404b8021494Sopenharmony_ci // instruction. 1405b8021494Sopenharmony_ci for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) { 1406b8021494Sopenharmony_ci // Allocate results on the heap for this test. 1407b8021494Sopenharmony_ci results[i] = new TestResult; 1408b8021494Sopenharmony_ci results[i]->outputs = new Inputs[kTests[i].input_size]; 1409b8021494Sopenharmony_ci results[i]->output_size = kTests[i].input_size; 1410b8021494Sopenharmony_ci 1411b8021494Sopenharmony_ci size_t input_stride = sizeof(kTests[i].inputs[0]) * kTests[i].input_size; 1412b8021494Sopenharmony_ci VIXL_ASSERT(IsUint32(input_stride)); 1413b8021494Sopenharmony_ci 1414b8021494Sopenharmony_ci scratch_memory_buffers[i] = NULL; 1415b8021494Sopenharmony_ci 1416b8021494Sopenharmony_ci Label loop; 1417b8021494Sopenharmony_ci UseScratchRegisterScope scratch_registers(&masm); 1418b8021494Sopenharmony_ci // Include all registers from r0 ro r12. 1419b8021494Sopenharmony_ci scratch_registers.Include(RegisterList(0x1fff)); 1420b8021494Sopenharmony_ci 1421b8021494Sopenharmony_ci // Values to pass to the macro-assembler. 1422b8021494Sopenharmony_ci DataType dt = kTests[i].operands.dt; 1423b8021494Sopenharmony_ci DRegister rd = kTests[i].operands.rd; 1424b8021494Sopenharmony_ci DRegister rn = kTests[i].operands.rn; 1425b8021494Sopenharmony_ci DRegister rm = kTests[i].operands.rm; 1426b8021494Sopenharmony_ci 1427b8021494Sopenharmony_ci // Allocate reserved registers for our own use. 1428b8021494Sopenharmony_ci Register input_ptr = scratch_registers.Acquire(); 1429b8021494Sopenharmony_ci Register input_end = scratch_registers.Acquire(); 1430b8021494Sopenharmony_ci Register result_ptr = scratch_registers.Acquire(); 1431b8021494Sopenharmony_ci 1432b8021494Sopenharmony_ci // Initialize `input_ptr` to the first element and `input_end` the address 1433b8021494Sopenharmony_ci // after the array. 1434b8021494Sopenharmony_ci __ Mov(input_ptr, Operand::From(kTests[i].inputs)); 1435b8021494Sopenharmony_ci __ Add(input_end, input_ptr, static_cast<uint32_t>(input_stride)); 1436b8021494Sopenharmony_ci __ Mov(result_ptr, Operand::From(results[i]->outputs)); 1437b8021494Sopenharmony_ci __ Bind(&loop); 1438b8021494Sopenharmony_ci 1439b8021494Sopenharmony_ci { 1440b8021494Sopenharmony_ci UseScratchRegisterScope temp_registers(&masm); 1441b8021494Sopenharmony_ci Register fpsr_bits = temp_registers.Acquire(); 1442b8021494Sopenharmony_ci __ Ldr(fpsr_bits, MemOperand(input_ptr, offsetof(Inputs, fpscr))); 1443b8021494Sopenharmony_ci __ Vmsr(FPSCR, fpsr_bits); 1444b8021494Sopenharmony_ci } 1445b8021494Sopenharmony_ci __ Vldr(rd, MemOperand(input_ptr, offsetof(Inputs, rd))); 1446b8021494Sopenharmony_ci __ Vldr(rn, MemOperand(input_ptr, offsetof(Inputs, rn))); 1447b8021494Sopenharmony_ci __ Vldr(rm, MemOperand(input_ptr, offsetof(Inputs, rm))); 1448b8021494Sopenharmony_ci 1449b8021494Sopenharmony_ci (masm.*instruction)(dt, rd, rn, rm); 1450b8021494Sopenharmony_ci 1451b8021494Sopenharmony_ci { 1452b8021494Sopenharmony_ci UseScratchRegisterScope temp_registers(&masm); 1453b8021494Sopenharmony_ci Register fpsr_bits = temp_registers.Acquire(); 1454b8021494Sopenharmony_ci __ Vmrs(RegisterOrAPSR_nzcv(fpsr_bits.GetCode()), FPSCR); 1455b8021494Sopenharmony_ci __ Str(fpsr_bits, MemOperand(result_ptr, offsetof(Inputs, fpscr))); 1456b8021494Sopenharmony_ci } 1457b8021494Sopenharmony_ci __ Vstr(rd, MemOperand(result_ptr, offsetof(Inputs, rd))); 1458b8021494Sopenharmony_ci __ Vstr(rn, MemOperand(result_ptr, offsetof(Inputs, rn))); 1459b8021494Sopenharmony_ci __ Vstr(rm, MemOperand(result_ptr, offsetof(Inputs, rm))); 1460b8021494Sopenharmony_ci 1461b8021494Sopenharmony_ci // Advance the result pointer. 1462b8021494Sopenharmony_ci __ Add(result_ptr, result_ptr, Operand::From(sizeof(kTests[i].inputs[0]))); 1463b8021494Sopenharmony_ci // Loop back until `input_ptr` is lower than `input_base`. 1464b8021494Sopenharmony_ci __ Add(input_ptr, input_ptr, Operand::From(sizeof(kTests[i].inputs[0]))); 1465b8021494Sopenharmony_ci __ Cmp(input_ptr, input_end); 1466b8021494Sopenharmony_ci __ B(ne, &loop); 1467b8021494Sopenharmony_ci } 1468b8021494Sopenharmony_ci 1469b8021494Sopenharmony_ci END(); 1470b8021494Sopenharmony_ci 1471b8021494Sopenharmony_ci RUN(); 1472b8021494Sopenharmony_ci 1473b8021494Sopenharmony_ci if (Test::generate_test_trace()) { 1474b8021494Sopenharmony_ci // Print the results. 1475b8021494Sopenharmony_ci for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) { 1476b8021494Sopenharmony_ci printf("const Inputs kOutputs_%s_%s[] = {\n", 1477b8021494Sopenharmony_ci mnemonic, 1478b8021494Sopenharmony_ci kTests[i].identifier); 1479b8021494Sopenharmony_ci for (size_t j = 0; j < results[i]->output_size; j++) { 1480b8021494Sopenharmony_ci printf(" { "); 1481b8021494Sopenharmony_ci printf("0x%08" PRIx32, results[i]->outputs[j].fpscr); 1482b8021494Sopenharmony_ci printf(", "); 1483b8021494Sopenharmony_ci printf("0x%016" PRIx64, results[i]->outputs[j].rd); 1484b8021494Sopenharmony_ci printf(", "); 1485b8021494Sopenharmony_ci printf("0x%016" PRIx64, results[i]->outputs[j].rn); 1486b8021494Sopenharmony_ci printf(", "); 1487b8021494Sopenharmony_ci printf("0x%016" PRIx64, results[i]->outputs[j].rm); 1488b8021494Sopenharmony_ci printf(" },\n"); 1489b8021494Sopenharmony_ci } 1490b8021494Sopenharmony_ci printf("};\n"); 1491b8021494Sopenharmony_ci } 1492b8021494Sopenharmony_ci printf("const TestResult kReference%s[] = {\n", mnemonic); 1493b8021494Sopenharmony_ci for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) { 1494b8021494Sopenharmony_ci printf(" {\n"); 1495b8021494Sopenharmony_ci printf(" ARRAY_SIZE(kOutputs_%s_%s),\n", 1496b8021494Sopenharmony_ci mnemonic, 1497b8021494Sopenharmony_ci kTests[i].identifier); 1498b8021494Sopenharmony_ci printf(" kOutputs_%s_%s,\n", mnemonic, kTests[i].identifier); 1499b8021494Sopenharmony_ci printf(" },\n"); 1500b8021494Sopenharmony_ci } 1501b8021494Sopenharmony_ci printf("};\n"); 1502b8021494Sopenharmony_ci } else if (kCheckSimulatorTestResults) { 1503b8021494Sopenharmony_ci // Check the results. 1504b8021494Sopenharmony_ci unsigned total_error_count = 0; 1505b8021494Sopenharmony_ci for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) { 1506b8021494Sopenharmony_ci bool instruction_has_errors = false; 1507b8021494Sopenharmony_ci for (size_t j = 0; j < kTests[i].input_size; j++) { 1508b8021494Sopenharmony_ci uint32_t fpscr = results[i]->outputs[j].fpscr; 1509b8021494Sopenharmony_ci uint64_t rd = results[i]->outputs[j].rd; 1510b8021494Sopenharmony_ci uint64_t rn = results[i]->outputs[j].rn; 1511b8021494Sopenharmony_ci uint64_t rm = results[i]->outputs[j].rm; 1512b8021494Sopenharmony_ci uint32_t fpscr_input = kTests[i].inputs[j].fpscr; 1513b8021494Sopenharmony_ci uint64_t rd_input = kTests[i].inputs[j].rd; 1514b8021494Sopenharmony_ci uint64_t rn_input = kTests[i].inputs[j].rn; 1515b8021494Sopenharmony_ci uint64_t rm_input = kTests[i].inputs[j].rm; 1516b8021494Sopenharmony_ci uint32_t fpscr_ref = reference[i].outputs[j].fpscr; 1517b8021494Sopenharmony_ci uint64_t rd_ref = reference[i].outputs[j].rd; 1518b8021494Sopenharmony_ci uint64_t rn_ref = reference[i].outputs[j].rn; 1519b8021494Sopenharmony_ci uint64_t rm_ref = reference[i].outputs[j].rm; 1520b8021494Sopenharmony_ci 1521b8021494Sopenharmony_ci if (((fpscr != fpscr_ref) || (rd != rd_ref) || (rn != rn_ref) || 1522b8021494Sopenharmony_ci (rm != rm_ref)) && 1523b8021494Sopenharmony_ci (++total_error_count <= kErrorReportLimit)) { 1524b8021494Sopenharmony_ci // Print the instruction once even if it triggered multiple failures. 1525b8021494Sopenharmony_ci if (!instruction_has_errors) { 1526b8021494Sopenharmony_ci printf("Error(s) when testing \"%s %s\":\n", 1527b8021494Sopenharmony_ci mnemonic, 1528b8021494Sopenharmony_ci kTests[i].operands_description); 1529b8021494Sopenharmony_ci instruction_has_errors = true; 1530b8021494Sopenharmony_ci } 1531b8021494Sopenharmony_ci // Print subsequent errors. 1532b8021494Sopenharmony_ci printf(" Input: "); 1533b8021494Sopenharmony_ci printf("0x%08" PRIx32, fpscr_input); 1534b8021494Sopenharmony_ci printf(", "); 1535b8021494Sopenharmony_ci printf("0x%016" PRIx64 "(%g)", rd_input, RawbitsToDouble(rd_input)); 1536b8021494Sopenharmony_ci printf(", "); 1537b8021494Sopenharmony_ci printf("0x%016" PRIx64 "(%g)", rn_input, RawbitsToDouble(rn_input)); 1538b8021494Sopenharmony_ci printf(", "); 1539b8021494Sopenharmony_ci printf("0x%016" PRIx64 "(%g)", rm_input, RawbitsToDouble(rm_input)); 1540b8021494Sopenharmony_ci printf("\n"); 1541b8021494Sopenharmony_ci printf(" Expected: "); 1542b8021494Sopenharmony_ci printf("0x%08" PRIx32, fpscr_ref); 1543b8021494Sopenharmony_ci printf(", "); 1544b8021494Sopenharmony_ci printf("0x%016" PRIx64 "(%g)", rd_ref, RawbitsToDouble(rd_ref)); 1545b8021494Sopenharmony_ci printf(", "); 1546b8021494Sopenharmony_ci printf("0x%016" PRIx64 "(%g)", rn_ref, RawbitsToDouble(rn_ref)); 1547b8021494Sopenharmony_ci printf(", "); 1548b8021494Sopenharmony_ci printf("0x%016" PRIx64 "(%g)", rm_ref, RawbitsToDouble(rm_ref)); 1549b8021494Sopenharmony_ci printf("\n"); 1550b8021494Sopenharmony_ci printf(" Found: "); 1551b8021494Sopenharmony_ci printf("0x%08" PRIx32, fpscr); 1552b8021494Sopenharmony_ci printf(", "); 1553b8021494Sopenharmony_ci printf("0x%016" PRIx64 "(%g)", rd, RawbitsToDouble(rd)); 1554b8021494Sopenharmony_ci printf(", "); 1555b8021494Sopenharmony_ci printf("0x%016" PRIx64 "(%g)", rn, RawbitsToDouble(rn)); 1556b8021494Sopenharmony_ci printf(", "); 1557b8021494Sopenharmony_ci printf("0x%016" PRIx64 "(%g)", rm, RawbitsToDouble(rm)); 1558b8021494Sopenharmony_ci printf("\n\n"); 1559b8021494Sopenharmony_ci } 1560b8021494Sopenharmony_ci } 1561b8021494Sopenharmony_ci } 1562b8021494Sopenharmony_ci 1563b8021494Sopenharmony_ci if (total_error_count > kErrorReportLimit) { 1564b8021494Sopenharmony_ci printf("%u other errors follow.\n", 1565b8021494Sopenharmony_ci total_error_count - kErrorReportLimit); 1566b8021494Sopenharmony_ci } 1567b8021494Sopenharmony_ci VIXL_CHECK(total_error_count == 0); 1568b8021494Sopenharmony_ci } else { 1569b8021494Sopenharmony_ci VIXL_WARNING("Assembled the code, but did not run anything.\n"); 1570b8021494Sopenharmony_ci } 1571b8021494Sopenharmony_ci 1572b8021494Sopenharmony_ci for (size_t i = 0; i < ARRAY_SIZE(kTests); i++) { 1573b8021494Sopenharmony_ci delete[] results[i]->outputs; 1574b8021494Sopenharmony_ci delete results[i]; 1575b8021494Sopenharmony_ci delete[] scratch_memory_buffers[i]; 1576b8021494Sopenharmony_ci } 1577b8021494Sopenharmony_ci} 1578b8021494Sopenharmony_ci 1579b8021494Sopenharmony_ci// Instantiate tests for each instruction in the list. 1580b8021494Sopenharmony_ci// TODO: Remove this limitation by having a sandboxing mechanism. 1581b8021494Sopenharmony_ci#if defined(VIXL_HOST_POINTER_32) 1582b8021494Sopenharmony_ci#define TEST(mnemonic) \ 1583b8021494Sopenharmony_ci void Test_##mnemonic() { \ 1584b8021494Sopenharmony_ci TestHelper(&MacroAssembler::mnemonic, #mnemonic, kReference##mnemonic); \ 1585b8021494Sopenharmony_ci } \ 1586b8021494Sopenharmony_ci Test test_##mnemonic( \ 1587b8021494Sopenharmony_ci "AARCH32_SIMULATOR_COND_DT_DRT_DRD_DRN_DRM_FLOAT_F64_" #mnemonic "_A32", \ 1588b8021494Sopenharmony_ci &Test_##mnemonic); 1589b8021494Sopenharmony_ci#else 1590b8021494Sopenharmony_ci#define TEST(mnemonic) \ 1591b8021494Sopenharmony_ci void Test_##mnemonic() { \ 1592b8021494Sopenharmony_ci VIXL_WARNING("This test can only run on a 32-bit host.\n"); \ 1593b8021494Sopenharmony_ci USE(TestHelper); \ 1594b8021494Sopenharmony_ci } \ 1595b8021494Sopenharmony_ci Test test_##mnemonic( \ 1596b8021494Sopenharmony_ci "AARCH32_SIMULATOR_COND_DT_DRT_DRD_DRN_DRM_FLOAT_F64_" #mnemonic "_A32", \ 1597b8021494Sopenharmony_ci &Test_##mnemonic); 1598b8021494Sopenharmony_ci#endif 1599b8021494Sopenharmony_ci 1600b8021494Sopenharmony_ciFOREACH_INSTRUCTION(TEST) 1601b8021494Sopenharmony_ci#undef TEST 1602b8021494Sopenharmony_ci 1603b8021494Sopenharmony_ci} // namespace 1604b8021494Sopenharmony_ci#endif 1605b8021494Sopenharmony_ci 1606b8021494Sopenharmony_ci} // namespace aarch32 1607b8021494Sopenharmony_ci} // namespace vixl 1608