// Copyright 2016, VIXL authors
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above copyright notice,
// this list of conditions and the following disclaimer in the documentation
// and/or other materials provided with the distribution.
// * Neither the name of ARM Limited nor the names of its contributors may be
// used to endorse or promote products derived from this software without
// specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS CONTRIBUTORS "AS IS" AND
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
// SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// -----------------------------------------------------------------------------
// This file is auto generated from the
// test/aarch32/config/template-assembler-aarch32.cc.in template file using
// tools/generate_tests.py.
//
// PLEASE DO NOT EDIT.
// -----------------------------------------------------------------------------
#include "test-runner.h"
#include "test-utils.h"
#include "test-utils-aarch32.h"
#include "aarch32/assembler-aarch32.h"
#include "aarch32/macro-assembler-aarch32.h"
#define BUF_SIZE (4096)
namespace vixl {
namespace aarch32 {
// List of instruction mnemonics.
#define FOREACH_INSTRUCTION(M) \
M(cmn) \
M(cmp) \
M(teq) \
M(tst)
// The following definitions are defined again in each generated test, therefore
// we need to place them in an anomymous namespace. It expresses that they are
// local to this file only, and the compiler is not allowed to share these types
// across test files during template instantiation. Specifically, `Operands` has
// various layouts across generated tests so it absolutely cannot be shared.
#ifdef VIXL_INCLUDE_TARGET_A32
namespace {
// Values to be passed to the assembler to produce the instruction under test.
struct Operands {
Condition cond;
Register rd;
uint32_t immediate;
};
// This structure contains all data needed to test one specific
// instruction.
struct TestData {
// The `operands` field represents what to pass to the assembler to
// produce the instruction.
Operands operands;
// True if we need to generate an IT instruction for this test to be valid.
bool in_it_block;
// The condition to give the IT instruction, this will be set to "al" by
// default.
Condition it_condition;
// Description of the operands, used for error reporting.
const char* operands_description;
// Unique identifier, used for generating traces.
const char* identifier;
};
struct TestResult {
size_t size;
const byte* encoding;
};
// Each element of this array produce one instruction encoding.
const TestData kTests[] =
{{{ls, r10, 0x00ab0000},
false,
al,
"ls r10 0x00ab0000",
"ls_r10_"
"0x00ab0000"},
{{ls, r13, 0xf000000f},
false,
al,
"ls r13 0xf000000f",
"ls_r13_"
"0xf000000f"},
{{pl, r4, 0x00003fc0}, false, al, "pl r4 0x00003fc0", "pl_r4_0x00003fc0"},
{{ne, r15, 0x00ab0000},
false,
al,
"ne r15 0x00ab0000",
"ne_r15_"
"0x00ab0000"},
{{lt, r14, 0x002ac000},
false,
al,
"lt r14 0x002ac000",
"lt_r14_"
"0x002ac000"},
{{eq, r15, 0x000000ab},
false,
al,
"eq r15 0x000000ab",
"eq_r15_"
"0x000000ab"},
{{al, r6, 0x002ac000}, false, al, "al r6 0x002ac000", "al_r6_0x002ac000"},
{{pl, r2, 0x0002ac00}, false, al, "pl r2 0x0002ac00", "pl_r2_0x0002ac00"},
{{mi, r8, 0x00000000}, false, al, "mi r8 0x00000000", "mi_r8_0x00000000"},
{{pl, r13, 0x02ac0000},
false,
al,
"pl r13 0x02ac0000",
"pl_r13_"
"0x02ac0000"},
{{ge, r9, 0xac000002}, false, al, "ge r9 0xac000002", "ge_r9_0xac000002"},
{{ne, r3, 0x000003fc}, false, al, "ne r3 0x000003fc", "ne_r3_0x000003fc"},
{{pl, r10, 0xf000000f},
false,
al,
"pl r10 0xf000000f",
"pl_r10_"
"0xf000000f"},
{{cc, r0, 0x00003fc0}, false, al, "cc r0 0x00003fc0", "cc_r0_0x00003fc0"},
{{gt, r6, 0x002ac000}, false, al, "gt r6 0x002ac000", "gt_r6_0x002ac000"},
{{cs, r1, 0x00ff0000}, false, al, "cs r1 0x00ff0000", "cs_r1_0x00ff0000"},
{{lt, r8, 0x000002ac}, false, al, "lt r8 0x000002ac", "lt_r8_0x000002ac"},
{{vc, r4, 0x2ac00000}, false, al, "vc r4 0x2ac00000", "vc_r4_0x2ac00000"},
{{al, r11, 0x00003fc0},
false,
al,
"al r11 0x00003fc0",
"al_r11_"
"0x00003fc0"},
{{lt, r9, 0x000000ab}, false, al, "lt r9 0x000000ab", "lt_r9_0x000000ab"},
{{le, r15, 0x0000ff00},
false,
al,
"le r15 0x0000ff00",
"le_r15_"
"0x0000ff00"},
{{vc, r9, 0xff000000}, false, al, "vc r9 0xff000000", "vc_r9_0xff000000"},
{{ge, r0, 0x0ff00000}, false, al, "ge r0 0x0ff00000", "ge_r0_0x0ff00000"},
{{vc, r1, 0x00ff0000}, false, al, "vc r1 0x00ff0000", "vc_r1_0x00ff0000"},
{{vs, r12, 0x00000ff0},
false,
al,
"vs r12 0x00000ff0",
"vs_r12_"
"0x00000ff0"},
{{pl, r13, 0x003fc000},
false,
al,
"pl r13 0x003fc000",
"pl_r13_"
"0x003fc000"},
{{eq, r4, 0xff000000}, false, al, "eq r4 0xff000000", "eq_r4_0xff000000"},
{{eq, r12, 0xac000002},
false,
al,
"eq r12 0xac000002",
"eq_r12_"
"0xac000002"},
{{al, r11, 0x000000ab},
false,
al,
"al r11 0x000000ab",
"al_r11_"
"0x000000ab"},
{{ge, r10, 0x00ff0000},
false,
al,
"ge r10 0x00ff0000",
"ge_r10_"
"0x00ff0000"},
{{vs, r7, 0x0002ac00}, false, al, "vs r7 0x0002ac00", "vs_r7_0x0002ac00"},
{{le, r7, 0x002ac000}, false, al, "le r7 0x002ac000", "le_r7_0x002ac000"},
{{vc, r9, 0x000003fc}, false, al, "vc r9 0x000003fc", "vc_r9_0x000003fc"},
{{vs, r14, 0x002ac000},
false,
al,
"vs r14 0x002ac000",
"vs_r14_"
"0x002ac000"},
{{vs, r1, 0x000003fc}, false, al, "vs r1 0x000003fc", "vs_r1_0x000003fc"},
{{le, r13, 0x3fc00000},
false,
al,
"le r13 0x3fc00000",
"le_r13_"
"0x3fc00000"},
{{ne, r9, 0x0002ac00}, false, al, "ne r9 0x0002ac00", "ne_r9_0x0002ac00"},
{{al, r0, 0x00ab0000}, false, al, "al r0 0x00ab0000", "al_r0_0x00ab0000"},
{{hi, r5, 0xff000000}, false, al, "hi r5 0xff000000", "hi_r5_0xff000000"},
{{hi, r14, 0x000000ab},
false,
al,
"hi r14 0x000000ab",
"hi_r14_"
"0x000000ab"},
{{hi, r14, 0x000003fc},
false,
al,
"hi r14 0x000003fc",
"hi_r14_"
"0x000003fc"},
{{mi, r14, 0x03fc0000},
false,
al,
"mi r14 0x03fc0000",
"mi_r14_"
"0x03fc0000"},
{{mi, r8, 0x000000ff}, false, al, "mi r8 0x000000ff", "mi_r8_0x000000ff"},
{{gt, r6, 0x000ab000}, false, al, "gt r6 0x000ab000", "gt_r6_0x000ab000"},
{{mi, r12, 0x0ff00000},
false,
al,
"mi r12 0x0ff00000",
"mi_r12_"
"0x0ff00000"},
{{vs, r3, 0xff000000}, false, al, "vs r3 0xff000000", "vs_r3_0xff000000"},
{{vc, r7, 0x00ab0000}, false, al, "vc r7 0x00ab0000", "vc_r7_0x00ab0000"},
{{hi, r6, 0x03fc0000}, false, al, "hi r6 0x03fc0000", "hi_r6_0x03fc0000"},
{{ls, r5, 0x00ab0000}, false, al, "ls r5 0x00ab0000", "ls_r5_0x00ab0000"},
{{ls, r4, 0x000002ac}, false, al, "ls r4 0x000002ac", "ls_r4_0x000002ac"},
{{le, r13, 0x03fc0000},
false,
al,
"le r13 0x03fc0000",
"le_r13_"
"0x03fc0000"},
{{le, r15, 0x002ac000},
false,
al,
"le r15 0x002ac000",
"le_r15_"
"0x002ac000"},
{{pl, r6, 0xff000000}, false, al, "pl r6 0xff000000", "pl_r6_0xff000000"},
{{gt, r7, 0x00000ab0}, false, al, "gt r7 0x00000ab0", "gt_r7_0x00000ab0"},
{{hi, r3, 0x2ac00000}, false, al, "hi r3 0x2ac00000", "hi_r3_0x2ac00000"},
{{gt, r15, 0x00000000},
false,
al,
"gt r15 0x00000000",
"gt_r15_"
"0x00000000"},
{{gt, r1, 0x002ac000}, false, al, "gt r1 0x002ac000", "gt_r1_0x002ac000"},
{{hi, r2, 0x0000ff00}, false, al, "hi r2 0x0000ff00", "hi_r2_0x0000ff00"},
{{pl, r10, 0x03fc0000},
false,
al,
"pl r10 0x03fc0000",
"pl_r10_"
"0x03fc0000"},
{{gt, r10, 0xb000000a},
false,
al,
"gt r10 0xb000000a",
"gt_r10_"
"0xb000000a"},
{{ge, r10, 0x002ac000},
false,
al,
"ge r10 0x002ac000",
"ge_r10_"
"0x002ac000"},
{{al, r4, 0x0ab00000}, false, al, "al r4 0x0ab00000", "al_r4_0x0ab00000"},
{{ne, r12, 0x00000000},
false,
al,
"ne r12 0x00000000",
"ne_r12_"
"0x00000000"},
{{cs, r5, 0x00003fc0}, false, al, "cs r5 0x00003fc0", "cs_r5_0x00003fc0"},
{{cc, r6, 0x000000ff}, false, al, "cc r6 0x000000ff", "cc_r6_0x000000ff"},
{{hi, r14, 0x03fc0000},
false,
al,
"hi r14 0x03fc0000",
"hi_r14_"
"0x03fc0000"},
{{hi, r3, 0xab000000}, false, al, "hi r3 0xab000000", "hi_r3_0xab000000"},
{{lt, r2, 0x000ff000}, false, al, "lt r2 0x000ff000", "lt_r2_0x000ff000"},
{{gt, r3, 0x00ff0000}, false, al, "gt r3 0x00ff0000", "gt_r3_0x00ff0000"},
{{le, r14, 0x0ab00000},
false,
al,
"le r14 0x0ab00000",
"le_r14_"
"0x0ab00000"},
{{cc, r13, 0x03fc0000},
false,
al,
"cc r13 0x03fc0000",
"cc_r13_"
"0x03fc0000"},
{{gt, r6, 0xb000000a}, false, al, "gt r6 0xb000000a", "gt_r6_0xb000000a"},
{{pl, r3, 0x2ac00000}, false, al, "pl r3 0x2ac00000", "pl_r3_0x2ac00000"},
{{mi, r15, 0x000000ff},
false,
al,
"mi r15 0x000000ff",
"mi_r15_"
"0x000000ff"},
{{gt, r4, 0x00000ff0}, false, al, "gt r4 0x00000ff0", "gt_r4_0x00000ff0"},
{{ne, r4, 0x000003fc}, false, al, "ne r4 0x000003fc", "ne_r4_0x000003fc"},
{{ne, r5, 0x00ff0000}, false, al, "ne r5 0x00ff0000", "ne_r5_0x00ff0000"},
{{ge, r7, 0x000003fc}, false, al, "ge r7 0x000003fc", "ge_r7_0x000003fc"},
{{vs, r5, 0x00000000}, false, al, "vs r5 0x00000000", "vs_r5_0x00000000"},
{{vs, r6, 0x2ac00000}, false, al, "vs r6 0x2ac00000", "vs_r6_0x2ac00000"},
{{mi, r1, 0x3fc00000}, false, al, "mi r1 0x3fc00000", "mi_r1_0x3fc00000"},
{{gt, r8, 0xc000002a}, false, al, "gt r8 0xc000002a", "gt_r8_0xc000002a"},
{{pl, r10, 0x000000ab},
false,
al,
"pl r10 0x000000ab",
"pl_r10_"
"0x000000ab"},
{{mi, r6, 0xab000000}, false, al, "mi r6 0xab000000", "mi_r6_0xab000000"},
{{ls, r12, 0x3fc00000},
false,
al,
"ls r12 0x3fc00000",
"ls_r12_"
"0x3fc00000"},
{{vs, r13, 0x03fc0000},
false,
al,
"vs r13 0x03fc0000",
"vs_r13_"
"0x03fc0000"},
{{eq, r8, 0x00000ab0}, false, al, "eq r8 0x00000ab0", "eq_r8_0x00000ab0"},
{{gt, r6, 0x000000ff}, false, al, "gt r6 0x000000ff", "gt_r6_0x000000ff"},
{{vs, r5, 0x000ab000}, false, al, "vs r5 0x000ab000", "vs_r5_0x000ab000"},
{{mi, r1, 0x2ac00000}, false, al, "mi r1 0x2ac00000", "mi_r1_0x2ac00000"},
{{vs, r6, 0x00003fc0}, false, al, "vs r6 0x00003fc0", "vs_r6_0x00003fc0"},
{{gt, r6, 0x000002ac}, false, al, "gt r6 0x000002ac", "gt_r6_0x000002ac"},
{{eq, r2, 0x00000000}, false, al, "eq r2 0x00000000", "eq_r2_0x00000000"},
{{eq, r10, 0xc000003f},
false,
al,
"eq r10 0xc000003f",
"eq_r10_"
"0xc000003f"},
{{mi, r7, 0x00ab0000}, false, al, "mi r7 0x00ab0000", "mi_r7_0x00ab0000"},
{{cc, r7, 0x2ac00000}, false, al, "cc r7 0x2ac00000", "cc_r7_0x2ac00000"},
{{pl, r4, 0x00ab0000}, false, al, "pl r4 0x00ab0000", "pl_r4_0x00ab0000"},
{{ne, r15, 0x00000ff0},
false,
al,
"ne r15 0x00000ff0",
"ne_r15_"
"0x00000ff0"},
{{al, r6, 0x02ac0000}, false, al, "al r6 0x02ac0000", "al_r6_0x02ac0000"},
{{pl, r6, 0x000002ac}, false, al, "pl r6 0x000002ac", "pl_r6_0x000002ac"},
{{ne, r14, 0x00ff0000},
false,
al,
"ne r14 0x00ff0000",
"ne_r14_"
"0x00ff0000"},
{{ne, r5, 0x0003fc00}, false, al, "ne r5 0x0003fc00", "ne_r5_0x0003fc00"},
{{pl, r6, 0x00000ab0}, false, al, "pl r6 0x00000ab0", "pl_r6_0x00000ab0"},
{{eq, r10, 0x00002ac0},
false,
al,
"eq r10 0x00002ac0",
"eq_r10_"
"0x00002ac0"},
{{mi, r4, 0x00000ab0}, false, al, "mi r4 0x00000ab0", "mi_r4_0x00000ab0"},
{{vc, r5, 0x000ab000}, false, al, "vc r5 0x000ab000", "vc_r5_0x000ab000"},
{{ge, r0, 0x02ac0000}, false, al, "ge r0 0x02ac0000", "ge_r0_0x02ac0000"},
{{pl, r5, 0x000002ac}, false, al, "pl r5 0x000002ac", "pl_r5_0x000002ac"},
{{ge, r13, 0x00000ab0},
false,
al,
"ge r13 0x00000ab0",
"ge_r13_"
"0x00000ab0"},
{{eq, r2, 0x03fc0000}, false, al, "eq r2 0x03fc0000", "eq_r2_0x03fc0000"},
{{lt, r11, 0x00000ab0},
false,
al,
"lt r11 0x00000ab0",
"lt_r11_"
"0x00000ab0"},
{{ge, r6, 0x00000000}, false, al, "ge r6 0x00000000", "ge_r6_0x00000000"},
{{gt, r2, 0xac000002}, false, al, "gt r2 0xac000002", "gt_r2_0xac000002"},
{{le, r15, 0x000000ab},
false,
al,
"le r15 0x000000ab",
"le_r15_"
"0x000000ab"},
{{cc, r4, 0x00000ff0}, false, al, "cc r4 0x00000ff0", "cc_r4_0x00000ff0"},
{{pl, r10, 0x02ac0000},
false,
al,
"pl r10 0x02ac0000",
"pl_r10_"
"0x02ac0000"},
{{gt, r9, 0x00000000}, false, al, "gt r9 0x00000000", "gt_r9_0x00000000"},
{{vs, r8, 0x000000ff}, false, al, "vs r8 0x000000ff", "vs_r8_0x000000ff"},
{{gt, r14, 0x0002ac00},
false,
al,
"gt r14 0x0002ac00",
"gt_r14_"
"0x0002ac00"},
{{vs, r14, 0x00002ac0},
false,
al,
"vs r14 0x00002ac0",
"vs_r14_"
"0x00002ac0"},
{{ge, r12, 0x00000000},
false,
al,
"ge r12 0x00000000",
"ge_r12_"
"0x00000000"},
{{vc, r8, 0xf000000f}, false, al, "vc r8 0xf000000f", "vc_r8_0xf000000f"},
{{cs, r6, 0x00003fc0}, false, al, "cs r6 0x00003fc0", "cs_r6_0x00003fc0"},
{{le, r4, 0x000003fc}, false, al, "le r4 0x000003fc", "le_r4_0x000003fc"},
{{cs, r5, 0x000ff000}, false, al, "cs r5 0x000ff000", "cs_r5_0x000ff000"},
{{eq, r2, 0x0000ff00}, false, al, "eq r2 0x0000ff00", "eq_r2_0x0000ff00"},
{{pl, r10, 0x0ab00000},
false,
al,
"pl r10 0x0ab00000",
"pl_r10_"
"0x0ab00000"},
{{le, r11, 0xac000002},
false,
al,
"le r11 0xac000002",
"le_r11_"
"0xac000002"},
{{vs, r15, 0x00003fc0},
false,
al,
"vs r15 0x00003fc0",
"vs_r15_"
"0x00003fc0"},
{{lt, r2, 0x0002ac00}, false, al, "lt r2 0x0002ac00", "lt_r2_0x0002ac00"},
{{eq, r1, 0x00ab0000}, false, al, "eq r1 0x00ab0000", "eq_r1_0x00ab0000"},
{{cc, r7, 0x03fc0000}, false, al, "cc r7 0x03fc0000", "cc_r7_0x03fc0000"},
{{mi, r6, 0x00000ab0}, false, al, "mi r6 0x00000ab0", "mi_r6_0x00000ab0"},
{{eq, r4, 0x00000ab0}, false, al, "eq r4 0x00000ab0", "eq_r4_0x00000ab0"},
{{ls, r3, 0x0003fc00}, false, al, "ls r3 0x0003fc00", "ls_r3_0x0003fc00"},
{{mi, r6, 0x000ab000}, false, al, "mi r6 0x000ab000", "mi_r6_0x000ab000"},
{{ne, r12, 0x003fc000},
false,
al,
"ne r12 0x003fc000",
"ne_r12_"
"0x003fc000"},
{{eq, r11, 0x00ff0000},
false,
al,
"eq r11 0x00ff0000",
"eq_r11_"
"0x00ff0000"},
{{cs, r13, 0x00ab0000},
false,
al,
"cs r13 0x00ab0000",
"cs_r13_"
"0x00ab0000"},
{{eq, r5, 0x000003fc}, false, al, "eq r5 0x000003fc", "eq_r5_0x000003fc"},
{{vs, r6, 0x0003fc00}, false, al, "vs r6 0x0003fc00", "vs_r6_0x0003fc00"},
{{pl, r8, 0x0ff00000}, false, al, "pl r8 0x0ff00000", "pl_r8_0x0ff00000"},
{{pl, r11, 0x0000ab00},
false,
al,
"pl r11 0x0000ab00",
"pl_r11_"
"0x0000ab00"},
{{le, r2, 0xac000002}, false, al, "le r2 0xac000002", "le_r2_0xac000002"},
{{vc, r10, 0x000ff000},
false,
al,
"vc r10 0x000ff000",
"vc_r10_"
"0x000ff000"},
{{le, r4, 0x00000ff0}, false, al, "le r4 0x00000ff0", "le_r4_0x00000ff0"},
{{gt, r12, 0x00000ff0},
false,
al,
"gt r12 0x00000ff0",
"gt_r12_"
"0x00000ff0"},
{{le, r5, 0x0002ac00}, false, al, "le r5 0x0002ac00", "le_r5_0x0002ac00"},
{{le, r0, 0xac000002}, false, al, "le r0 0xac000002", "le_r0_0xac000002"},
{{vs, r11, 0x0ff00000},
false,
al,
"vs r11 0x0ff00000",
"vs_r11_"
"0x0ff00000"},
{{ls, r0, 0x000ab000}, false, al, "ls r0 0x000ab000", "ls_r0_0x000ab000"},
{{ls, r2, 0xf000000f}, false, al, "ls r2 0xf000000f", "ls_r2_0xf000000f"},
{{cs, r3, 0x0ff00000}, false, al, "cs r3 0x0ff00000", "cs_r3_0x0ff00000"},
{{hi, r8, 0x0ff00000}, false, al, "hi r8 0x0ff00000", "hi_r8_0x0ff00000"},
{{gt, r3, 0x00002ac0}, false, al, "gt r3 0x00002ac0", "gt_r3_0x00002ac0"},
{{al, r15, 0xab000000},
false,
al,
"al r15 0xab000000",
"al_r15_"
"0xab000000"},
{{eq, r13, 0x000000ab},
false,
al,
"eq r13 0x000000ab",
"eq_r13_"
"0x000000ab"},
{{al, r2, 0xc000002a}, false, al, "al r2 0xc000002a", "al_r2_0xc000002a"},
{{eq, r13, 0x03fc0000},
false,
al,
"eq r13 0x03fc0000",
"eq_r13_"
"0x03fc0000"},
{{eq, r3, 0x00000ff0}, false, al, "eq r3 0x00000ff0", "eq_r3_0x00000ff0"},
{{hi, r12, 0x00002ac0},
false,
al,
"hi r12 0x00002ac0",
"hi_r12_"
"0x00002ac0"},
{{mi, r2, 0x0ff00000}, false, al, "mi r2 0x0ff00000", "mi_r2_0x0ff00000"},
{{ne, r9, 0x003fc000}, false, al, "ne r9 0x003fc000", "ne_r9_0x003fc000"},
{{eq, r14, 0x03fc0000},
false,
al,
"eq r14 0x03fc0000",
"eq_r14_"
"0x03fc0000"},
{{cc, r0, 0x002ac000}, false, al, "cc r0 0x002ac000", "cc_r0_0x002ac000"},
{{vc, r14, 0x00000ab0},
false,
al,
"vc r14 0x00000ab0",
"vc_r14_"
"0x00000ab0"},
{{mi, r15, 0xf000000f},
false,
al,
"mi r15 0xf000000f",
"mi_r15_"
"0xf000000f"},
{{ge, r9, 0x000003fc}, false, al, "ge r9 0x000003fc", "ge_r9_0x000003fc"},
{{vs, r13, 0xac000002},
false,
al,
"vs r13 0xac000002",
"vs_r13_"
"0xac000002"},
{{vs, r1, 0x3fc00000}, false, al, "vs r1 0x3fc00000", "vs_r1_0x3fc00000"},
{{eq, r12, 0x00003fc0},
false,
al,
"eq r12 0x00003fc0",
"eq_r12_"
"0x00003fc0"},
{{mi, r6, 0xff000000}, false, al, "mi r6 0xff000000", "mi_r6_0xff000000"},
{{ne, r5, 0x000003fc}, false, al, "ne r5 0x000003fc", "ne_r5_0x000003fc"},
{{lt, r8, 0x0ff00000}, false, al, "lt r8 0x0ff00000", "lt_r8_0x0ff00000"},
{{hi, r7, 0x3fc00000}, false, al, "hi r7 0x3fc00000", "hi_r7_0x3fc00000"},
{{ge, r10, 0xac000002},
false,
al,
"ge r10 0xac000002",
"ge_r10_"
"0xac000002"},
{{vs, r2, 0x0000ff00}, false, al, "vs r2 0x0000ff00", "vs_r2_0x0000ff00"},
{{al, r6, 0x000000ab}, false, al, "al r6 0x000000ab", "al_r6_0x000000ab"},
{{ge, r7, 0x00ff0000}, false, al, "ge r7 0x00ff0000", "ge_r7_0x00ff0000"},
{{ne, r0, 0x000ff000}, false, al, "ne r0 0x000ff000", "ne_r0_0x000ff000"},
{{mi, r6, 0x000000ab}, false, al, "mi r6 0x000000ab", "mi_r6_0x000000ab"},
{{hi, r1, 0xf000000f}, false, al, "hi r1 0xf000000f", "hi_r1_0xf000000f"},
{{mi, r6, 0x2ac00000}, false, al, "mi r6 0x2ac00000", "mi_r6_0x2ac00000"},
{{vc, r11, 0x000000ff},
false,
al,
"vc r11 0x000000ff",
"vc_r11_"
"0x000000ff"},
{{ls, r14, 0x02ac0000},
false,
al,
"ls r14 0x02ac0000",
"ls_r14_"
"0x02ac0000"},
{{ge, r5, 0x003fc000}, false, al, "ge r5 0x003fc000", "ge_r5_0x003fc000"},
{{ls, r12, 0x0000ab00},
false,
al,
"ls r12 0x0000ab00",
"ls_r12_"
"0x0000ab00"},
{{cc, r15, 0x00000ab0},
false,
al,
"cc r15 0x00000ab0",
"cc_r15_"
"0x00000ab0"},
{{vc, r12, 0x0000ab00},
false,
al,
"vc r12 0x0000ab00",
"vc_r12_"
"0x0000ab00"},
{{vs, r2, 0xc000002a}, false, al, "vs r2 0xc000002a", "vs_r2_0xc000002a"},
{{lt, r7, 0x0ab00000}, false, al, "lt r7 0x0ab00000", "lt_r7_0x0ab00000"},
{{ls, r6, 0x00000ff0}, false, al, "ls r6 0x00000ff0", "ls_r6_0x00000ff0"},
{{vc, r10, 0x000000ff},
false,
al,
"vc r10 0x000000ff",
"vc_r10_"
"0x000000ff"},
{{ls, r4, 0x0000ab00}, false, al, "ls r4 0x0000ab00", "ls_r4_0x0000ab00"},
{{mi, r10, 0x003fc000},
false,
al,
"mi r10 0x003fc000",
"mi_r10_"
"0x003fc000"},
{{ls, r1, 0x000002ac}, false, al, "ls r1 0x000002ac", "ls_r1_0x000002ac"},
{{ge, r7, 0xb000000a}, false, al, "ge r7 0xb000000a", "ge_r7_0xb000000a"},
{{gt, r4, 0xf000000f}, false, al, "gt r4 0xf000000f", "gt_r4_0xf000000f"},
{{vc, r8, 0x002ac000}, false, al, "vc r8 0x002ac000", "vc_r8_0x002ac000"},
{{eq, r5, 0x0ab00000}, false, al, "eq r5 0x0ab00000", "eq_r5_0x0ab00000"},
{{gt, r2, 0xf000000f}, false, al, "gt r2 0xf000000f", "gt_r2_0xf000000f"},
{{gt, r6, 0xff000000}, false, al, "gt r6 0xff000000", "gt_r6_0xff000000"},
{{ls, r8, 0x0ab00000}, false, al, "ls r8 0x0ab00000", "ls_r8_0x0ab00000"},
{{vc, r0, 0xb000000a}, false, al, "vc r0 0xb000000a", "vc_r0_0xb000000a"},
{{lt, r6, 0x03fc0000}, false, al, "lt r6 0x03fc0000", "lt_r6_0x03fc0000"},
{{ge, r10, 0x0000ab00},
false,
al,
"ge r10 0x0000ab00",
"ge_r10_"
"0x0000ab00"},
{{hi, r4, 0x000ab000}, false, al, "hi r4 0x000ab000", "hi_r4_0x000ab000"},
{{hi, r11, 0x3fc00000},
false,
al,
"hi r11 0x3fc00000",
"hi_r11_"
"0x3fc00000"},
{{vs, r12, 0xc000003f},
false,
al,
"vs r12 0xc000003f",
"vs_r12_"
"0xc000003f"},
{{gt, r12, 0xb000000a},
false,
al,
"gt r12 0xb000000a",
"gt_r12_"
"0xb000000a"},
{{eq, r11, 0x2ac00000},
false,
al,
"eq r11 0x2ac00000",
"eq_r11_"
"0x2ac00000"},
{{hi, r0, 0xc000003f}, false, al, "hi r0 0xc000003f", "hi_r0_0xc000003f"},
{{cs, r12, 0xac000002},
false,
al,
"cs r12 0xac000002",
"cs_r12_"
"0xac000002"},
{{hi, r9, 0x3fc00000}, false, al, "hi r9 0x3fc00000", "hi_r9_0x3fc00000"},
{{vs, r2, 0x00002ac0}, false, al, "vs r2 0x00002ac0", "vs_r2_0x00002ac0"},
{{al, r12, 0xb000000a},
false,
al,
"al r12 0xb000000a",
"al_r12_"
"0xb000000a"},
{{gt, r12, 0x3fc00000},
false,
al,
"gt r12 0x3fc00000",
"gt_r12_"
"0x3fc00000"},
{{gt, r6, 0xf000000f}, false, al, "gt r6 0xf000000f", "gt_r6_0xf000000f"},
{{vc, r14, 0x000000ff},
false,
al,
"vc r14 0x000000ff",
"vc_r14_"
"0x000000ff"},
{{pl, r7, 0x0002ac00}, false, al, "pl r7 0x0002ac00", "pl_r7_0x0002ac00"},
{{ge, r1, 0x03fc0000}, false, al, "ge r1 0x03fc0000", "ge_r1_0x03fc0000"},
{{hi, r10, 0x0002ac00},
false,
al,
"hi r10 0x0002ac00",
"hi_r10_"
"0x0002ac00"},
{{gt, r4, 0x002ac000}, false, al, "gt r4 0x002ac000", "gt_r4_0x002ac000"},
{{vc, r5, 0x000000ff}, false, al, "vc r5 0x000000ff", "vc_r5_0x000000ff"},
{{pl, r15, 0x0000ab00},
false,
al,
"pl r15 0x0000ab00",
"pl_r15_"
"0x0000ab00"},
{{cc, r4, 0x00ab0000}, false, al, "cc r4 0x00ab0000", "cc_r4_0x00ab0000"},
{{pl, r11, 0xff000000},
false,
al,
"pl r11 0xff000000",
"pl_r11_"
"0xff000000"},
{{pl, r2, 0xf000000f}, false, al, "pl r2 0xf000000f", "pl_r2_0xf000000f"},
{{cc, r8, 0xb000000a}, false, al, "cc r8 0xb000000a", "cc_r8_0xb000000a"},
{{al, r13, 0x000000ff},
false,
al,
"al r13 0x000000ff",
"al_r13_"
"0x000000ff"},
{{mi, r6, 0x000003fc}, false, al, "mi r6 0x000003fc", "mi_r6_0x000003fc"},
{{vs, r13, 0x02ac0000},
false,
al,
"vs r13 0x02ac0000",
"vs_r13_"
"0x02ac0000"},
{{mi, r4, 0x00ff0000}, false, al, "mi r4 0x00ff0000", "mi_r4_0x00ff0000"},
{{cs, r3, 0x000003fc}, false, al, "cs r3 0x000003fc", "cs_r3_0x000003fc"},
{{pl, r13, 0xab000000},
false,
al,
"pl r13 0xab000000",
"pl_r13_"
"0xab000000"},
{{ls, r9, 0x002ac000}, false, al, "ls r9 0x002ac000", "ls_r9_0x002ac000"},
{{eq, r1, 0xc000002a}, false, al, "eq r1 0xc000002a", "eq_r1_0xc000002a"},
{{lt, r12, 0x00000000},
false,
al,
"lt r12 0x00000000",
"lt_r12_"
"0x00000000"},
{{ge, r14, 0xff000000},
false,
al,
"ge r14 0xff000000",
"ge_r14_"
"0xff000000"},
{{lt, r9, 0x002ac000}, false, al, "lt r9 0x002ac000", "lt_r9_0x002ac000"},
{{lt, r10, 0x00000ff0},
false,
al,
"lt r10 0x00000ff0",
"lt_r10_"
"0x00000ff0"},
{{vs, r5, 0x000000ff}, false, al, "vs r5 0x000000ff", "vs_r5_0x000000ff"},
{{cc, r12, 0x03fc0000},
false,
al,
"cc r12 0x03fc0000",
"cc_r12_"
"0x03fc0000"},
{{ne, r4, 0x00000000}, false, al, "ne r4 0x00000000", "ne_r4_0x00000000"},
{{mi, r13, 0xff000000},
false,
al,
"mi r13 0xff000000",
"mi_r13_"
"0xff000000"},
{{ne, r7, 0x00000ff0}, false, al, "ne r7 0x00000ff0", "ne_r7_0x00000ff0"},
{{vs, r2, 0xc000003f}, false, al, "vs r2 0xc000003f", "vs_r2_0xc000003f"},
{{al, r5, 0x00ff0000}, false, al, "al r5 0x00ff0000", "al_r5_0x00ff0000"},
{{hi, r15, 0x00000ff0},
false,
al,
"hi r15 0x00000ff0",
"hi_r15_"
"0x00000ff0"},
{{ls, r8, 0x00003fc0}, false, al, "ls r8 0x00003fc0", "ls_r8_0x00003fc0"},
{{vs, r0, 0xff000000}, false, al, "vs r0 0xff000000", "vs_r0_0xff000000"},
{{vs, r6, 0x000000ab}, false, al, "vs r6 0x000000ab", "vs_r6_0x000000ab"},
{{cs, r9, 0x00ab0000}, false, al, "cs r9 0x00ab0000", "cs_r9_0x00ab0000"},
{{hi, r1, 0x0002ac00}, false, al, "hi r1 0x0002ac00", "hi_r1_0x0002ac00"},
{{hi, r15, 0x2ac00000},
false,
al,
"hi r15 0x2ac00000",
"hi_r15_"
"0x2ac00000"},
{{hi, r6, 0x0002ac00}, false, al, "hi r6 0x0002ac00", "hi_r6_0x0002ac00"},
{{ge, r4, 0xc000003f}, false, al, "ge r4 0xc000003f", "ge_r4_0xc000003f"},
{{ls, r10, 0x0000ff00},
false,
al,
"ls r10 0x0000ff00",
"ls_r10_"
"0x0000ff00"},
{{ne, r11, 0x000003fc},
false,
al,
"ne r11 0x000003fc",
"ne_r11_"
"0x000003fc"},
{{ls, r3, 0x0002ac00}, false, al, "ls r3 0x0002ac00", "ls_r3_0x0002ac00"},
{{al, r12, 0x000003fc},
false,
al,
"al r12 0x000003fc",
"al_r12_"
"0x000003fc"},
{{le, r7, 0xf000000f}, false, al, "le r7 0xf000000f", "le_r7_0xf000000f"},
{{al, r11, 0x00000ab0},
false,
al,
"al r11 0x00000ab0",
"al_r11_"
"0x00000ab0"},
{{cs, r13, 0x02ac0000},
false,
al,
"cs r13 0x02ac0000",
"cs_r13_"
"0x02ac0000"},
{{hi, r1, 0x00000ff0}, false, al, "hi r1 0x00000ff0", "hi_r1_0x00000ff0"},
{{le, r11, 0x3fc00000},
false,
al,
"le r11 0x3fc00000",
"le_r11_"
"0x3fc00000"},
{{hi, r9, 0x000003fc}, false, al, "hi r9 0x000003fc", "hi_r9_0x000003fc"},
{{mi, r13, 0x000002ac},
false,
al,
"mi r13 0x000002ac",
"mi_r13_"
"0x000002ac"},
{{lt, r12, 0x000003fc},
false,
al,
"lt r12 0x000003fc",
"lt_r12_"
"0x000003fc"},
{{lt, r14, 0x00000ab0},
false,
al,
"lt r14 0x00000ab0",
"lt_r14_"
"0x00000ab0"},
{{gt, r1, 0x3fc00000}, false, al, "gt r1 0x3fc00000", "gt_r1_0x3fc00000"},
{{cc, r14, 0xb000000a},
false,
al,
"cc r14 0xb000000a",
"cc_r14_"
"0xb000000a"},
{{ge, r0, 0x000002ac}, false, al, "ge r0 0x000002ac", "ge_r0_0x000002ac"},
{{eq, r12, 0x000003fc},
false,
al,
"eq r12 0x000003fc",
"eq_r12_"
"0x000003fc"},
{{vc, r13, 0x0ab00000},
false,
al,
"vc r13 0x0ab00000",
"vc_r13_"
"0x0ab00000"},
{{pl, r10, 0x0003fc00},
false,
al,
"pl r10 0x0003fc00",
"pl_r10_"
"0x0003fc00"},
{{le, r7, 0x0000ff00}, false, al, "le r7 0x0000ff00", "le_r7_0x0000ff00"},
{{eq, r5, 0x0003fc00}, false, al, "eq r5 0x0003fc00", "eq_r5_0x0003fc00"},
{{pl, r1, 0xfc000003}, false, al, "pl r1 0xfc000003", "pl_r1_0xfc000003"},
{{gt, r15, 0x000ff000},
false,
al,
"gt r15 0x000ff000",
"gt_r15_"
"0x000ff000"},
{{mi, r2, 0xb000000a}, false, al, "mi r2 0xb000000a", "mi_r2_0xb000000a"},
{{cs, r8, 0x0000ff00}, false, al, "cs r8 0x0000ff00", "cs_r8_0x0000ff00"},
{{vs, r8, 0x00002ac0}, false, al, "vs r8 0x00002ac0", "vs_r8_0x00002ac0"},
{{cs, r5, 0x00ab0000}, false, al, "cs r5 0x00ab0000", "cs_r5_0x00ab0000"},
{{pl, r3, 0x00ab0000}, false, al, "pl r3 0x00ab0000", "pl_r3_0x00ab0000"},
{{hi, r5, 0x02ac0000}, false, al, "hi r5 0x02ac0000", "hi_r5_0x02ac0000"},
{{cc, r9, 0x000002ac}, false, al, "cc r9 0x000002ac", "cc_r9_0x000002ac"},
{{ls, r13, 0x0000ab00},
false,
al,
"ls r13 0x0000ab00",
"ls_r13_"
"0x0000ab00"},
{{pl, r11, 0x00000ab0},
false,
al,
"pl r11 0x00000ab0",
"pl_r11_"
"0x00000ab0"},
{{ge, r14, 0x3fc00000},
false,
al,
"ge r14 0x3fc00000",
"ge_r14_"
"0x3fc00000"},
{{al, r14, 0x0000ab00},
false,
al,
"al r14 0x0000ab00",
"al_r14_"
"0x0000ab00"},
{{lt, r6, 0xac000002}, false, al, "lt r6 0xac000002", "lt_r6_0xac000002"},
{{vc, r3, 0x000ff000}, false, al, "vc r3 0x000ff000", "vc_r3_0x000ff000"},
{{ne, r8, 0xfc000003}, false, al, "ne r8 0xfc000003", "ne_r8_0xfc000003"},
{{cs, r6, 0x000ab000}, false, al, "cs r6 0x000ab000", "cs_r6_0x000ab000"},
{{hi, r15, 0x0002ac00},
false,
al,
"hi r15 0x0002ac00",
"hi_r15_"
"0x0002ac00"},
{{pl, r6, 0x00000ff0}, false, al, "pl r6 0x00000ff0", "pl_r6_0x00000ff0"},
{{hi, r15, 0x03fc0000},
false,
al,
"hi r15 0x03fc0000",
"hi_r15_"
"0x03fc0000"},
{{cc, r6, 0x0003fc00}, false, al, "cc r6 0x0003fc00", "cc_r6_0x0003fc00"},
{{eq, r12, 0x000002ac},
false,
al,
"eq r12 0x000002ac",
"eq_r12_"
"0x000002ac"},
{{ls, r11, 0x02ac0000},
false,
al,
"ls r11 0x02ac0000",
"ls_r11_"
"0x02ac0000"},
{{ge, r13, 0x00ff0000},
false,
al,
"ge r13 0x00ff0000",
"ge_r13_"
"0x00ff0000"},
{{lt, r4, 0x0003fc00}, false, al, "lt r4 0x0003fc00", "lt_r4_0x0003fc00"},
{{mi, r0, 0x0000ab00}, false, al, "mi r0 0x0000ab00", "mi_r0_0x0000ab00"},
{{lt, r4, 0x000000ab}, false, al, "lt r4 0x000000ab", "lt_r4_0x000000ab"},
{{ls, r2, 0xc000003f}, false, al, "ls r2 0xc000003f", "ls_r2_0xc000003f"},
{{pl, r1, 0x000000ab}, false, al, "pl r1 0x000000ab", "pl_r1_0x000000ab"},
{{ne, r10, 0x0000ff00},
false,
al,
"ne r10 0x0000ff00",
"ne_r10_"
"0x0000ff00"},
{{vc, r15, 0x00000ab0},
false,
al,
"vc r15 0x00000ab0",
"vc_r15_"
"0x00000ab0"},
{{eq, r6, 0x02ac0000}, false, al, "eq r6 0x02ac0000", "eq_r6_0x02ac0000"},
{{cc, r11, 0x00000000},
false,
al,
"cc r11 0x00000000",
"cc_r11_"
"0x00000000"},
{{mi, r7, 0x002ac000}, false, al, "mi r7 0x002ac000", "mi_r7_0x002ac000"},
{{hi, r14, 0xab000000},
false,
al,
"hi r14 0xab000000",
"hi_r14_"
"0xab000000"},
{{vc, r6, 0x0000ff00}, false, al, "vc r6 0x0000ff00", "vc_r6_0x0000ff00"},
{{al, r5, 0x000002ac}, false, al, "al r5 0x000002ac", "al_r5_0x000002ac"},
{{cc, r12, 0x0002ac00},
false,
al,
"cc r12 0x0002ac00",
"cc_r12_"
"0x0002ac00"},
{{cc, r10, 0x000000ab},
false,
al,
"cc r10 0x000000ab",
"cc_r10_"
"0x000000ab"},
{{gt, r5, 0x000002ac}, false, al, "gt r5 0x000002ac", "gt_r5_0x000002ac"},
{{vc, r3, 0x00000000}, false, al, "vc r3 0x00000000", "vc_r3_0x00000000"},
{{gt, r12, 0xac000002},
false,
al,
"gt r12 0xac000002",
"gt_r12_"
"0xac000002"},
{{al, r10, 0x00ab0000},
false,
al,
"al r10 0x00ab0000",
"al_r10_"
"0x00ab0000"},
{{mi, r5, 0x000ff000}, false, al, "mi r5 0x000ff000", "mi_r5_0x000ff000"},
{{pl, r1, 0x00000ff0}, false, al, "pl r1 0x00000ff0", "pl_r1_0x00000ff0"},
{{lt, r7, 0xf000000f}, false, al, "lt r7 0xf000000f", "lt_r7_0xf000000f"},
{{ge, r14, 0x002ac000},
false,
al,
"ge r14 0x002ac000",
"ge_r14_"
"0x002ac000"},
{{cc, r0, 0xac000002}, false, al, "cc r0 0xac000002", "cc_r0_0xac000002"},
{{cs, r2, 0x00000ab0}, false, al, "cs r2 0x00000ab0", "cs_r2_0x00000ab0"},
{{vs, r0, 0x00002ac0}, false, al, "vs r0 0x00002ac0", "vs_r0_0x00002ac0"},
{{le, r10, 0x000ab000},
false,
al,
"le r10 0x000ab000",
"le_r10_"
"0x000ab000"},
{{ge, r9, 0x0003fc00}, false, al, "ge r9 0x0003fc00", "ge_r9_0x0003fc00"},
{{lt, r1, 0x00003fc0}, false, al, "lt r1 0x00003fc0", "lt_r1_0x00003fc0"},
{{ge, r5, 0x000000ff}, false, al, "ge r5 0x000000ff", "ge_r5_0x000000ff"},
{{le, r11, 0x2ac00000},
false,
al,
"le r11 0x2ac00000",
"le_r11_"
"0x2ac00000"},
{{le, r9, 0x002ac000}, false, al, "le r9 0x002ac000", "le_r9_0x002ac000"},
{{hi, r12, 0xf000000f},
false,
al,
"hi r12 0xf000000f",
"hi_r12_"
"0xf000000f"},
{{lt, r3, 0x02ac0000}, false, al, "lt r3 0x02ac0000", "lt_r3_0x02ac0000"},
{{al, r13, 0x2ac00000},
false,
al,
"al r13 0x2ac00000",
"al_r13_"
"0x2ac00000"},
{{vs, r12, 0x00000ab0},
false,
al,
"vs r12 0x00000ab0",
"vs_r12_"
"0x00000ab0"},
{{gt, r3, 0x3fc00000}, false, al, "gt r3 0x3fc00000", "gt_r3_0x3fc00000"},
{{gt, r0, 0x2ac00000}, false, al, "gt r0 0x2ac00000", "gt_r0_0x2ac00000"},
{{eq, r15, 0x000002ac},
false,
al,
"eq r15 0x000002ac",
"eq_r15_"
"0x000002ac"},
{{gt, r1, 0x000ab000}, false, al, "gt r1 0x000ab000", "gt_r1_0x000ab000"},
{{gt, r2, 0x2ac00000}, false, al, "gt r2 0x2ac00000", "gt_r2_0x2ac00000"},
{{mi, r15, 0x00ab0000},
false,
al,
"mi r15 0x00ab0000",
"mi_r15_"
"0x00ab0000"},
{{mi, r1, 0x000ab000}, false, al, "mi r1 0x000ab000", "mi_r1_0x000ab000"},
{{ge, r12, 0x0ab00000},
false,
al,
"ge r12 0x0ab00000",
"ge_r12_"
"0x0ab00000"},
{{gt, r5, 0x000000ab}, false, al, "gt r5 0x000000ab", "gt_r5_0x000000ab"},
{{gt, r4, 0x00000000}, false, al, "gt r4 0x00000000", "gt_r4_0x00000000"},
{{al, r13, 0xc000003f},
false,
al,
"al r13 0xc000003f",
"al_r13_"
"0xc000003f"},
{{ls, r7, 0xff000000}, false, al, "ls r7 0xff000000", "ls_r7_0xff000000"},
{{vs, r0, 0x00000ff0}, false, al, "vs r0 0x00000ff0", "vs_r0_0x00000ff0"},
{{hi, r9, 0x02ac0000}, false, al, "hi r9 0x02ac0000", "hi_r9_0x02ac0000"},
{{cs, r1, 0xc000002a}, false, al, "cs r1 0xc000002a", "cs_r1_0xc000002a"},
{{hi, r8, 0xf000000f}, false, al, "hi r8 0xf000000f", "hi_r8_0xf000000f"},
{{gt, r1, 0xb000000a}, false, al, "gt r1 0xb000000a", "gt_r1_0xb000000a"},
{{gt, r2, 0x0002ac00}, false, al, "gt r2 0x0002ac00", "gt_r2_0x0002ac00"},
{{vs, r5, 0x000000ab}, false, al, "vs r5 0x000000ab", "vs_r5_0x000000ab"},
{{cc, r12, 0x000ff000},
false,
al,
"cc r12 0x000ff000",
"cc_r12_"
"0x000ff000"},
{{ge, r0, 0x00003fc0}, false, al, "ge r0 0x00003fc0", "ge_r0_0x00003fc0"},
{{ls, r12, 0x00ab0000},
false,
al,
"ls r12 0x00ab0000",
"ls_r12_"
"0x00ab0000"},
{{vs, r4, 0x000003fc}, false, al, "vs r4 0x000003fc", "vs_r4_0x000003fc"},
{{ls, r4, 0x00003fc0}, false, al, "ls r4 0x00003fc0", "ls_r4_0x00003fc0"},
{{eq, r9, 0xb000000a}, false, al, "eq r9 0xb000000a", "eq_r9_0xb000000a"},
{{cs, r9, 0x2ac00000}, false, al, "cs r9 0x2ac00000", "cs_r9_0x2ac00000"},
{{vs, r12, 0x0000ff00},
false,
al,
"vs r12 0x0000ff00",
"vs_r12_"
"0x0000ff00"},
{{vc, r1, 0x0000ff00}, false, al, "vc r1 0x0000ff00", "vc_r1_0x0000ff00"},
{{hi, r12, 0xff000000},
false,
al,
"hi r12 0xff000000",
"hi_r12_"
"0xff000000"},
{{cs, r12, 0x0002ac00},
false,
al,
"cs r12 0x0002ac00",
"cs_r12_"
"0x0002ac00"},
{{mi, r11, 0x03fc0000},
false,
al,
"mi r11 0x03fc0000",
"mi_r11_"
"0x03fc0000"},
{{eq, r2, 0x000ff000}, false, al, "eq r2 0x000ff000", "eq_r2_0x000ff000"},
{{al, r6, 0x00000ff0}, false, al, "al r6 0x00000ff0", "al_r6_0x00000ff0"},
{{cs, r7, 0x000003fc}, false, al, "cs r7 0x000003fc", "cs_r7_0x000003fc"},
{{pl, r11, 0xb000000a},
false,
al,
"pl r11 0xb000000a",
"pl_r11_"
"0xb000000a"},
{{ne, r15, 0x000ff000},
false,
al,
"ne r15 0x000ff000",
"ne_r15_"
"0x000ff000"},
{{mi, r14, 0x00ab0000},
false,
al,
"mi r14 0x00ab0000",
"mi_r14_"
"0x00ab0000"},
{{hi, r4, 0x0000ff00}, false, al, "hi r4 0x0000ff00", "hi_r4_0x0000ff00"},
{{ge, r1, 0x000002ac}, false, al, "ge r1 0x000002ac", "ge_r1_0x000002ac"},
{{gt, r7, 0xb000000a}, false, al, "gt r7 0xb000000a", "gt_r7_0xb000000a"},
{{gt, r2, 0x00000000}, false, al, "gt r2 0x00000000", "gt_r2_0x00000000"},
{{cc, r2, 0xb000000a}, false, al, "cc r2 0xb000000a", "cc_r2_0xb000000a"},
{{vs, r14, 0x000ab000},
false,
al,
"vs r14 0x000ab000",
"vs_r14_"
"0x000ab000"},
{{lt, r5, 0x000002ac}, false, al, "lt r5 0x000002ac", "lt_r5_0x000002ac"},
{{cc, r13, 0x0000ff00},
false,
al,
"cc r13 0x0000ff00",
"cc_r13_"
"0x0000ff00"},
{{hi, r15, 0x000002ac},
false,
al,
"hi r15 0x000002ac",
"hi_r15_"
"0x000002ac"},
{{ge, r1, 0x00ff0000}, false, al, "ge r1 0x00ff0000", "ge_r1_0x00ff0000"},
{{lt, r15, 0x00002ac0},
false,
al,
"lt r15 0x00002ac0",
"lt_r15_"
"0x00002ac0"},
{{lt, r8, 0x000ff000}, false, al, "lt r8 0x000ff000", "lt_r8_0x000ff000"},
{{hi, r10, 0xc000002a},
false,
al,
"hi r10 0xc000002a",
"hi_r10_"
"0xc000002a"},
{{eq, r12, 0x000ab000},
false,
al,
"eq r12 0x000ab000",
"eq_r12_"
"0x000ab000"},
{{vs, r11, 0x00002ac0},
false,
al,
"vs r11 0x00002ac0",
"vs_r11_"
"0x00002ac0"},
{{hi, r10, 0x000003fc},
false,
al,
"hi r10 0x000003fc",
"hi_r10_"
"0x000003fc"},
{{cc, r8, 0x000003fc}, false, al, "cc r8 0x000003fc", "cc_r8_0x000003fc"},
{{vc, r11, 0x00000ab0},
false,
al,
"vc r11 0x00000ab0",
"vc_r11_"
"0x00000ab0"},
{{le, r3, 0xac000002}, false, al, "le r3 0xac000002", "le_r3_0xac000002"},
{{cc, r11, 0xc000002a},
false,
al,
"cc r11 0xc000002a",
"cc_r11_"
"0xc000002a"},
{{lt, r6, 0xab000000}, false, al, "lt r6 0xab000000", "lt_r6_0xab000000"},
{{hi, r1, 0x00003fc0}, false, al, "hi r1 0x00003fc0", "hi_r1_0x00003fc0"},
{{vc, r3, 0x00002ac0}, false, al, "vc r3 0x00002ac0", "vc_r3_0x00002ac0"},
{{vc, r6, 0x00000ab0}, false, al, "vc r6 0x00000ab0", "vc_r6_0x00000ab0"},
{{ls, r6, 0x03fc0000}, false, al, "ls r6 0x03fc0000", "ls_r6_0x03fc0000"},
{{hi, r11, 0x0ab00000},
false,
al,
"hi r11 0x0ab00000",
"hi_r11_"
"0x0ab00000"},
{{lt, r12, 0x0002ac00},
false,
al,
"lt r12 0x0002ac00",
"lt_r12_"
"0x0002ac00"},
{{al, r8, 0xab000000}, false, al, "al r8 0xab000000", "al_r8_0xab000000"},
{{vs, r2, 0x00000ab0}, false, al, "vs r2 0x00000ab0", "vs_r2_0x00000ab0"},
{{hi, r14, 0x02ac0000},
false,
al,
"hi r14 0x02ac0000",
"hi_r14_"
"0x02ac0000"},
{{cs, r3, 0x00000ff0}, false, al, "cs r3 0x00000ff0", "cs_r3_0x00000ff0"},
{{cc, r9, 0xb000000a}, false, al, "cc r9 0xb000000a", "cc_r9_0xb000000a"},
{{vc, r9, 0x00000ff0}, false, al, "vc r9 0x00000ff0", "vc_r9_0x00000ff0"},
{{ne, r9, 0xab000000}, false, al, "ne r9 0xab000000", "ne_r9_0xab000000"},
{{cc, r10, 0xb000000a},
false,
al,
"cc r10 0xb000000a",
"cc_r10_"
"0xb000000a"},
{{ls, r11, 0xb000000a},
false,
al,
"ls r11 0xb000000a",
"ls_r11_"
"0xb000000a"},
{{lt, r11, 0x00ff0000},
false,
al,
"lt r11 0x00ff0000",
"lt_r11_"
"0x00ff0000"},
{{lt, r3, 0x000003fc}, false, al, "lt r3 0x000003fc", "lt_r3_0x000003fc"},
{{gt, r14, 0x00002ac0},
false,
al,
"gt r14 0x00002ac0",
"gt_r14_"
"0x00002ac0"},
{{ls, r8, 0xc000003f}, false, al, "ls r8 0xc000003f", "ls_r8_0xc000003f"},
{{al, r11, 0x000ab000},
false,
al,
"al r11 0x000ab000",
"al_r11_"
"0x000ab000"},
{{lt, r7, 0x000ab000}, false, al, "lt r7 0x000ab000", "lt_r7_0x000ab000"},
{{vs, r14, 0xff000000},
false,
al,
"vs r14 0xff000000",
"vs_r14_"
"0xff000000"},
{{vc, r2, 0xab000000}, false, al, "vc r2 0xab000000", "vc_r2_0xab000000"},
{{ne, r3, 0x00000ff0}, false, al, "ne r3 0x00000ff0", "ne_r3_0x00000ff0"},
{{ne, r15, 0x02ac0000},
false,
al,
"ne r15 0x02ac0000",
"ne_r15_"
"0x02ac0000"},
{{gt, r3, 0x000ff000}, false, al, "gt r3 0x000ff000", "gt_r3_0x000ff000"},
{{pl, r1, 0x2ac00000}, false, al, "pl r1 0x2ac00000", "pl_r1_0x2ac00000"},
{{mi, r1, 0x00002ac0}, false, al, "mi r1 0x00002ac0", "mi_r1_0x00002ac0"},
{{vc, r6, 0xac000002}, false, al, "vc r6 0xac000002", "vc_r6_0xac000002"},
{{vs, r2, 0x0ff00000}, false, al, "vs r2 0x0ff00000", "vs_r2_0x0ff00000"},
{{ge, r2, 0x000003fc}, false, al, "ge r2 0x000003fc", "ge_r2_0x000003fc"},
{{cs, r15, 0x0000ff00},
false,
al,
"cs r15 0x0000ff00",
"cs_r15_"
"0x0000ff00"},
{{lt, r3, 0x000002ac}, false, al, "lt r3 0x000002ac", "lt_r3_0x000002ac"},
{{cs, r6, 0xff000000}, false, al, "cs r6 0xff000000", "cs_r6_0xff000000"},
{{ge, r14, 0x000000ff},
false,
al,
"ge r14 0x000000ff",
"ge_r14_"
"0x000000ff"},
{{gt, r7, 0x03fc0000}, false, al, "gt r7 0x03fc0000", "gt_r7_0x03fc0000"},
{{ne, r8, 0x000ff000}, false, al, "ne r8 0x000ff000", "ne_r8_0x000ff000"},
{{gt, r14, 0xc000002a},
false,
al,
"gt r14 0xc000002a",
"gt_r14_"
"0xc000002a"},
{{hi, r12, 0x0000ff00},
false,
al,
"hi r12 0x0000ff00",
"hi_r12_"
"0x0000ff00"},
{{le, r15, 0x00003fc0},
false,
al,
"le r15 0x00003fc0",
"le_r15_"
"0x00003fc0"},
{{eq, r13, 0x000ab000},
false,
al,
"eq r13 0x000ab000",
"eq_r13_"
"0x000ab000"},
{{vc, r7, 0x000ab000}, false, al, "vc r7 0x000ab000", "vc_r7_0x000ab000"},
{{gt, r7, 0xf000000f}, false, al, "gt r7 0xf000000f", "gt_r7_0xf000000f"},
{{cc, r6, 0xac000002}, false, al, "cc r6 0xac000002", "cc_r6_0xac000002"},
{{cs, r14, 0x000000ff},
false,
al,
"cs r14 0x000000ff",
"cs_r14_"
"0x000000ff"},
{{ne, r2, 0x0003fc00}, false, al, "ne r2 0x0003fc00", "ne_r2_0x0003fc00"},
{{vs, r1, 0x002ac000}, false, al, "vs r1 0x002ac000", "vs_r1_0x002ac000"},
{{eq, r8, 0x002ac000}, false, al, "eq r8 0x002ac000", "eq_r8_0x002ac000"},
{{lt, r8, 0x0000ff00}, false, al, "lt r8 0x0000ff00", "lt_r8_0x0000ff00"},
{{vs, r9, 0xc000003f}, false, al, "vs r9 0xc000003f", "vs_r9_0xc000003f"},
{{mi, r11, 0xff000000},
false,
al,
"mi r11 0xff000000",
"mi_r11_"
"0xff000000"},
{{cs, r12, 0x03fc0000},
false,
al,
"cs r12 0x03fc0000",
"cs_r12_"
"0x03fc0000"},
{{lt, r5, 0xc000002a}, false, al, "lt r5 0xc000002a", "lt_r5_0xc000002a"},
{{vc, r6, 0x000000ab}, false, al, "vc r6 0x000000ab", "vc_r6_0x000000ab"},
{{ls, r10, 0x0ab00000},
false,
al,
"ls r10 0x0ab00000",
"ls_r10_"
"0x0ab00000"},
{{al, r11, 0x00ff0000},
false,
al,
"al r11 0x00ff0000",
"al_r11_"
"0x00ff0000"},
{{hi, r13, 0x00000ab0},
false,
al,
"hi r13 0x00000ab0",
"hi_r13_"
"0x00000ab0"},
{{ls, r0, 0xab000000}, false, al, "ls r0 0xab000000", "ls_r0_0xab000000"},
{{le, r5, 0xab000000}, false, al, "le r5 0xab000000", "le_r5_0xab000000"},
{{vs, r4, 0x00ff0000}, false, al, "vs r4 0x00ff0000", "vs_r4_0x00ff0000"},
{{al, r10, 0x03fc0000},
false,
al,
"al r10 0x03fc0000",
"al_r10_"
"0x03fc0000"},
{{al, r8, 0x000003fc}, false, al, "al r8 0x000003fc", "al_r8_0x000003fc"},
{{vs, r11, 0xab000000},
false,
al,
"vs r11 0xab000000",
"vs_r11_"
"0xab000000"},
{{eq, r2, 0x00000ff0}, false, al, "eq r2 0x00000ff0", "eq_r2_0x00000ff0"},
{{vc, r4, 0x00000ff0}, false, al, "vc r4 0x00000ff0", "vc_r4_0x00000ff0"},
{{vc, r9, 0x00002ac0}, false, al, "vc r9 0x00002ac0", "vc_r9_0x00002ac0"},
{{cc, r11, 0x00ff0000},
false,
al,
"cc r11 0x00ff0000",
"cc_r11_"
"0x00ff0000"},
{{cc, r13, 0x00ff0000},
false,
al,
"cc r13 0x00ff0000",
"cc_r13_"
"0x00ff0000"},
{{pl, r0, 0x00000ab0}, false, al, "pl r0 0x00000ab0", "pl_r0_0x00000ab0"},
{{al, r2, 0x02ac0000}, false, al, "al r2 0x02ac0000", "al_r2_0x02ac0000"},
{{hi, r11, 0xc000002a},
false,
al,
"hi r11 0xc000002a",
"hi_r11_"
"0xc000002a"},
{{ne, r3, 0xf000000f}, false, al, "ne r3 0xf000000f", "ne_r3_0xf000000f"},
{{cc, r15, 0x0ab00000},
false,
al,
"cc r15 0x0ab00000",
"cc_r15_"
"0x0ab00000"},
{{ge, r12, 0x00ff0000},
false,
al,
"ge r12 0x00ff0000",
"ge_r12_"
"0x00ff0000"},
{{le, r12, 0x002ac000},
false,
al,
"le r12 0x002ac000",
"le_r12_"
"0x002ac000"},
{{mi, r12, 0xc000003f},
false,
al,
"mi r12 0xc000003f",
"mi_r12_"
"0xc000003f"},
{{lt, r0, 0xfc000003}, false, al, "lt r0 0xfc000003", "lt_r0_0xfc000003"},
{{vc, r15, 0x000ab000},
false,
al,
"vc r15 0x000ab000",
"vc_r15_"
"0x000ab000"},
{{pl, r5, 0x3fc00000}, false, al, "pl r5 0x3fc00000", "pl_r5_0x3fc00000"},
{{vs, r15, 0x00ab0000},
false,
al,
"vs r15 0x00ab0000",
"vs_r15_"
"0x00ab0000"},
{{hi, r3, 0x00ff0000}, false, al, "hi r3 0x00ff0000", "hi_r3_0x00ff0000"},
{{lt, r8, 0x000000ff}, false, al, "lt r8 0x000000ff", "lt_r8_0x000000ff"},
{{le, r2, 0x000000ff}, false, al, "le r2 0x000000ff", "le_r2_0x000000ff"},
{{vs, r0, 0x0002ac00}, false, al, "vs r0 0x0002ac00", "vs_r0_0x0002ac00"},
{{vs, r2, 0xff000000}, false, al, "vs r2 0xff000000", "vs_r2_0xff000000"},
{{pl, r6, 0xab000000}, false, al, "pl r6 0xab000000", "pl_r6_0xab000000"},
{{ls, r4, 0x3fc00000}, false, al, "ls r4 0x3fc00000", "ls_r4_0x3fc00000"},
{{ls, r3, 0x000ab000}, false, al, "ls r3 0x000ab000", "ls_r3_0x000ab000"},
{{eq, r11, 0x000ab000},
false,
al,
"eq r11 0x000ab000",
"eq_r11_"
"0x000ab000"},
{{vc, r6, 0x03fc0000}, false, al, "vc r6 0x03fc0000", "vc_r6_0x03fc0000"},
{{mi, r14, 0x0000ab00},
false,
al,
"mi r14 0x0000ab00",
"mi_r14_"
"0x0000ab00"},
{{pl, r8, 0xab000000}, false, al, "pl r8 0xab000000", "pl_r8_0xab000000"},
{{pl, r8, 0xc000003f}, false, al, "pl r8 0xc000003f", "pl_r8_0xc000003f"},
{{eq, r14, 0x003fc000},
false,
al,
"eq r14 0x003fc000",
"eq_r14_"
"0x003fc000"},
{{vs, r9, 0x00ff0000}, false, al, "vs r9 0x00ff0000", "vs_r9_0x00ff0000"},
{{vs, r1, 0x00002ac0}, false, al, "vs r1 0x00002ac0", "vs_r1_0x00002ac0"},
{{le, r1, 0x00ff0000}, false, al, "le r1 0x00ff0000", "le_r1_0x00ff0000"},
{{lt, r7, 0x000ff000}, false, al, "lt r7 0x000ff000", "lt_r7_0x000ff000"},
{{mi, r6, 0x002ac000}, false, al, "mi r6 0x002ac000", "mi_r6_0x002ac000"},
{{vc, r11, 0xc000003f},
false,
al,
"vc r11 0xc000003f",
"vc_r11_"
"0xc000003f"},
{{lt, r4, 0x00000000}, false, al, "lt r4 0x00000000", "lt_r4_0x00000000"},
{{pl, r0, 0xac000002}, false, al, "pl r0 0xac000002", "pl_r0_0xac000002"},
{{ls, r10, 0xc000003f},
false,
al,
"ls r10 0xc000003f",
"ls_r10_"
"0xc000003f"},
{{cc, r15, 0xc000002a},
false,
al,
"cc r15 0xc000002a",
"cc_r15_0xc000002a"}};
// These headers each contain an array of `TestResult` with the reference output
// values. The reference arrays are names `kReference{mnemonic}`.
#include "aarch32/traces/assembler-cond-rd-operand-const-a32-can-use-pc-cmn.h"
#include "aarch32/traces/assembler-cond-rd-operand-const-a32-can-use-pc-cmp.h"
#include "aarch32/traces/assembler-cond-rd-operand-const-a32-can-use-pc-teq.h"
#include "aarch32/traces/assembler-cond-rd-operand-const-a32-can-use-pc-tst.h"
// The maximum number of errors to report in detail for each test.
const unsigned kErrorReportLimit = 8;
typedef void (MacroAssembler::*Fn)(Condition cond,
Register rd,
const Operand& op);
void TestHelper(Fn instruction,
const char* mnemonic,
const TestResult reference[]) {
unsigned total_error_count = 0;
MacroAssembler masm(BUF_SIZE);
masm.UseA32();
for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) {
// Values to pass to the macro-assembler.
Condition cond = kTests[i].operands.cond;
Register rd = kTests[i].operands.rd;
uint32_t immediate = kTests[i].operands.immediate;
Operand op(immediate);
int32_t start = masm.GetCursorOffset();
{
// We never generate more that 4 bytes, as IT instructions are only
// allowed for narrow encodings.
ExactAssemblyScope scope(&masm, 4, ExactAssemblyScope::kMaximumSize);
if (kTests[i].in_it_block) {
masm.it(kTests[i].it_condition);
}
(masm.*instruction)(cond, rd, op);
}
int32_t end = masm.GetCursorOffset();
const byte* result_ptr =
masm.GetBuffer()->GetOffsetAddress<const byte*>(start);
VIXL_ASSERT(start < end);
uint32_t result_size = end - start;
if (Test::generate_test_trace()) {
// Print the result bytes.
printf("const byte kInstruction_%s_%s[] = {\n",
mnemonic,
kTests[i].identifier);
for (uint32_t j = 0; j < result_size; j++) {
if (j == 0) {
printf(" 0x%02" PRIx8, result_ptr[j]);
} else {
printf(", 0x%02" PRIx8, result_ptr[j]);
}
}
// This comment is meant to be used by external tools to validate
// the encoding. We can parse the comment to figure out what
// instruction this corresponds to.
if (kTests[i].in_it_block) {
printf(" // It %s; %s %s\n};\n",
kTests[i].it_condition.GetName(),
mnemonic,
kTests[i].operands_description);
} else {
printf(" // %s %s\n};\n", mnemonic, kTests[i].operands_description);
}
} else {
// Check we've emitted the exact same encoding as present in the
// trace file. Only print up to `kErrorReportLimit` errors.
if (((result_size != reference[i].size) ||
(memcmp(result_ptr, reference[i].encoding, reference[i].size) !=
0)) &&
(++total_error_count <= kErrorReportLimit)) {
printf("Error when testing \"%s\" with operands \"%s\":\n",
mnemonic,
kTests[i].operands_description);
printf(" Expected: ");
for (uint32_t j = 0; j < reference[i].size; j++) {
if (j == 0) {
printf("0x%02" PRIx8, reference[i].encoding[j]);
} else {
printf(", 0x%02" PRIx8, reference[i].encoding[j]);
}
}
printf("\n");
printf(" Found: ");
for (uint32_t j = 0; j < result_size; j++) {
if (j == 0) {
printf("0x%02" PRIx8, result_ptr[j]);
} else {
printf(", 0x%02" PRIx8, result_ptr[j]);
}
}
printf("\n");
}
}
}
masm.FinalizeCode();
if (Test::generate_test_trace()) {
// Finalize the trace file by writing the final `TestResult` array
// which links all generated instruction encodings.
printf("const TestResult kReference%s[] = {\n", mnemonic);
for (unsigned i = 0; i < ARRAY_SIZE(kTests); i++) {
printf(" {\n");
printf(" ARRAY_SIZE(kInstruction_%s_%s),\n",
mnemonic,
kTests[i].identifier);
printf(" kInstruction_%s_%s,\n", mnemonic, kTests[i].identifier);
printf(" },\n");
}
printf("};\n");
} else {
if (total_error_count > kErrorReportLimit) {
printf("%u other errors follow.\n",
total_error_count - kErrorReportLimit);
}
// Crash if the test failed.
VIXL_CHECK(total_error_count == 0);
}
}
// Instantiate tests for each instruction in the list.
#define TEST(mnemonic) \
void Test_##mnemonic() { \
TestHelper(&MacroAssembler::mnemonic, #mnemonic, kReference##mnemonic); \
} \
Test test_##mnemonic( \
"AARCH32_ASSEMBLER_COND_RD_OPERAND_CONST_A32_CAN_USE_PC_" #mnemonic, \
&Test_##mnemonic);
FOREACH_INSTRUCTION(TEST)
#undef TEST
} // namespace
#endif
} // namespace aarch32
} // namespace vixl