普通文本  |  2781行  |  120.84 KB

// 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(adc)                       \
  M(adcs)                      \
  M(add)                       \
  M(adds)                      \
  M(and_)                      \
  M(ands)                      \
  M(bic)                       \
  M(bics)                      \
  M(eor)                       \
  M(eors)                      \
  M(orn)                       \
  M(orns)                      \
  M(orr)                       \
  M(orrs)                      \
  M(rsb)                       \
  M(rsbs)                      \
  M(sbc)                       \
  M(sbcs)                      \
  M(sub)                       \
  M(subs)


// 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_T32
namespace {

// Values to be passed to the assembler to produce the instruction under test.
struct Operands {
  Condition cond;
  Register rd;
  Register rn;
  Register rm;
  ShiftType shift;
  uint32_t amount;
};

// 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[] = {{{al, r11, r13, r10, ASR, 9},
                            false,
                            al,
                            "al r11 r13 r10 ASR 9",
                            "al_r11_r13_r10_ASR_9"},
                           {{al, r7, r5, r2, ASR, 2},
                            false,
                            al,
                            "al r7 r5 r2 ASR 2",
                            "al_r7_r5_r2_ASR_2"},
                           {{al, r5, r2, r11, LSR, 5},
                            false,
                            al,
                            "al r5 r2 r11 LSR 5",
                            "al_r5_r2_r11_LSR_5"},
                           {{al, r14, r6, r10, LSR, 32},
                            false,
                            al,
                            "al r14 r6 r10 LSR 32",
                            "al_r14_r6_r10_LSR_32"},
                           {{al, r9, r6, r3, LSR, 13},
                            false,
                            al,
                            "al r9 r6 r3 LSR 13",
                            "al_r9_r6_r3_LSR_13"},
                           {{al, r14, r4, r6, LSR, 31},
                            false,
                            al,
                            "al r14 r4 r6 LSR 31",
                            "al_r14_r4_r6_LSR_31"},
                           {{al, r2, r1, r7, LSR, 14},
                            false,
                            al,
                            "al r2 r1 r7 LSR 14",
                            "al_r2_r1_r7_LSR_14"},
                           {{al, r2, r9, r12, LSR, 24},
                            false,
                            al,
                            "al r2 r9 r12 LSR 24",
                            "al_r2_r9_r12_LSR_24"},
                           {{al, r10, r12, r4, ASR, 2},
                            false,
                            al,
                            "al r10 r12 r4 ASR 2",
                            "al_r10_r12_r4_ASR_2"},
                           {{al, r6, r10, r0, LSR, 8},
                            false,
                            al,
                            "al r6 r10 r0 LSR 8",
                            "al_r6_r10_r0_LSR_8"},
                           {{al, r12, r11, r4, ASR, 7},
                            false,
                            al,
                            "al r12 r11 r4 ASR 7",
                            "al_r12_r11_r4_ASR_7"},
                           {{al, r9, r4, r8, ASR, 27},
                            false,
                            al,
                            "al r9 r4 r8 ASR 27",
                            "al_r9_r4_r8_ASR_27"},
                           {{al, r2, r10, r11, ASR, 1},
                            false,
                            al,
                            "al r2 r10 r11 ASR 1",
                            "al_r2_r10_r11_ASR_1"},
                           {{al, r0, r2, r9, ASR, 24},
                            false,
                            al,
                            "al r0 r2 r9 ASR 24",
                            "al_r0_r2_r9_ASR_24"},
                           {{al, r11, r6, r14, ASR, 31},
                            false,
                            al,
                            "al r11 r6 r14 ASR 31",
                            "al_r11_r6_r14_ASR_31"},
                           {{al, r2, r14, r14, ASR, 18},
                            false,
                            al,
                            "al r2 r14 r14 ASR 18",
                            "al_r2_r14_r14_ASR_18"},
                           {{al, r5, r7, r1, ASR, 2},
                            false,
                            al,
                            "al r5 r7 r1 ASR 2",
                            "al_r5_r7_r1_ASR_2"},
                           {{al, r1, r14, r7, LSR, 18},
                            false,
                            al,
                            "al r1 r14 r7 LSR 18",
                            "al_r1_r14_r7_LSR_18"},
                           {{al, r7, r7, r1, ASR, 4},
                            false,
                            al,
                            "al r7 r7 r1 ASR 4",
                            "al_r7_r7_r1_ASR_4"},
                           {{al, r14, r5, r12, LSR, 1},
                            false,
                            al,
                            "al r14 r5 r12 LSR 1",
                            "al_r14_r5_r12_LSR_1"},
                           {{al, r2, r11, r10, ASR, 23},
                            false,
                            al,
                            "al r2 r11 r10 ASR 23",
                            "al_r2_r11_r10_ASR_23"},
                           {{al, r5, r0, r10, ASR, 3},
                            false,
                            al,
                            "al r5 r0 r10 ASR 3",
                            "al_r5_r0_r10_ASR_3"},
                           {{al, r9, r13, r9, ASR, 6},
                            false,
                            al,
                            "al r9 r13 r9 ASR 6",
                            "al_r9_r13_r9_ASR_6"},
                           {{al, r6, r10, r13, ASR, 24},
                            false,
                            al,
                            "al r6 r10 r13 ASR 24",
                            "al_r6_r10_r13_ASR_24"},
                           {{al, r9, r3, r14, LSR, 30},
                            false,
                            al,
                            "al r9 r3 r14 LSR 30",
                            "al_r9_r3_r14_LSR_30"},
                           {{al, r11, r14, r11, LSR, 24},
                            false,
                            al,
                            "al r11 r14 r11 LSR 24",
                            "al_r11_r14_r11_LSR_24"},
                           {{al, r11, r3, r4, ASR, 7},
                            false,
                            al,
                            "al r11 r3 r4 ASR 7",
                            "al_r11_r3_r4_ASR_7"},
                           {{al, r14, r13, r10, ASR, 1},
                            false,
                            al,
                            "al r14 r13 r10 ASR 1",
                            "al_r14_r13_r10_ASR_1"},
                           {{al, r0, r9, r0, LSR, 2},
                            false,
                            al,
                            "al r0 r9 r0 LSR 2",
                            "al_r0_r9_r0_LSR_2"},
                           {{al, r2, r1, r7, ASR, 15},
                            false,
                            al,
                            "al r2 r1 r7 ASR 15",
                            "al_r2_r1_r7_ASR_15"},
                           {{al, r8, r14, r5, LSR, 27},
                            false,
                            al,
                            "al r8 r14 r5 LSR 27",
                            "al_r8_r14_r5_LSR_27"},
                           {{al, r9, r14, r13, ASR, 21},
                            false,
                            al,
                            "al r9 r14 r13 ASR 21",
                            "al_r9_r14_r13_ASR_21"},
                           {{al, r11, r14, r14, ASR, 3},
                            false,
                            al,
                            "al r11 r14 r14 ASR 3",
                            "al_r11_r14_r14_ASR_3"},
                           {{al, r6, r3, r6, LSR, 23},
                            false,
                            al,
                            "al r6 r3 r6 LSR 23",
                            "al_r6_r3_r6_LSR_23"},
                           {{al, r14, r8, r11, LSR, 6},
                            false,
                            al,
                            "al r14 r8 r11 LSR 6",
                            "al_r14_r8_r11_LSR_6"},
                           {{al, r5, r3, r3, LSR, 8},
                            false,
                            al,
                            "al r5 r3 r3 LSR 8",
                            "al_r5_r3_r3_LSR_8"},
                           {{al, r12, r6, r1, LSR, 6},
                            false,
                            al,
                            "al r12 r6 r1 LSR 6",
                            "al_r12_r6_r1_LSR_6"},
                           {{al, r5, r0, r9, LSR, 30},
                            false,
                            al,
                            "al r5 r0 r9 LSR 30",
                            "al_r5_r0_r9_LSR_30"},
                           {{al, r4, r9, r3, ASR, 17},
                            false,
                            al,
                            "al r4 r9 r3 ASR 17",
                            "al_r4_r9_r3_ASR_17"},
                           {{al, r12, r2, r4, ASR, 20},
                            false,
                            al,
                            "al r12 r2 r4 ASR 20",
                            "al_r12_r2_r4_ASR_20"},
                           {{al, r2, r9, r13, ASR, 25},
                            false,
                            al,
                            "al r2 r9 r13 ASR 25",
                            "al_r2_r9_r13_ASR_25"},
                           {{al, r11, r5, r12, LSR, 10},
                            false,
                            al,
                            "al r11 r5 r12 LSR 10",
                            "al_r11_r5_r12_LSR_10"},
                           {{al, r4, r13, r12, LSR, 22},
                            false,
                            al,
                            "al r4 r13 r12 LSR 22",
                            "al_r4_r13_r12_LSR_22"},
                           {{al, r2, r4, r6, LSR, 11},
                            false,
                            al,
                            "al r2 r4 r6 LSR 11",
                            "al_r2_r4_r6_LSR_11"},
                           {{al, r8, r4, r1, LSR, 22},
                            false,
                            al,
                            "al r8 r4 r1 LSR 22",
                            "al_r8_r4_r1_LSR_22"},
                           {{al, r6, r12, r10, LSR, 31},
                            false,
                            al,
                            "al r6 r12 r10 LSR 31",
                            "al_r6_r12_r10_LSR_31"},
                           {{al, r10, r0, r2, ASR, 7},
                            false,
                            al,
                            "al r10 r0 r2 ASR 7",
                            "al_r10_r0_r2_ASR_7"},
                           {{al, r14, r6, r13, ASR, 21},
                            false,
                            al,
                            "al r14 r6 r13 ASR 21",
                            "al_r14_r6_r13_ASR_21"},
                           {{al, r7, r14, r13, LSR, 4},
                            false,
                            al,
                            "al r7 r14 r13 LSR 4",
                            "al_r7_r14_r13_LSR_4"},
                           {{al, r1, r10, r12, ASR, 2},
                            false,
                            al,
                            "al r1 r10 r12 ASR 2",
                            "al_r1_r10_r12_ASR_2"},
                           {{al, r0, r2, r10, LSR, 7},
                            false,
                            al,
                            "al r0 r2 r10 LSR 7",
                            "al_r0_r2_r10_LSR_7"},
                           {{al, r0, r1, r11, LSR, 17},
                            false,
                            al,
                            "al r0 r1 r11 LSR 17",
                            "al_r0_r1_r11_LSR_17"},
                           {{al, r4, r13, r2, ASR, 25},
                            false,
                            al,
                            "al r4 r13 r2 ASR 25",
                            "al_r4_r13_r2_ASR_25"},
                           {{al, r1, r4, r14, LSR, 7},
                            false,
                            al,
                            "al r1 r4 r14 LSR 7",
                            "al_r1_r4_r14_LSR_7"},
                           {{al, r5, r8, r4, ASR, 19},
                            false,
                            al,
                            "al r5 r8 r4 ASR 19",
                            "al_r5_r8_r4_ASR_19"},
                           {{al, r4, r3, r8, ASR, 12},
                            false,
                            al,
                            "al r4 r3 r8 ASR 12",
                            "al_r4_r3_r8_ASR_12"},
                           {{al, r2, r4, r13, ASR, 12},
                            false,
                            al,
                            "al r2 r4 r13 ASR 12",
                            "al_r2_r4_r13_ASR_12"},
                           {{al, r8, r9, r2, LSR, 20},
                            false,
                            al,
                            "al r8 r9 r2 LSR 20",
                            "al_r8_r9_r2_LSR_20"},
                           {{al, r10, r6, r3, ASR, 21},
                            false,
                            al,
                            "al r10 r6 r3 ASR 21",
                            "al_r10_r6_r3_ASR_21"},
                           {{al, r2, r7, r7, ASR, 3},
                            false,
                            al,
                            "al r2 r7 r7 ASR 3",
                            "al_r2_r7_r7_ASR_3"},
                           {{al, r8, r7, r7, LSR, 19},
                            false,
                            al,
                            "al r8 r7 r7 LSR 19",
                            "al_r8_r7_r7_LSR_19"},
                           {{al, r7, r9, r4, LSR, 3},
                            false,
                            al,
                            "al r7 r9 r4 LSR 3",
                            "al_r7_r9_r4_LSR_3"},
                           {{al, r1, r7, r3, ASR, 2},
                            false,
                            al,
                            "al r1 r7 r3 ASR 2",
                            "al_r1_r7_r3_ASR_2"},
                           {{al, r1, r2, r3, ASR, 5},
                            false,
                            al,
                            "al r1 r2 r3 ASR 5",
                            "al_r1_r2_r3_ASR_5"},
                           {{al, r12, r4, r1, ASR, 5},
                            false,
                            al,
                            "al r12 r4 r1 ASR 5",
                            "al_r12_r4_r1_ASR_5"},
                           {{al, r4, r2, r10, ASR, 1},
                            false,
                            al,
                            "al r4 r2 r10 ASR 1",
                            "al_r4_r2_r10_ASR_1"},
                           {{al, r10, r5, r11, LSR, 3},
                            false,
                            al,
                            "al r10 r5 r11 LSR 3",
                            "al_r10_r5_r11_LSR_3"},
                           {{al, r5, r9, r1, ASR, 8},
                            false,
                            al,
                            "al r5 r9 r1 ASR 8",
                            "al_r5_r9_r1_ASR_8"},
                           {{al, r6, r11, r3, LSR, 28},
                            false,
                            al,
                            "al r6 r11 r3 LSR 28",
                            "al_r6_r11_r3_LSR_28"},
                           {{al, r9, r13, r6, LSR, 22},
                            false,
                            al,
                            "al r9 r13 r6 LSR 22",
                            "al_r9_r13_r6_LSR_22"},
                           {{al, r10, r13, r1, LSR, 30},
                            false,
                            al,
                            "al r10 r13 r1 LSR 30",
                            "al_r10_r13_r1_LSR_30"},
                           {{al, r9, r1, r4, ASR, 26},
                            false,
                            al,
                            "al r9 r1 r4 ASR 26",
                            "al_r9_r1_r4_ASR_26"},
                           {{al, r4, r4, r4, ASR, 21},
                            false,
                            al,
                            "al r4 r4 r4 ASR 21",
                            "al_r4_r4_r4_ASR_21"},
                           {{al, r9, r5, r11, ASR, 19},
                            false,
                            al,
                            "al r9 r5 r11 ASR 19",
                            "al_r9_r5_r11_ASR_19"},
                           {{al, r8, r11, r5, LSR, 30},
                            false,
                            al,
                            "al r8 r11 r5 LSR 30",
                            "al_r8_r11_r5_LSR_30"},
                           {{al, r4, r10, r4, LSR, 23},
                            false,
                            al,
                            "al r4 r10 r4 LSR 23",
                            "al_r4_r10_r4_LSR_23"},
                           {{al, r7, r6, r2, LSR, 32},
                            false,
                            al,
                            "al r7 r6 r2 LSR 32",
                            "al_r7_r6_r2_LSR_32"},
                           {{al, r4, r14, r12, LSR, 7},
                            false,
                            al,
                            "al r4 r14 r12 LSR 7",
                            "al_r4_r14_r12_LSR_7"},
                           {{al, r5, r2, r9, LSR, 7},
                            false,
                            al,
                            "al r5 r2 r9 LSR 7",
                            "al_r5_r2_r9_LSR_7"},
                           {{al, r2, r14, r1, ASR, 6},
                            false,
                            al,
                            "al r2 r14 r1 ASR 6",
                            "al_r2_r14_r1_ASR_6"},
                           {{al, r14, r13, r11, LSR, 12},
                            false,
                            al,
                            "al r14 r13 r11 LSR 12",
                            "al_r14_r13_r11_LSR_12"},
                           {{al, r8, r8, r6, ASR, 5},
                            false,
                            al,
                            "al r8 r8 r6 ASR 5",
                            "al_r8_r8_r6_ASR_5"},
                           {{al, r14, r10, r12, LSR, 13},
                            false,
                            al,
                            "al r14 r10 r12 LSR 13",
                            "al_r14_r10_r12_LSR_13"},
                           {{al, r3, r6, r7, LSR, 31},
                            false,
                            al,
                            "al r3 r6 r7 LSR 31",
                            "al_r3_r6_r7_LSR_31"},
                           {{al, r8, r1, r9, ASR, 2},
                            false,
                            al,
                            "al r8 r1 r9 ASR 2",
                            "al_r8_r1_r9_ASR_2"},
                           {{al, r9, r12, r12, ASR, 21},
                            false,
                            al,
                            "al r9 r12 r12 ASR 21",
                            "al_r9_r12_r12_ASR_21"},
                           {{al, r13, r4, r12, LSR, 14},
                            false,
                            al,
                            "al r13 r4 r12 LSR 14",
                            "al_r13_r4_r12_LSR_14"},
                           {{al, r2, r11, r12, LSR, 18},
                            false,
                            al,
                            "al r2 r11 r12 LSR 18",
                            "al_r2_r11_r12_LSR_18"},
                           {{al, r9, r3, r0, ASR, 31},
                            false,
                            al,
                            "al r9 r3 r0 ASR 31",
                            "al_r9_r3_r0_ASR_31"},
                           {{al, r13, r6, r12, LSR, 6},
                            false,
                            al,
                            "al r13 r6 r12 LSR 6",
                            "al_r13_r6_r12_LSR_6"},
                           {{al, r1, r1, r7, LSR, 3},
                            false,
                            al,
                            "al r1 r1 r7 LSR 3",
                            "al_r1_r1_r7_LSR_3"},
                           {{al, r0, r13, r9, ASR, 1},
                            false,
                            al,
                            "al r0 r13 r9 ASR 1",
                            "al_r0_r13_r9_ASR_1"},
                           {{al, r2, r1, r3, LSR, 12},
                            false,
                            al,
                            "al r2 r1 r3 LSR 12",
                            "al_r2_r1_r3_LSR_12"},
                           {{al, r12, r6, r10, ASR, 1},
                            false,
                            al,
                            "al r12 r6 r10 ASR 1",
                            "al_r12_r6_r10_ASR_1"},
                           {{al, r12, r4, r3, ASR, 4},
                            false,
                            al,
                            "al r12 r4 r3 ASR 4",
                            "al_r12_r4_r3_ASR_4"},
                           {{al, r7, r0, r5, LSR, 25},
                            false,
                            al,
                            "al r7 r0 r5 LSR 25",
                            "al_r7_r0_r5_LSR_25"},
                           {{al, r4, r5, r12, LSR, 20},
                            false,
                            al,
                            "al r4 r5 r12 LSR 20",
                            "al_r4_r5_r12_LSR_20"},
                           {{al, r3, r5, r11, LSR, 24},
                            false,
                            al,
                            "al r3 r5 r11 LSR 24",
                            "al_r3_r5_r11_LSR_24"},
                           {{al, r5, r8, r10, LSR, 25},
                            false,
                            al,
                            "al r5 r8 r10 LSR 25",
                            "al_r5_r8_r10_LSR_25"},
                           {{al, r11, r9, r12, LSR, 24},
                            false,
                            al,
                            "al r11 r9 r12 LSR 24",
                            "al_r11_r9_r12_LSR_24"},
                           {{al, r13, r11, r13, LSR, 20},
                            false,
                            al,
                            "al r13 r11 r13 LSR 20",
                            "al_r13_r11_r13_LSR_20"},
                           {{al, r12, r4, r3, ASR, 32},
                            false,
                            al,
                            "al r12 r4 r3 ASR 32",
                            "al_r12_r4_r3_ASR_32"},
                           {{al, r3, r6, r11, ASR, 13},
                            false,
                            al,
                            "al r3 r6 r11 ASR 13",
                            "al_r3_r6_r11_ASR_13"},
                           {{al, r13, r9, r7, LSR, 27},
                            false,
                            al,
                            "al r13 r9 r7 LSR 27",
                            "al_r13_r9_r7_LSR_27"},
                           {{al, r13, r9, r6, LSR, 24},
                            false,
                            al,
                            "al r13 r9 r6 LSR 24",
                            "al_r13_r9_r6_LSR_24"},
                           {{al, r6, r13, r3, ASR, 1},
                            false,
                            al,
                            "al r6 r13 r3 ASR 1",
                            "al_r6_r13_r3_ASR_1"},
                           {{al, r8, r7, r14, ASR, 27},
                            false,
                            al,
                            "al r8 r7 r14 ASR 27",
                            "al_r8_r7_r14_ASR_27"},
                           {{al, r8, r8, r8, LSR, 29},
                            false,
                            al,
                            "al r8 r8 r8 LSR 29",
                            "al_r8_r8_r8_LSR_29"},
                           {{al, r1, r13, r4, ASR, 26},
                            false,
                            al,
                            "al r1 r13 r4 ASR 26",
                            "al_r1_r13_r4_ASR_26"},
                           {{al, r3, r2, r10, LSR, 16},
                            false,
                            al,
                            "al r3 r2 r10 LSR 16",
                            "al_r3_r2_r10_LSR_16"},
                           {{al, r2, r11, r9, ASR, 29},
                            false,
                            al,
                            "al r2 r11 r9 ASR 29",
                            "al_r2_r11_r9_ASR_29"},
                           {{al, r12, r9, r8, LSR, 7},
                            false,
                            al,
                            "al r12 r9 r8 LSR 7",
                            "al_r12_r9_r8_LSR_7"},
                           {{al, r6, r2, r0, LSR, 4},
                            false,
                            al,
                            "al r6 r2 r0 LSR 4",
                            "al_r6_r2_r0_LSR_4"},
                           {{al, r12, r2, r11, LSR, 8},
                            false,
                            al,
                            "al r12 r2 r11 LSR 8",
                            "al_r12_r2_r11_LSR_8"},
                           {{al, r0, r10, r12, LSR, 5},
                            false,
                            al,
                            "al r0 r10 r12 LSR 5",
                            "al_r0_r10_r12_LSR_5"},
                           {{al, r2, r2, r2, ASR, 4},
                            false,
                            al,
                            "al r2 r2 r2 ASR 4",
                            "al_r2_r2_r2_ASR_4"},
                           {{al, r4, r13, r11, LSR, 15},
                            false,
                            al,
                            "al r4 r13 r11 LSR 15",
                            "al_r4_r13_r11_LSR_15"},
                           {{al, r4, r2, r13, ASR, 4},
                            false,
                            al,
                            "al r4 r2 r13 ASR 4",
                            "al_r4_r2_r13_ASR_4"},
                           {{al, r4, r4, r7, LSR, 30},
                            false,
                            al,
                            "al r4 r4 r7 LSR 30",
                            "al_r4_r4_r7_LSR_30"},
                           {{al, r4, r8, r10, LSR, 14},
                            false,
                            al,
                            "al r4 r8 r10 LSR 14",
                            "al_r4_r8_r10_LSR_14"},
                           {{al, r14, r8, r11, ASR, 16},
                            false,
                            al,
                            "al r14 r8 r11 ASR 16",
                            "al_r14_r8_r11_ASR_16"},
                           {{al, r0, r8, r1, LSR, 25},
                            false,
                            al,
                            "al r0 r8 r1 LSR 25",
                            "al_r0_r8_r1_LSR_25"},
                           {{al, r14, r13, r14, ASR, 3},
                            false,
                            al,
                            "al r14 r13 r14 ASR 3",
                            "al_r14_r13_r14_ASR_3"},
                           {{al, r13, r8, r13, ASR, 31},
                            false,
                            al,
                            "al r13 r8 r13 ASR 31",
                            "al_r13_r8_r13_ASR_31"},
                           {{al, r9, r6, r1, LSR, 28},
                            false,
                            al,
                            "al r9 r6 r1 LSR 28",
                            "al_r9_r6_r1_LSR_28"},
                           {{al, r4, r14, r1, ASR, 9},
                            false,
                            al,
                            "al r4 r14 r1 ASR 9",
                            "al_r4_r14_r1_ASR_9"},
                           {{al, r8, r0, r14, LSR, 7},
                            false,
                            al,
                            "al r8 r0 r14 LSR 7",
                            "al_r8_r0_r14_LSR_7"},
                           {{al, r8, r8, r12, ASR, 14},
                            false,
                            al,
                            "al r8 r8 r12 ASR 14",
                            "al_r8_r8_r12_ASR_14"},
                           {{al, r9, r14, r12, ASR, 19},
                            false,
                            al,
                            "al r9 r14 r12 ASR 19",
                            "al_r9_r14_r12_ASR_19"},
                           {{al, r4, r14, r11, ASR, 25},
                            false,
                            al,
                            "al r4 r14 r11 ASR 25",
                            "al_r4_r14_r11_ASR_25"},
                           {{al, r1, r0, r9, ASR, 13},
                            false,
                            al,
                            "al r1 r0 r9 ASR 13",
                            "al_r1_r0_r9_ASR_13"},
                           {{al, r8, r13, r9, LSR, 4},
                            false,
                            al,
                            "al r8 r13 r9 LSR 4",
                            "al_r8_r13_r9_LSR_4"},
                           {{al, r2, r4, r4, LSR, 3},
                            false,
                            al,
                            "al r2 r4 r4 LSR 3",
                            "al_r2_r4_r4_LSR_3"},
                           {{al, r14, r13, r3, LSR, 8},
                            false,
                            al,
                            "al r14 r13 r3 LSR 8",
                            "al_r14_r13_r3_LSR_8"},
                           {{al, r11, r6, r3, LSR, 10},
                            false,
                            al,
                            "al r11 r6 r3 LSR 10",
                            "al_r11_r6_r3_LSR_10"},
                           {{al, r13, r8, r4, ASR, 31},
                            false,
                            al,
                            "al r13 r8 r4 ASR 31",
                            "al_r13_r8_r4_ASR_31"},
                           {{al, r8, r11, r0, LSR, 13},
                            false,
                            al,
                            "al r8 r11 r0 LSR 13",
                            "al_r8_r11_r0_LSR_13"},
                           {{al, r10, r5, r10, ASR, 19},
                            false,
                            al,
                            "al r10 r5 r10 ASR 19",
                            "al_r10_r5_r10_ASR_19"},
                           {{al, r13, r4, r5, ASR, 2},
                            false,
                            al,
                            "al r13 r4 r5 ASR 2",
                            "al_r13_r4_r5_ASR_2"},
                           {{al, r8, r4, r10, LSR, 3},
                            false,
                            al,
                            "al r8 r4 r10 LSR 3",
                            "al_r8_r4_r10_LSR_3"},
                           {{al, r13, r7, r3, LSR, 6},
                            false,
                            al,
                            "al r13 r7 r3 LSR 6",
                            "al_r13_r7_r3_LSR_6"},
                           {{al, r6, r1, r8, LSR, 1},
                            false,
                            al,
                            "al r6 r1 r8 LSR 1",
                            "al_r6_r1_r8_LSR_1"},
                           {{al, r5, r13, r9, LSR, 31},
                            false,
                            al,
                            "al r5 r13 r9 LSR 31",
                            "al_r5_r13_r9_LSR_31"},
                           {{al, r11, r8, r0, ASR, 19},
                            false,
                            al,
                            "al r11 r8 r0 ASR 19",
                            "al_r11_r8_r0_ASR_19"},
                           {{al, r14, r6, r8, LSR, 25},
                            false,
                            al,
                            "al r14 r6 r8 LSR 25",
                            "al_r14_r6_r8_LSR_25"},
                           {{al, r10, r6, r7, ASR, 28},
                            false,
                            al,
                            "al r10 r6 r7 ASR 28",
                            "al_r10_r6_r7_ASR_28"},
                           {{al, r5, r2, r9, LSR, 12},
                            false,
                            al,
                            "al r5 r2 r9 LSR 12",
                            "al_r5_r2_r9_LSR_12"},
                           {{al, r1, r2, r6, ASR, 18},
                            false,
                            al,
                            "al r1 r2 r6 ASR 18",
                            "al_r1_r2_r6_ASR_18"},
                           {{al, r10, r13, r11, ASR, 14},
                            false,
                            al,
                            "al r10 r13 r11 ASR 14",
                            "al_r10_r13_r11_ASR_14"},
                           {{al, r6, r8, r8, LSR, 14},
                            false,
                            al,
                            "al r6 r8 r8 LSR 14",
                            "al_r6_r8_r8_LSR_14"},
                           {{al, r7, r14, r11, ASR, 18},
                            false,
                            al,
                            "al r7 r14 r11 ASR 18",
                            "al_r7_r14_r11_ASR_18"},
                           {{al, r3, r11, r2, LSR, 13},
                            false,
                            al,
                            "al r3 r11 r2 LSR 13",
                            "al_r3_r11_r2_LSR_13"},
                           {{al, r14, r7, r6, ASR, 10},
                            false,
                            al,
                            "al r14 r7 r6 ASR 10",
                            "al_r14_r7_r6_ASR_10"},
                           {{al, r6, r5, r7, ASR, 12},
                            false,
                            al,
                            "al r6 r5 r7 ASR 12",
                            "al_r6_r5_r7_ASR_12"},
                           {{al, r5, r2, r9, ASR, 13},
                            false,
                            al,
                            "al r5 r2 r9 ASR 13",
                            "al_r5_r2_r9_ASR_13"},
                           {{al, r12, r13, r3, LSR, 14},
                            false,
                            al,
                            "al r12 r13 r3 LSR 14",
                            "al_r12_r13_r3_LSR_14"},
                           {{al, r10, r4, r0, ASR, 23},
                            false,
                            al,
                            "al r10 r4 r0 ASR 23",
                            "al_r10_r4_r0_ASR_23"},
                           {{al, r10, r12, r2, LSR, 18},
                            false,
                            al,
                            "al r10 r12 r2 LSR 18",
                            "al_r10_r12_r2_LSR_18"},
                           {{al, r4, r10, r14, ASR, 18},
                            false,
                            al,
                            "al r4 r10 r14 ASR 18",
                            "al_r4_r10_r14_ASR_18"},
                           {{al, r13, r0, r1, LSR, 7},
                            false,
                            al,
                            "al r13 r0 r1 LSR 7",
                            "al_r13_r0_r1_LSR_7"},
                           {{al, r3, r3, r13, LSR, 16},
                            false,
                            al,
                            "al r3 r3 r13 LSR 16",
                            "al_r3_r3_r13_LSR_16"},
                           {{al, r7, r4, r4, ASR, 19},
                            false,
                            al,
                            "al r7 r4 r4 ASR 19",
                            "al_r7_r4_r4_ASR_19"},
                           {{al, r6, r7, r4, ASR, 13},
                            false,
                            al,
                            "al r6 r7 r4 ASR 13",
                            "al_r6_r7_r4_ASR_13"},
                           {{al, r8, r10, r11, LSR, 14},
                            false,
                            al,
                            "al r8 r10 r11 LSR 14",
                            "al_r8_r10_r11_LSR_14"},
                           {{al, r0, r0, r1, ASR, 32},
                            false,
                            al,
                            "al r0 r0 r1 ASR 32",
                            "al_r0_r0_r1_ASR_32"},
                           {{al, r10, r12, r0, LSR, 17},
                            false,
                            al,
                            "al r10 r12 r0 LSR 17",
                            "al_r10_r12_r0_LSR_17"},
                           {{al, r2, r5, r12, ASR, 8},
                            false,
                            al,
                            "al r2 r5 r12 ASR 8",
                            "al_r2_r5_r12_ASR_8"},
                           {{al, r4, r3, r11, LSR, 1},
                            false,
                            al,
                            "al r4 r3 r11 LSR 1",
                            "al_r4_r3_r11_LSR_1"},
                           {{al, r12, r13, r12, LSR, 22},
                            false,
                            al,
                            "al r12 r13 r12 LSR 22",
                            "al_r12_r13_r12_LSR_22"},
                           {{al, r8, r13, r11, LSR, 12},
                            false,
                            al,
                            "al r8 r13 r11 LSR 12",
                            "al_r8_r13_r11_LSR_12"},
                           {{al, r9, r11, r3, LSR, 27},
                            false,
                            al,
                            "al r9 r11 r3 LSR 27",
                            "al_r9_r11_r3_LSR_27"},
                           {{al, r8, r9, r10, ASR, 21},
                            false,
                            al,
                            "al r8 r9 r10 ASR 21",
                            "al_r8_r9_r10_ASR_21"},
                           {{al, r10, r3, r0, LSR, 8},
                            false,
                            al,
                            "al r10 r3 r0 LSR 8",
                            "al_r10_r3_r0_LSR_8"},
                           {{al, r9, r2, r6, LSR, 32},
                            false,
                            al,
                            "al r9 r2 r6 LSR 32",
                            "al_r9_r2_r6_LSR_32"},
                           {{al, r9, r0, r9, ASR, 24},
                            false,
                            al,
                            "al r9 r0 r9 ASR 24",
                            "al_r9_r0_r9_ASR_24"},
                           {{al, r0, r10, r7, LSR, 7},
                            false,
                            al,
                            "al r0 r10 r7 LSR 7",
                            "al_r0_r10_r7_LSR_7"},
                           {{al, r7, r11, r12, LSR, 14},
                            false,
                            al,
                            "al r7 r11 r12 LSR 14",
                            "al_r7_r11_r12_LSR_14"},
                           {{al, r12, r10, r13, ASR, 29},
                            false,
                            al,
                            "al r12 r10 r13 ASR 29",
                            "al_r12_r10_r13_ASR_29"},
                           {{al, r2, r14, r3, LSR, 5},
                            false,
                            al,
                            "al r2 r14 r3 LSR 5",
                            "al_r2_r14_r3_LSR_5"},
                           {{al, r14, r3, r12, ASR, 19},
                            false,
                            al,
                            "al r14 r3 r12 ASR 19",
                            "al_r14_r3_r12_ASR_19"},
                           {{al, r12, r12, r11, ASR, 31},
                            false,
                            al,
                            "al r12 r12 r11 ASR 31",
                            "al_r12_r12_r11_ASR_31"},
                           {{al, r0, r3, r2, ASR, 4},
                            false,
                            al,
                            "al r0 r3 r2 ASR 4",
                            "al_r0_r3_r2_ASR_4"},
                           {{al, r13, r2, r11, ASR, 9},
                            false,
                            al,
                            "al r13 r2 r11 ASR 9",
                            "al_r13_r2_r11_ASR_9"},
                           {{al, r12, r14, r9, LSR, 13},
                            false,
                            al,
                            "al r12 r14 r9 LSR 13",
                            "al_r12_r14_r9_LSR_13"},
                           {{al, r14, r3, r3, ASR, 28},
                            false,
                            al,
                            "al r14 r3 r3 ASR 28",
                            "al_r14_r3_r3_ASR_28"},
                           {{al, r12, r5, r12, LSR, 19},
                            false,
                            al,
                            "al r12 r5 r12 LSR 19",
                            "al_r12_r5_r12_LSR_19"},
                           {{al, r9, r13, r1, LSR, 14},
                            false,
                            al,
                            "al r9 r13 r1 LSR 14",
                            "al_r9_r13_r1_LSR_14"},
                           {{al, r5, r3, r1, LSR, 11},
                            false,
                            al,
                            "al r5 r3 r1 LSR 11",
                            "al_r5_r3_r1_LSR_11"},
                           {{al, r0, r14, r5, ASR, 22},
                            false,
                            al,
                            "al r0 r14 r5 ASR 22",
                            "al_r0_r14_r5_ASR_22"},
                           {{al, r8, r9, r8, ASR, 12},
                            false,
                            al,
                            "al r8 r9 r8 ASR 12",
                            "al_r8_r9_r8_ASR_12"},
                           {{al, r9, r0, r13, LSR, 15},
                            false,
                            al,
                            "al r9 r0 r13 LSR 15",
                            "al_r9_r0_r13_LSR_15"},
                           {{al, r9, r5, r14, ASR, 9},
                            false,
                            al,
                            "al r9 r5 r14 ASR 9",
                            "al_r9_r5_r14_ASR_9"},
                           {{al, r9, r13, r13, LSR, 16},
                            false,
                            al,
                            "al r9 r13 r13 LSR 16",
                            "al_r9_r13_r13_LSR_16"},
                           {{al, r7, r0, r8, ASR, 17},
                            false,
                            al,
                            "al r7 r0 r8 ASR 17",
                            "al_r7_r0_r8_ASR_17"},
                           {{al, r10, r13, r14, ASR, 30},
                            false,
                            al,
                            "al r10 r13 r14 ASR 30",
                            "al_r10_r13_r14_ASR_30"},
                           {{al, r7, r10, r4, LSR, 8},
                            false,
                            al,
                            "al r7 r10 r4 LSR 8",
                            "al_r7_r10_r4_LSR_8"},
                           {{al, r10, r5, r1, ASR, 2},
                            false,
                            al,
                            "al r10 r5 r1 ASR 2",
                            "al_r10_r5_r1_ASR_2"},
                           {{al, r4, r10, r2, LSR, 10},
                            false,
                            al,
                            "al r4 r10 r2 LSR 10",
                            "al_r4_r10_r2_LSR_10"},
                           {{al, r3, r5, r0, LSR, 22},
                            false,
                            al,
                            "al r3 r5 r0 LSR 22",
                            "al_r3_r5_r0_LSR_22"},
                           {{al, r13, r11, r12, LSR, 22},
                            false,
                            al,
                            "al r13 r11 r12 LSR 22",
                            "al_r13_r11_r12_LSR_22"},
                           {{al, r0, r8, r6, LSR, 6},
                            false,
                            al,
                            "al r0 r8 r6 LSR 6",
                            "al_r0_r8_r6_LSR_6"},
                           {{al, r13, r4, r1, LSR, 30},
                            false,
                            al,
                            "al r13 r4 r1 LSR 30",
                            "al_r13_r4_r1_LSR_30"},
                           {{al, r13, r9, r12, ASR, 20},
                            false,
                            al,
                            "al r13 r9 r12 ASR 20",
                            "al_r13_r9_r12_ASR_20"},
                           {{al, r0, r5, r10, ASR, 2},
                            false,
                            al,
                            "al r0 r5 r10 ASR 2",
                            "al_r0_r5_r10_ASR_2"},
                           {{al, r10, r4, r0, ASR, 13},
                            false,
                            al,
                            "al r10 r4 r0 ASR 13",
                            "al_r10_r4_r0_ASR_13"},
                           {{al, r12, r3, r0, LSR, 16},
                            false,
                            al,
                            "al r12 r3 r0 LSR 16",
                            "al_r12_r3_r0_LSR_16"},
                           {{al, r7, r11, r14, ASR, 25},
                            false,
                            al,
                            "al r7 r11 r14 ASR 25",
                            "al_r7_r11_r14_ASR_25"},
                           {{al, r8, r9, r12, ASR, 31},
                            false,
                            al,
                            "al r8 r9 r12 ASR 31",
                            "al_r8_r9_r12_ASR_31"},
                           {{al, r14, r11, r8, LSR, 26},
                            false,
                            al,
                            "al r14 r11 r8 LSR 26",
                            "al_r14_r11_r8_LSR_26"},
                           {{al, r8, r3, r6, ASR, 31},
                            false,
                            al,
                            "al r8 r3 r6 ASR 31",
                            "al_r8_r3_r6_ASR_31"},
                           {{al, r10, r4, r5, ASR, 9},
                            false,
                            al,
                            "al r10 r4 r5 ASR 9",
                            "al_r10_r4_r5_ASR_9"},
                           {{al, r9, r4, r6, LSR, 31},
                            false,
                            al,
                            "al r9 r4 r6 LSR 31",
                            "al_r9_r4_r6_LSR_31"},
                           {{al, r12, r6, r12, LSR, 32},
                            false,
                            al,
                            "al r12 r6 r12 LSR 32",
                            "al_r12_r6_r12_LSR_32"},
                           {{al, r5, r8, r9, LSR, 15},
                            false,
                            al,
                            "al r5 r8 r9 LSR 15",
                            "al_r5_r8_r9_LSR_15"},
                           {{al, r1, r7, r0, LSR, 4},
                            false,
                            al,
                            "al r1 r7 r0 LSR 4",
                            "al_r1_r7_r0_LSR_4"},
                           {{al, r14, r5, r3, LSR, 11},
                            false,
                            al,
                            "al r14 r5 r3 LSR 11",
                            "al_r14_r5_r3_LSR_11"},
                           {{al, r0, r5, r11, ASR, 2},
                            false,
                            al,
                            "al r0 r5 r11 ASR 2",
                            "al_r0_r5_r11_ASR_2"},
                           {{al, r11, r13, r7, ASR, 4},
                            false,
                            al,
                            "al r11 r13 r7 ASR 4",
                            "al_r11_r13_r7_ASR_4"},
                           {{al, r8, r13, r12, LSR, 7},
                            false,
                            al,
                            "al r8 r13 r12 LSR 7",
                            "al_r8_r13_r12_LSR_7"},
                           {{al, r2, r11, r2, ASR, 28},
                            false,
                            al,
                            "al r2 r11 r2 ASR 28",
                            "al_r2_r11_r2_ASR_28"},
                           {{al, r9, r14, r11, LSR, 14},
                            false,
                            al,
                            "al r9 r14 r11 LSR 14",
                            "al_r9_r14_r11_LSR_14"},
                           {{al, r5, r12, r4, ASR, 24},
                            false,
                            al,
                            "al r5 r12 r4 ASR 24",
                            "al_r5_r12_r4_ASR_24"},
                           {{al, r9, r13, r3, LSR, 19},
                            false,
                            al,
                            "al r9 r13 r3 LSR 19",
                            "al_r9_r13_r3_LSR_19"},
                           {{al, r6, r3, r3, ASR, 25},
                            false,
                            al,
                            "al r6 r3 r3 ASR 25",
                            "al_r6_r3_r3_ASR_25"},
                           {{al, r13, r6, r6, LSR, 16},
                            false,
                            al,
                            "al r13 r6 r6 LSR 16",
                            "al_r13_r6_r6_LSR_16"},
                           {{al, r0, r9, r5, ASR, 30},
                            false,
                            al,
                            "al r0 r9 r5 ASR 30",
                            "al_r0_r9_r5_ASR_30"},
                           {{al, r9, r9, r0, LSR, 5},
                            false,
                            al,
                            "al r9 r9 r0 LSR 5",
                            "al_r9_r9_r0_LSR_5"},
                           {{al, r0, r5, r14, LSR, 12},
                            false,
                            al,
                            "al r0 r5 r14 LSR 12",
                            "al_r0_r5_r14_LSR_12"},
                           {{al, r14, r12, r7, ASR, 7},
                            false,
                            al,
                            "al r14 r12 r7 ASR 7",
                            "al_r14_r12_r7_ASR_7"},
                           {{al, r8, r13, r6, ASR, 27},
                            false,
                            al,
                            "al r8 r13 r6 ASR 27",
                            "al_r8_r13_r6_ASR_27"},
                           {{al, r12, r6, r13, LSR, 24},
                            false,
                            al,
                            "al r12 r6 r13 LSR 24",
                            "al_r12_r6_r13_LSR_24"},
                           {{al, r7, r10, r6, ASR, 32},
                            false,
                            al,
                            "al r7 r10 r6 ASR 32",
                            "al_r7_r10_r6_ASR_32"},
                           {{al, r6, r12, r13, ASR, 8},
                            false,
                            al,
                            "al r6 r12 r13 ASR 8",
                            "al_r6_r12_r13_ASR_8"},
                           {{al, r13, r0, r8, LSR, 19},
                            false,
                            al,
                            "al r13 r0 r8 LSR 19",
                            "al_r13_r0_r8_LSR_19"},
                           {{al, r10, r9, r10, LSR, 20},
                            false,
                            al,
                            "al r10 r9 r10 LSR 20",
                            "al_r10_r9_r10_LSR_20"},
                           {{al, r5, r7, r2, LSR, 25},
                            false,
                            al,
                            "al r5 r7 r2 LSR 25",
                            "al_r5_r7_r2_LSR_25"},
                           {{al, r2, r6, r0, LSR, 15},
                            false,
                            al,
                            "al r2 r6 r0 LSR 15",
                            "al_r2_r6_r0_LSR_15"},
                           {{al, r12, r6, r8, LSR, 21},
                            false,
                            al,
                            "al r12 r6 r8 LSR 21",
                            "al_r12_r6_r8_LSR_21"},
                           {{al, r14, r13, r2, LSR, 29},
                            false,
                            al,
                            "al r14 r13 r2 LSR 29",
                            "al_r14_r13_r2_LSR_29"},
                           {{al, r1, r13, r0, LSR, 21},
                            false,
                            al,
                            "al r1 r13 r0 LSR 21",
                            "al_r1_r13_r0_LSR_21"},
                           {{al, r6, r7, r8, ASR, 13},
                            false,
                            al,
                            "al r6 r7 r8 ASR 13",
                            "al_r6_r7_r8_ASR_13"},
                           {{al, r13, r2, r10, ASR, 8},
                            false,
                            al,
                            "al r13 r2 r10 ASR 8",
                            "al_r13_r2_r10_ASR_8"},
                           {{al, r5, r13, r7, LSR, 2},
                            false,
                            al,
                            "al r5 r13 r7 LSR 2",
                            "al_r5_r13_r7_LSR_2"},
                           {{al, r0, r3, r2, LSR, 17},
                            false,
                            al,
                            "al r0 r3 r2 LSR 17",
                            "al_r0_r3_r2_LSR_17"},
                           {{al, r1, r8, r9, LSR, 3},
                            false,
                            al,
                            "al r1 r8 r9 LSR 3",
                            "al_r1_r8_r9_LSR_3"},
                           {{al, r11, r3, r1, LSR, 29},
                            false,
                            al,
                            "al r11 r3 r1 LSR 29",
                            "al_r11_r3_r1_LSR_29"},
                           {{al, r2, r2, r11, LSR, 17},
                            false,
                            al,
                            "al r2 r2 r11 LSR 17",
                            "al_r2_r2_r11_LSR_17"},
                           {{al, r7, r14, r11, LSR, 22},
                            false,
                            al,
                            "al r7 r14 r11 LSR 22",
                            "al_r7_r14_r11_LSR_22"},
                           {{al, r8, r7, r14, LSR, 17},
                            false,
                            al,
                            "al r8 r7 r14 LSR 17",
                            "al_r8_r7_r14_LSR_17"},
                           {{al, r14, r2, r7, ASR, 32},
                            false,
                            al,
                            "al r14 r2 r7 ASR 32",
                            "al_r14_r2_r7_ASR_32"},
                           {{al, r0, r6, r9, ASR, 13},
                            false,
                            al,
                            "al r0 r6 r9 ASR 13",
                            "al_r0_r6_r9_ASR_13"},
                           {{al, r3, r5, r4, ASR, 24},
                            false,
                            al,
                            "al r3 r5 r4 ASR 24",
                            "al_r3_r5_r4_ASR_24"},
                           {{al, r10, r10, r6, ASR, 1},
                            false,
                            al,
                            "al r10 r10 r6 ASR 1",
                            "al_r10_r10_r6_ASR_1"},
                           {{al, r8, r9, r4, ASR, 5},
                            false,
                            al,
                            "al r8 r9 r4 ASR 5",
                            "al_r8_r9_r4_ASR_5"},
                           {{al, r3, r0, r6, LSR, 25},
                            false,
                            al,
                            "al r3 r0 r6 LSR 25",
                            "al_r3_r0_r6_LSR_25"},
                           {{al, r12, r7, r12, ASR, 11},
                            false,
                            al,
                            "al r12 r7 r12 ASR 11",
                            "al_r12_r7_r12_ASR_11"},
                           {{al, r10, r9, r7, ASR, 2},
                            false,
                            al,
                            "al r10 r9 r7 ASR 2",
                            "al_r10_r9_r7_ASR_2"},
                           {{al, r13, r13, r5, ASR, 2},
                            false,
                            al,
                            "al r13 r13 r5 ASR 2",
                            "al_r13_r13_r5_ASR_2"},
                           {{al, r11, r3, r2, ASR, 5},
                            false,
                            al,
                            "al r11 r3 r2 ASR 5",
                            "al_r11_r3_r2_ASR_5"},
                           {{al, r0, r8, r8, ASR, 10},
                            false,
                            al,
                            "al r0 r8 r8 ASR 10",
                            "al_r0_r8_r8_ASR_10"},
                           {{al, r10, r12, r12, ASR, 19},
                            false,
                            al,
                            "al r10 r12 r12 ASR 19",
                            "al_r10_r12_r12_ASR_19"},
                           {{al, r2, r6, r0, LSR, 10},
                            false,
                            al,
                            "al r2 r6 r0 LSR 10",
                            "al_r2_r6_r0_LSR_10"},
                           {{al, r11, r8, r8, ASR, 15},
                            false,
                            al,
                            "al r11 r8 r8 ASR 15",
                            "al_r11_r8_r8_ASR_15"},
                           {{al, r14, r14, r1, LSR, 14},
                            false,
                            al,
                            "al r14 r14 r1 LSR 14",
                            "al_r14_r14_r1_LSR_14"},
                           {{al, r9, r8, r12, ASR, 21},
                            false,
                            al,
                            "al r9 r8 r12 ASR 21",
                            "al_r9_r8_r12_ASR_21"},
                           {{al, r14, r14, r12, ASR, 9},
                            false,
                            al,
                            "al r14 r14 r12 ASR 9",
                            "al_r14_r14_r12_ASR_9"},
                           {{al, r0, r0, r3, ASR, 22},
                            false,
                            al,
                            "al r0 r0 r3 ASR 22",
                            "al_r0_r0_r3_ASR_22"},
                           {{al, r9, r7, r13, LSR, 16},
                            false,
                            al,
                            "al r9 r7 r13 LSR 16",
                            "al_r9_r7_r13_LSR_16"},
                           {{al, r8, r1, r5, LSR, 28},
                            false,
                            al,
                            "al r8 r1 r5 LSR 28",
                            "al_r8_r1_r5_LSR_28"},
                           {{al, r0, r2, r11, LSR, 21},
                            false,
                            al,
                            "al r0 r2 r11 LSR 21",
                            "al_r0_r2_r11_LSR_21"},
                           {{al, r5, r12, r8, LSR, 25},
                            false,
                            al,
                            "al r5 r12 r8 LSR 25",
                            "al_r5_r12_r8_LSR_25"},
                           {{al, r9, r5, r6, ASR, 5},
                            false,
                            al,
                            "al r9 r5 r6 ASR 5",
                            "al_r9_r5_r6_ASR_5"},
                           {{al, r0, r0, r7, ASR, 13},
                            false,
                            al,
                            "al r0 r0 r7 ASR 13",
                            "al_r0_r0_r7_ASR_13"},
                           {{al, r2, r10, r7, ASR, 10},
                            false,
                            al,
                            "al r2 r10 r7 ASR 10",
                            "al_r2_r10_r7_ASR_10"},
                           {{al, r13, r8, r14, ASR, 32},
                            false,
                            al,
                            "al r13 r8 r14 ASR 32",
                            "al_r13_r8_r14_ASR_32"},
                           {{al, r3, r2, r9, ASR, 30},
                            false,
                            al,
                            "al r3 r2 r9 ASR 30",
                            "al_r3_r2_r9_ASR_30"},
                           {{al, r11, r0, r14, ASR, 6},
                            false,
                            al,
                            "al r11 r0 r14 ASR 6",
                            "al_r11_r0_r14_ASR_6"},
                           {{al, r13, r10, r2, ASR, 18},
                            false,
                            al,
                            "al r13 r10 r2 ASR 18",
                            "al_r13_r10_r2_ASR_18"},
                           {{al, r8, r13, r1, ASR, 18},
                            false,
                            al,
                            "al r8 r13 r1 ASR 18",
                            "al_r8_r13_r1_ASR_18"},
                           {{al, r10, r4, r3, LSR, 19},
                            false,
                            al,
                            "al r10 r4 r3 LSR 19",
                            "al_r10_r4_r3_LSR_19"},
                           {{al, r2, r2, r9, ASR, 15},
                            false,
                            al,
                            "al r2 r2 r9 ASR 15",
                            "al_r2_r2_r9_ASR_15"},
                           {{al, r6, r4, r8, LSR, 28},
                            false,
                            al,
                            "al r6 r4 r8 LSR 28",
                            "al_r6_r4_r8_LSR_28"},
                           {{al, r14, r9, r6, LSR, 27},
                            false,
                            al,
                            "al r14 r9 r6 LSR 27",
                            "al_r14_r9_r6_LSR_27"},
                           {{al, r3, r14, r8, LSR, 18},
                            false,
                            al,
                            "al r3 r14 r8 LSR 18",
                            "al_r3_r14_r8_LSR_18"},
                           {{al, r4, r1, r14, LSR, 2},
                            false,
                            al,
                            "al r4 r1 r14 LSR 2",
                            "al_r4_r1_r14_LSR_2"},
                           {{al, r13, r9, r6, ASR, 16},
                            false,
                            al,
                            "al r13 r9 r6 ASR 16",
                            "al_r13_r9_r6_ASR_16"},
                           {{al, r4, r1, r9, ASR, 29},
                            false,
                            al,
                            "al r4 r1 r9 ASR 29",
                            "al_r4_r1_r9_ASR_29"},
                           {{al, r4, r3, r2, LSR, 23},
                            false,
                            al,
                            "al r4 r3 r2 LSR 23",
                            "al_r4_r3_r2_LSR_23"},
                           {{al, r11, r8, r0, LSR, 19},
                            false,
                            al,
                            "al r11 r8 r0 LSR 19",
                            "al_r11_r8_r0_LSR_19"},
                           {{al, r6, r10, r4, ASR, 29},
                            false,
                            al,
                            "al r6 r10 r4 ASR 29",
                            "al_r6_r10_r4_ASR_29"},
                           {{al, r8, r2, r5, ASR, 25},
                            false,
                            al,
                            "al r8 r2 r5 ASR 25",
                            "al_r8_r2_r5_ASR_25"},
                           {{al, r3, r10, r14, LSR, 25},
                            false,
                            al,
                            "al r3 r10 r14 LSR 25",
                            "al_r3_r10_r14_LSR_25"},
                           {{al, r4, r9, r0, LSR, 32},
                            false,
                            al,
                            "al r4 r9 r0 LSR 32",
                            "al_r4_r9_r0_LSR_32"},
                           {{al, r14, r10, r1, ASR, 8},
                            false,
                            al,
                            "al r14 r10 r1 ASR 8",
                            "al_r14_r10_r1_ASR_8"},
                           {{al, r10, r10, r1, LSR, 4},
                            false,
                            al,
                            "al r10 r10 r1 LSR 4",
                            "al_r10_r10_r1_LSR_4"},
                           {{al, r10, r2, r9, ASR, 23},
                            false,
                            al,
                            "al r10 r2 r9 ASR 23",
                            "al_r10_r2_r9_ASR_23"},
                           {{al, r12, r2, r7, LSR, 30},
                            false,
                            al,
                            "al r12 r2 r7 LSR 30",
                            "al_r12_r2_r7_LSR_30"},
                           {{al, r13, r4, r9, ASR, 20},
                            false,
                            al,
                            "al r13 r4 r9 ASR 20",
                            "al_r13_r4_r9_ASR_20"},
                           {{al, r12, r13, r2, LSR, 29},
                            false,
                            al,
                            "al r12 r13 r2 LSR 29",
                            "al_r12_r13_r2_LSR_29"},
                           {{al, r14, r8, r13, ASR, 12},
                            false,
                            al,
                            "al r14 r8 r13 ASR 12",
                            "al_r14_r8_r13_ASR_12"},
                           {{al, r11, r14, r11, ASR, 18},
                            false,
                            al,
                            "al r11 r14 r11 ASR 18",
                            "al_r11_r14_r11_ASR_18"},
                           {{al, r11, r10, r1, LSR, 3},
                            false,
                            al,
                            "al r11 r10 r1 LSR 3",
                            "al_r11_r10_r1_LSR_3"},
                           {{al, r6, r2, r0, LSR, 27},
                            false,
                            al,
                            "al r6 r2 r0 LSR 27",
                            "al_r6_r2_r0_LSR_27"},
                           {{al, r13, r6, r12, ASR, 6},
                            false,
                            al,
                            "al r13 r6 r12 ASR 6",
                            "al_r13_r6_r12_ASR_6"},
                           {{al, r9, r2, r3, ASR, 21},
                            false,
                            al,
                            "al r9 r2 r3 ASR 21",
                            "al_r9_r2_r3_ASR_21"},
                           {{al, r2, r9, r4, LSR, 16},
                            false,
                            al,
                            "al r2 r9 r4 LSR 16",
                            "al_r2_r9_r4_LSR_16"},
                           {{al, r10, r13, r10, ASR, 23},
                            false,
                            al,
                            "al r10 r13 r10 ASR 23",
                            "al_r10_r13_r10_ASR_23"},
                           {{al, r8, r13, r10, LSR, 20},
                            false,
                            al,
                            "al r8 r13 r10 LSR 20",
                            "al_r8_r13_r10_LSR_20"},
                           {{al, r0, r7, r7, ASR, 17},
                            false,
                            al,
                            "al r0 r7 r7 ASR 17",
                            "al_r0_r7_r7_ASR_17"},
                           {{al, r2, r5, r9, ASR, 24},
                            false,
                            al,
                            "al r2 r5 r9 ASR 24",
                            "al_r2_r5_r9_ASR_24"},
                           {{al, r1, r9, r7, ASR, 16},
                            false,
                            al,
                            "al r1 r9 r7 ASR 16",
                            "al_r1_r9_r7_ASR_16"},
                           {{al, r4, r1, r7, LSR, 26},
                            false,
                            al,
                            "al r4 r1 r7 LSR 26",
                            "al_r4_r1_r7_LSR_26"},
                           {{al, r6, r4, r10, LSR, 26},
                            false,
                            al,
                            "al r6 r4 r10 LSR 26",
                            "al_r6_r4_r10_LSR_26"},
                           {{al, r9, r5, r7, ASR, 1},
                            false,
                            al,
                            "al r9 r5 r7 ASR 1",
                            "al_r9_r5_r7_ASR_1"},
                           {{al, r5, r3, r5, LSR, 8},
                            false,
                            al,
                            "al r5 r3 r5 LSR 8",
                            "al_r5_r3_r5_LSR_8"},
                           {{al, r7, r6, r8, LSR, 28},
                            false,
                            al,
                            "al r7 r6 r8 LSR 28",
                            "al_r7_r6_r8_LSR_28"},
                           {{al, r3, r5, r12, ASR, 23},
                            false,
                            al,
                            "al r3 r5 r12 ASR 23",
                            "al_r3_r5_r12_ASR_23"},
                           {{al, r3, r14, r9, LSR, 28},
                            false,
                            al,
                            "al r3 r14 r9 LSR 28",
                            "al_r3_r14_r9_LSR_28"},
                           {{al, r14, r5, r3, LSR, 21},
                            false,
                            al,
                            "al r14 r5 r3 LSR 21",
                            "al_r14_r5_r3_LSR_21"},
                           {{al, r11, r0, r13, LSR, 23},
                            false,
                            al,
                            "al r11 r0 r13 LSR 23",
                            "al_r11_r0_r13_LSR_23"},
                           {{al, r13, r13, r7, LSR, 15},
                            false,
                            al,
                            "al r13 r13 r7 LSR 15",
                            "al_r13_r13_r7_LSR_15"},
                           {{al, r6, r10, r8, LSR, 24},
                            false,
                            al,
                            "al r6 r10 r8 LSR 24",
                            "al_r6_r10_r8_LSR_24"},
                           {{al, r8, r11, r11, ASR, 28},
                            false,
                            al,
                            "al r8 r11 r11 ASR 28",
                            "al_r8_r11_r11_ASR_28"},
                           {{al, r9, r1, r1, LSR, 26},
                            false,
                            al,
                            "al r9 r1 r1 LSR 26",
                            "al_r9_r1_r1_LSR_26"},
                           {{al, r2, r4, r14, LSR, 2},
                            false,
                            al,
                            "al r2 r4 r14 LSR 2",
                            "al_r2_r4_r14_LSR_2"},
                           {{al, r4, r7, r2, ASR, 19},
                            false,
                            al,
                            "al r4 r7 r2 ASR 19",
                            "al_r4_r7_r2_ASR_19"},
                           {{al, r9, r1, r7, ASR, 23},
                            false,
                            al,
                            "al r9 r1 r7 ASR 23",
                            "al_r9_r1_r7_ASR_23"},
                           {{al, r4, r7, r11, ASR, 7},
                            false,
                            al,
                            "al r4 r7 r11 ASR 7",
                            "al_r4_r7_r11_ASR_7"},
                           {{al, r7, r9, r5, ASR, 32},
                            false,
                            al,
                            "al r7 r9 r5 ASR 32",
                            "al_r7_r9_r5_ASR_32"},
                           {{al, r14, r6, r6, ASR, 11},
                            false,
                            al,
                            "al r14 r6 r6 ASR 11",
                            "al_r14_r6_r6_ASR_11"},
                           {{al, r14, r5, r14, ASR, 32},
                            false,
                            al,
                            "al r14 r5 r14 ASR 32",
                            "al_r14_r5_r14_ASR_32"},
                           {{al, r9, r2, r13, LSR, 15},
                            false,
                            al,
                            "al r9 r2 r13 LSR 15",
                            "al_r9_r2_r13_LSR_15"},
                           {{al, r13, r8, r3, LSR, 15},
                            false,
                            al,
                            "al r13 r8 r3 LSR 15",
                            "al_r13_r8_r3_LSR_15"},
                           {{al, r14, r0, r2, ASR, 10},
                            false,
                            al,
                            "al r14 r0 r2 ASR 10",
                            "al_r14_r0_r2_ASR_10"},
                           {{al, r9, r6, r5, LSR, 3},
                            false,
                            al,
                            "al r9 r6 r5 LSR 3",
                            "al_r9_r6_r5_LSR_3"},
                           {{al, r11, r10, r12, LSR, 13},
                            false,
                            al,
                            "al r11 r10 r12 LSR 13",
                            "al_r11_r10_r12_LSR_13"},
                           {{al, r7, r11, r9, LSR, 11},
                            false,
                            al,
                            "al r7 r11 r9 LSR 11",
                            "al_r7_r11_r9_LSR_11"},
                           {{al, r3, r9, r9, ASR, 10},
                            false,
                            al,
                            "al r3 r9 r9 ASR 10",
                            "al_r3_r9_r9_ASR_10"},
                           {{al, r12, r14, r3, LSR, 25},
                            false,
                            al,
                            "al r12 r14 r3 LSR 25",
                            "al_r12_r14_r3_LSR_25"},
                           {{al, r13, r1, r11, ASR, 7},
                            false,
                            al,
                            "al r13 r1 r11 ASR 7",
                            "al_r13_r1_r11_ASR_7"},
                           {{al, r12, r9, r5, ASR, 2},
                            false,
                            al,
                            "al r12 r9 r5 ASR 2",
                            "al_r12_r9_r5_ASR_2"},
                           {{al, r6, r13, r7, ASR, 12},
                            false,
                            al,
                            "al r6 r13 r7 ASR 12",
                            "al_r6_r13_r7_ASR_12"},
                           {{al, r5, r1, r5, LSR, 16},
                            false,
                            al,
                            "al r5 r1 r5 LSR 16",
                            "al_r5_r1_r5_LSR_16"},
                           {{al, r0, r11, r13, LSR, 22},
                            false,
                            al,
                            "al r0 r11 r13 LSR 22",
                            "al_r0_r11_r13_LSR_22"},
                           {{al, r7, r8, r1, ASR, 25},
                            false,
                            al,
                            "al r7 r8 r1 ASR 25",
                            "al_r7_r8_r1_ASR_25"},
                           {{al, r2, r13, r9, LSR, 11},
                            false,
                            al,
                            "al r2 r13 r9 LSR 11",
                            "al_r2_r13_r9_LSR_11"},
                           {{al, r4, r9, r11, ASR, 17},
                            false,
                            al,
                            "al r4 r9 r11 ASR 17",
                            "al_r4_r9_r11_ASR_17"},
                           {{al, r6, r0, r4, ASR, 13},
                            false,
                            al,
                            "al r6 r0 r4 ASR 13",
                            "al_r6_r0_r4_ASR_13"},
                           {{al, r9, r0, r14, LSR, 23},
                            false,
                            al,
                            "al r9 r0 r14 LSR 23",
                            "al_r9_r0_r14_LSR_23"},
                           {{al, r14, r11, r5, ASR, 17},
                            false,
                            al,
                            "al r14 r11 r5 ASR 17",
                            "al_r14_r11_r5_ASR_17"},
                           {{al, r6, r14, r13, ASR, 4},
                            false,
                            al,
                            "al r6 r14 r13 ASR 4",
                            "al_r6_r14_r13_ASR_4"},
                           {{al, r14, r12, r7, ASR, 31},
                            false,
                            al,
                            "al r14 r12 r7 ASR 31",
                            "al_r14_r12_r7_ASR_31"},
                           {{al, r11, r10, r12, ASR, 1},
                            false,
                            al,
                            "al r11 r10 r12 ASR 1",
                            "al_r11_r10_r12_ASR_1"},
                           {{al, r14, r11, r12, ASR, 25},
                            false,
                            al,
                            "al r14 r11 r12 ASR 25",
                            "al_r14_r11_r12_ASR_25"},
                           {{al, r2, r13, r1, ASR, 1},
                            false,
                            al,
                            "al r2 r13 r1 ASR 1",
                            "al_r2_r13_r1_ASR_1"},
                           {{al, r9, r2, r3, LSR, 29},
                            false,
                            al,
                            "al r9 r2 r3 LSR 29",
                            "al_r9_r2_r3_LSR_29"},
                           {{al, r1, r7, r6, ASR, 20},
                            false,
                            al,
                            "al r1 r7 r6 ASR 20",
                            "al_r1_r7_r6_ASR_20"},
                           {{al, r9, r13, r3, LSR, 2},
                            false,
                            al,
                            "al r9 r13 r3 LSR 2",
                            "al_r9_r13_r3_LSR_2"},
                           {{al, r8, r12, r5, ASR, 24},
                            false,
                            al,
                            "al r8 r12 r5 ASR 24",
                            "al_r8_r12_r5_ASR_24"},
                           {{al, r12, r5, r14, LSR, 1},
                            false,
                            al,
                            "al r12 r5 r14 LSR 1",
                            "al_r12_r5_r14_LSR_1"},
                           {{al, r13, r4, r9, ASR, 30},
                            false,
                            al,
                            "al r13 r4 r9 ASR 30",
                            "al_r13_r4_r9_ASR_30"},
                           {{al, r12, r2, r11, ASR, 28},
                            false,
                            al,
                            "al r12 r2 r11 ASR 28",
                            "al_r12_r2_r11_ASR_28"},
                           {{al, r8, r2, r11, LSR, 26},
                            false,
                            al,
                            "al r8 r2 r11 LSR 26",
                            "al_r8_r2_r11_LSR_26"},
                           {{al, r0, r0, r2, ASR, 21},
                            false,
                            al,
                            "al r0 r0 r2 ASR 21",
                            "al_r0_r0_r2_ASR_21"},
                           {{al, r7, r10, r14, LSR, 22},
                            false,
                            al,
                            "al r7 r10 r14 LSR 22",
                            "al_r7_r10_r14_LSR_22"},
                           {{al, r3, r1, r4, ASR, 18},
                            false,
                            al,
                            "al r3 r1 r4 ASR 18",
                            "al_r3_r1_r4_ASR_18"},
                           {{al, r8, r14, r3, ASR, 32},
                            false,
                            al,
                            "al r8 r14 r3 ASR 32",
                            "al_r8_r14_r3_ASR_32"},
                           {{al, r4, r9, r8, ASR, 4},
                            false,
                            al,
                            "al r4 r9 r8 ASR 4",
                            "al_r4_r9_r8_ASR_4"},
                           {{al, r7, r2, r4, ASR, 14},
                            false,
                            al,
                            "al r7 r2 r4 ASR 14",
                            "al_r7_r2_r4_ASR_14"},
                           {{al, r12, r1, r9, ASR, 9},
                            false,
                            al,
                            "al r12 r1 r9 ASR 9",
                            "al_r12_r1_r9_ASR_9"},
                           {{al, r3, r5, r0, ASR, 11},
                            false,
                            al,
                            "al r3 r5 r0 ASR 11",
                            "al_r3_r5_r0_ASR_11"},
                           {{al, r14, r9, r0, LSR, 10},
                            false,
                            al,
                            "al r14 r9 r0 LSR 10",
                            "al_r14_r9_r0_LSR_10"},
                           {{al, r14, r13, r6, ASR, 27},
                            false,
                            al,
                            "al r14 r13 r6 ASR 27",
                            "al_r14_r13_r6_ASR_27"},
                           {{al, r13, r8, r1, LSR, 27},
                            false,
                            al,
                            "al r13 r8 r1 LSR 27",
                            "al_r13_r8_r1_LSR_27"},
                           {{al, r7, r0, r7, LSR, 31},
                            false,
                            al,
                            "al r7 r0 r7 LSR 31",
                            "al_r7_r0_r7_LSR_31"},
                           {{al, r5, r8, r7, ASR, 27},
                            false,
                            al,
                            "al r5 r8 r7 ASR 27",
                            "al_r5_r8_r7_ASR_27"},
                           {{al, r12, r3, r10, ASR, 24},
                            false,
                            al,
                            "al r12 r3 r10 ASR 24",
                            "al_r12_r3_r10_ASR_24"},
                           {{al, r14, r14, r5, LSR, 20},
                            false,
                            al,
                            "al r14 r14 r5 LSR 20",
                            "al_r14_r14_r5_LSR_20"},
                           {{al, r0, r12, r7, LSR, 32},
                            false,
                            al,
                            "al r0 r12 r7 LSR 32",
                            "al_r0_r12_r7_LSR_32"},
                           {{al, r2, r3, r6, ASR, 17},
                            false,
                            al,
                            "al r2 r3 r6 ASR 17",
                            "al_r2_r3_r6_ASR_17"},
                           {{al, r11, r8, r13, ASR, 27},
                            false,
                            al,
                            "al r11 r8 r13 ASR 27",
                            "al_r11_r8_r13_ASR_27"},
                           {{al, r13, r12, r4, LSR, 24},
                            false,
                            al,
                            "al r13 r12 r4 LSR 24",
                            "al_r13_r12_r4_LSR_24"},
                           {{al, r3, r3, r0, ASR, 26},
                            false,
                            al,
                            "al r3 r3 r0 ASR 26",
                            "al_r3_r3_r0_ASR_26"},
                           {{al, r10, r0, r5, ASR, 26},
                            false,
                            al,
                            "al r10 r0 r5 ASR 26",
                            "al_r10_r0_r5_ASR_26"},
                           {{al, r5, r9, r7, LSR, 6},
                            false,
                            al,
                            "al r5 r9 r7 LSR 6",
                            "al_r5_r9_r7_LSR_6"},
                           {{al, r12, r4, r9, ASR, 8},
                            false,
                            al,
                            "al r12 r4 r9 ASR 8",
                            "al_r12_r4_r9_ASR_8"},
                           {{al, r4, r0, r13, LSR, 16},
                            false,
                            al,
                            "al r4 r0 r13 LSR 16",
                            "al_r4_r0_r13_LSR_16"},
                           {{al, r11, r2, r2, LSR, 6},
                            false,
                            al,
                            "al r11 r2 r2 LSR 6",
                            "al_r11_r2_r2_LSR_6"},
                           {{al, r12, r4, r3, ASR, 11},
                            false,
                            al,
                            "al r12 r4 r3 ASR 11",
                            "al_r12_r4_r3_ASR_11"},
                           {{al, r0, r10, r12, ASR, 22},
                            false,
                            al,
                            "al r0 r10 r12 ASR 22",
                            "al_r0_r10_r12_ASR_22"},
                           {{al, r12, r2, r12, LSR, 16},
                            false,
                            al,
                            "al r12 r2 r12 LSR 16",
                            "al_r12_r2_r12_LSR_16"},
                           {{al, r2, r2, r8, ASR, 14},
                            false,
                            al,
                            "al r2 r2 r8 ASR 14",
                            "al_r2_r2_r8_ASR_14"},
                           {{al, r9, r1, r3, LSR, 2},
                            false,
                            al,
                            "al r9 r1 r3 LSR 2",
                            "al_r9_r1_r3_LSR_2"},
                           {{al, r7, r0, r6, ASR, 15},
                            false,
                            al,
                            "al r7 r0 r6 ASR 15",
                            "al_r7_r0_r6_ASR_15"},
                           {{al, r11, r2, r12, LSR, 17},
                            false,
                            al,
                            "al r11 r2 r12 LSR 17",
                            "al_r11_r2_r12_LSR_17"},
                           {{al, r3, r7, r7, ASR, 19},
                            false,
                            al,
                            "al r3 r7 r7 ASR 19",
                            "al_r3_r7_r7_ASR_19"},
                           {{al, r9, r13, r1, LSR, 29},
                            false,
                            al,
                            "al r9 r13 r1 LSR 29",
                            "al_r9_r13_r1_LSR_29"},
                           {{al, r1, r0, r2, LSR, 2},
                            false,
                            al,
                            "al r1 r0 r2 LSR 2",
                            "al_r1_r0_r2_LSR_2"},
                           {{al, r14, r10, r2, ASR, 12},
                            false,
                            al,
                            "al r14 r10 r2 ASR 12",
                            "al_r14_r10_r2_ASR_12"},
                           {{al, r7, r14, r11, ASR, 27},
                            false,
                            al,
                            "al r7 r14 r11 ASR 27",
                            "al_r7_r14_r11_ASR_27"},
                           {{al, r9, r8, r13, ASR, 17},
                            false,
                            al,
                            "al r9 r8 r13 ASR 17",
                            "al_r9_r8_r13_ASR_17"},
                           {{al, r6, r14, r8, LSR, 11},
                            false,
                            al,
                            "al r6 r14 r8 LSR 11",
                            "al_r6_r14_r8_LSR_11"},
                           {{al, r5, r3, r9, ASR, 31},
                            false,
                            al,
                            "al r5 r3 r9 ASR 31",
                            "al_r5_r3_r9_ASR_31"},
                           {{al, r5, r4, r1, ASR, 29},
                            false,
                            al,
                            "al r5 r4 r1 ASR 29",
                            "al_r5_r4_r1_ASR_29"},
                           {{al, r6, r5, r10, ASR, 25},
                            false,
                            al,
                            "al r6 r5 r10 ASR 25",
                            "al_r6_r5_r10_ASR_25"},
                           {{al, r1, r8, r14, ASR, 32},
                            false,
                            al,
                            "al r1 r8 r14 ASR 32",
                            "al_r1_r8_r14_ASR_32"},
                           {{al, r0, r3, r5, ASR, 4},
                            false,
                            al,
                            "al r0 r3 r5 ASR 4",
                            "al_r0_r3_r5_ASR_4"},
                           {{al, r8, r6, r1, ASR, 5},
                            false,
                            al,
                            "al r8 r6 r1 ASR 5",
                            "al_r8_r6_r1_ASR_5"},
                           {{al, r14, r9, r14, ASR, 25},
                            false,
                            al,
                            "al r14 r9 r14 ASR 25",
                            "al_r14_r9_r14_ASR_25"},
                           {{al, r2, r10, r0, ASR, 18},
                            false,
                            al,
                            "al r2 r10 r0 ASR 18",
                            "al_r2_r10_r0_ASR_18"},
                           {{al, r12, r14, r0, LSR, 23},
                            false,
                            al,
                            "al r12 r14 r0 LSR 23",
                            "al_r12_r14_r0_LSR_23"},
                           {{al, r5, r13, r14, LSR, 25},
                            false,
                            al,
                            "al r5 r13 r14 LSR 25",
                            "al_r5_r13_r14_LSR_25"},
                           {{al, r13, r11, r10, ASR, 18},
                            false,
                            al,
                            "al r13 r11 r10 ASR 18",
                            "al_r13_r11_r10_ASR_18"},
                           {{al, r13, r9, r4, LSR, 22},
                            false,
                            al,
                            "al r13 r9 r4 LSR 22",
                            "al_r13_r9_r4_LSR_22"},
                           {{al, r10, r12, r5, LSR, 12},
                            false,
                            al,
                            "al r10 r12 r5 LSR 12",
                            "al_r10_r12_r5_LSR_12"},
                           {{al, r0, r1, r2, ASR, 28},
                            false,
                            al,
                            "al r0 r1 r2 ASR 28",
                            "al_r0_r1_r2_ASR_28"},
                           {{al, r13, r5, r5, LSR, 4},
                            false,
                            al,
                            "al r13 r5 r5 LSR 4",
                            "al_r13_r5_r5_LSR_4"},
                           {{al, r1, r3, r10, LSR, 18},
                            false,
                            al,
                            "al r1 r3 r10 LSR 18",
                            "al_r1_r3_r10_LSR_18"},
                           {{al, r2, r6, r4, LSR, 4},
                            false,
                            al,
                            "al r2 r6 r4 LSR 4",
                            "al_r2_r6_r4_LSR_4"},
                           {{al, r0, r3, r10, LSR, 4},
                            false,
                            al,
                            "al r0 r3 r10 LSR 4",
                            "al_r0_r3_r10_LSR_4"},
                           {{al, r14, r2, r8, LSR, 30},
                            false,
                            al,
                            "al r14 r2 r8 LSR 30",
                            "al_r14_r2_r8_LSR_30"},
                           {{al, r10, r12, r10, ASR, 18},
                            false,
                            al,
                            "al r10 r12 r10 ASR 18",
                            "al_r10_r12_r10_ASR_18"},
                           {{al, r13, r4, r2, LSR, 31},
                            false,
                            al,
                            "al r13 r4 r2 LSR 31",
                            "al_r13_r4_r2_LSR_31"},
                           {{al, r10, r11, r14, LSR, 5},
                            false,
                            al,
                            "al r10 r11 r14 LSR 5",
                            "al_r10_r11_r14_LSR_5"},
                           {{al, r3, r1, r6, ASR, 8},
                            false,
                            al,
                            "al r3 r1 r6 ASR 8",
                            "al_r3_r1_r6_ASR_8"},
                           {{al, r7, r14, r2, ASR, 10},
                            false,
                            al,
                            "al r7 r14 r2 ASR 10",
                            "al_r7_r14_r2_ASR_10"},
                           {{al, r8, r10, r8, ASR, 8},
                            false,
                            al,
                            "al r8 r10 r8 ASR 8",
                            "al_r8_r10_r8_ASR_8"},
                           {{al, r7, r10, r4, ASR, 21},
                            false,
                            al,
                            "al r7 r10 r4 ASR 21",
                            "al_r7_r10_r4_ASR_21"},
                           {{al, r6, r3, r3, ASR, 6},
                            false,
                            al,
                            "al r6 r3 r3 ASR 6",
                            "al_r6_r3_r3_ASR_6"},
                           {{al, r1, r8, r6, ASR, 20},
                            false,
                            al,
                            "al r1 r8 r6 ASR 20",
                            "al_r1_r8_r6_ASR_20"},
                           {{al, r14, r6, r0, LSR, 12},
                            false,
                            al,
                            "al r14 r6 r0 LSR 12",
                            "al_r14_r6_r0_LSR_12"},
                           {{al, r8, r1, r14, LSR, 19},
                            false,
                            al,
                            "al r8 r1 r14 LSR 19",
                            "al_r8_r1_r14_LSR_19"},
                           {{al, r6, r7, r8, LSR, 22},
                            false,
                            al,
                            "al r6 r7 r8 LSR 22",
                            "al_r6_r7_r8_LSR_22"},
                           {{al, r9, r0, r11, LSR, 8},
                            false,
                            al,
                            "al r9 r0 r11 LSR 8",
                            "al_r9_r0_r11_LSR_8"},
                           {{al, r10, r3, r2, LSR, 6},
                            false,
                            al,
                            "al r10 r3 r2 LSR 6",
                            "al_r10_r3_r2_LSR_6"},
                           {{al, r2, r14, r0, ASR, 12},
                            false,
                            al,
                            "al r2 r14 r0 ASR 12",
                            "al_r2_r14_r0_ASR_12"},
                           {{al, r6, r3, r5, LSR, 22},
                            false,
                            al,
                            "al r6 r3 r5 LSR 22",
                            "al_r6_r3_r5_LSR_22"},
                           {{al, r2, r13, r9, LSR, 12},
                            false,
                            al,
                            "al r2 r13 r9 LSR 12",
                            "al_r2_r13_r9_LSR_12"},
                           {{al, r14, r5, r2, LSR, 5},
                            false,
                            al,
                            "al r14 r5 r2 LSR 5",
                            "al_r14_r5_r2_LSR_5"},
                           {{al, r4, r10, r12, LSR, 32},
                            false,
                            al,
                            "al r4 r10 r12 LSR 32",
                            "al_r4_r10_r12_LSR_32"},
                           {{al, r1, r12, r2, ASR, 1},
                            false,
                            al,
                            "al r1 r12 r2 ASR 1",
                            "al_r1_r12_r2_ASR_1"},
                           {{al, r7, r11, r3, ASR, 27},
                            false,
                            al,
                            "al r7 r11 r3 ASR 27",
                            "al_r7_r11_r3_ASR_27"},
                           {{al, r3, r2, r2, ASR, 29},
                            false,
                            al,
                            "al r3 r2 r2 ASR 29",
                            "al_r3_r2_r2_ASR_29"},
                           {{al, r12, r2, r10, ASR, 13},
                            false,
                            al,
                            "al r12 r2 r10 ASR 13",
                            "al_r12_r2_r10_ASR_13"},
                           {{al, r3, r2, r3, ASR, 19},
                            false,
                            al,
                            "al r3 r2 r3 ASR 19",
                            "al_r3_r2_r3_ASR_19"},
                           {{al, r3, r12, r8, ASR, 14},
                            false,
                            al,
                            "al r3 r12 r8 ASR 14",
                            "al_r3_r12_r8_ASR_14"},
                           {{al, r14, r13, r9, LSR, 28},
                            false,
                            al,
                            "al r14 r13 r9 LSR 28",
                            "al_r14_r13_r9_LSR_28"},
                           {{al, r6, r12, r7, ASR, 32},
                            false,
                            al,
                            "al r6 r12 r7 ASR 32",
                            "al_r6_r12_r7_ASR_32"},
                           {{al, r11, r11, r12, ASR, 9},
                            false,
                            al,
                            "al r11 r11 r12 ASR 9",
                            "al_r11_r11_r12_ASR_9"},
                           {{al, r9, r11, r4, ASR, 21},
                            false,
                            al,
                            "al r9 r11 r4 ASR 21",
                            "al_r9_r11_r4_ASR_21"},
                           {{al, r6, r9, r3, LSR, 30},
                            false,
                            al,
                            "al r6 r9 r3 LSR 30",
                            "al_r6_r9_r3_LSR_30"},
                           {{al, r6, r0, r8, ASR, 22},
                            false,
                            al,
                            "al r6 r0 r8 ASR 22",
                            "al_r6_r0_r8_ASR_22"},
                           {{al, r5, r9, r11, ASR, 27},
                            false,
                            al,
                            "al r5 r9 r11 ASR 27",
                            "al_r5_r9_r11_ASR_27"},
                           {{al, r4, r10, r6, LSR, 2},
                            false,
                            al,
                            "al r4 r10 r6 LSR 2",
                            "al_r4_r10_r6_LSR_2"},
                           {{al, r10, r14, r11, ASR, 20},
                            false,
                            al,
                            "al r10 r14 r11 ASR 20",
                            "al_r10_r14_r11_ASR_20"},
                           {{al, r8, r13, r11, LSR, 13},
                            false,
                            al,
                            "al r8 r13 r11 LSR 13",
                            "al_r8_r13_r11_LSR_13"},
                           {{al, r7, r12, r13, LSR, 11},
                            false,
                            al,
                            "al r7 r12 r13 LSR 11",
                            "al_r7_r12_r13_LSR_11"},
                           {{al, r14, r6, r14, ASR, 21},
                            false,
                            al,
                            "al r14 r6 r14 ASR 21",
                            "al_r14_r6_r14_ASR_21"},
                           {{al, r2, r2, r7, LSR, 25},
                            false,
                            al,
                            "al r2 r2 r7 LSR 25",
                            "al_r2_r2_r7_LSR_25"},
                           {{al, r0, r11, r5, LSR, 5},
                            false,
                            al,
                            "al r0 r11 r5 LSR 5",
                            "al_r0_r11_r5_LSR_5"},
                           {{al, r1, r5, r14, LSR, 19},
                            false,
                            al,
                            "al r1 r5 r14 LSR 19",
                            "al_r1_r5_r14_LSR_19"},
                           {{al, r4, r14, r13, LSR, 27},
                            false,
                            al,
                            "al r4 r14 r13 LSR 27",
                            "al_r4_r14_r13_LSR_27"},
                           {{al, r13, r2, r3, ASR, 24},
                            false,
                            al,
                            "al r13 r2 r3 ASR 24",
                            "al_r13_r2_r3_ASR_24"},
                           {{al, r11, r1, r9, ASR, 12},
                            false,
                            al,
                            "al r11 r1 r9 ASR 12",
                            "al_r11_r1_r9_ASR_12"},
                           {{al, r2, r7, r13, LSR, 10},
                            false,
                            al,
                            "al r2 r7 r13 LSR 10",
                            "al_r2_r7_r13_LSR_10"},
                           {{al, r4, r13, r0, ASR, 3},
                            false,
                            al,
                            "al r4 r13 r0 ASR 3",
                            "al_r4_r13_r0_ASR_3"},
                           {{al, r7, r1, r3, ASR, 23},
                            false,
                            al,
                            "al r7 r1 r3 ASR 23",
                            "al_r7_r1_r3_ASR_23"},
                           {{al, r10, r13, r3, ASR, 20},
                            false,
                            al,
                            "al r10 r13 r3 ASR 20",
                            "al_r10_r13_r3_ASR_20"},
                           {{al, r7, r13, r9, LSR, 8},
                            false,
                            al,
                            "al r7 r13 r9 LSR 8",
                            "al_r7_r13_r9_LSR_8"},
                           {{al, r14, r14, r3, LSR, 21},
                            false,
                            al,
                            "al r14 r14 r3 LSR 21",
                            "al_r14_r14_r3_LSR_21"},
                           {{al, r4, r14, r2, ASR, 32},
                            false,
                            al,
                            "al r4 r14 r2 ASR 32",
                            "al_r4_r14_r2_ASR_32"},
                           {{al, r1, r4, r3, LSR, 10},
                            false,
                            al,
                            "al r1 r4 r3 LSR 10",
                            "al_r1_r4_r3_LSR_10"},
                           {{al, r11, r10, r9, LSR, 16},
                            false,
                            al,
                            "al r11 r10 r9 LSR 16",
                            "al_r11_r10_r9_LSR_16"},
                           {{al, r9, r8, r4, LSR, 5},
                            false,
                            al,
                            "al r9 r8 r4 LSR 5",
                            "al_r9_r8_r4_LSR_5"},
                           {{al, r11, r8, r11, ASR, 7},
                            false,
                            al,
                            "al r11 r8 r11 ASR 7",
                            "al_r11_r8_r11_ASR_7"},
                           {{al, r3, r7, r2, ASR, 20},
                            false,
                            al,
                            "al r3 r7 r2 ASR 20",
                            "al_r3_r7_r2_ASR_20"},
                           {{al, r9, r10, r0, ASR, 1},
                            false,
                            al,
                            "al r9 r10 r0 ASR 1",
                            "al_r9_r10_r0_ASR_1"},
                           {{al, r0, r12, r10, ASR, 21},
                            false,
                            al,
                            "al r0 r12 r10 ASR 21",
                            "al_r0_r12_r10_ASR_21"},
                           {{al, r11, r4, r2, ASR, 32},
                            false,
                            al,
                            "al r11 r4 r2 ASR 32",
                            "al_r11_r4_r2_ASR_32"},
                           {{al, r5, r0, r2, LSR, 15},
                            false,
                            al,
                            "al r5 r0 r2 LSR 15",
                            "al_r5_r0_r2_LSR_15"},
                           {{al, r8, r10, r7, ASR, 14},
                            false,
                            al,
                            "al r8 r10 r7 ASR 14",
                            "al_r8_r10_r7_ASR_14"},
                           {{al, r14, r5, r3, LSR, 18},
                            false,
                            al,
                            "al r14 r5 r3 LSR 18",
                            "al_r14_r5_r3_LSR_18"},
                           {{al, r2, r8, r6, ASR, 6},
                            false,
                            al,
                            "al r2 r8 r6 ASR 6",
                            "al_r2_r8_r6_ASR_6"},
                           {{al, r3, r0, r4, LSR, 23},
                            false,
                            al,
                            "al r3 r0 r4 LSR 23",
                            "al_r3_r0_r4_LSR_23"},
                           {{al, r3, r7, r0, LSR, 13},
                            false,
                            al,
                            "al r3 r7 r0 LSR 13",
                            "al_r3_r7_r0_LSR_13"},
                           {{al, r3, r4, r10, ASR, 28},
                            false,
                            al,
                            "al r3 r4 r10 ASR 28",
                            "al_r3_r4_r10_ASR_28"},
                           {{al, r3, r4, r1, ASR, 6},
                            false,
                            al,
                            "al r3 r4 r1 ASR 6",
                            "al_r3_r4_r1_ASR_6"},
                           {{al, r0, r3, r8, ASR, 18},
                            false,
                            al,
                            "al r0 r3 r8 ASR 18",
                            "al_r0_r3_r8_ASR_18"},
                           {{al, r5, r6, r13, LSR, 2},
                            false,
                            al,
                            "al r5 r6 r13 LSR 2",
                            "al_r5_r6_r13_LSR_2"},
                           {{al, r10, r11, r14, LSR, 2},
                            false,
                            al,
                            "al r10 r11 r14 LSR 2",
                            "al_r10_r11_r14_LSR_2"},
                           {{al, r10, r6, r6, ASR, 17},
                            false,
                            al,
                            "al r10 r6 r6 ASR 17",
                            "al_r10_r6_r6_ASR_17"},
                           {{al, r5, r2, r3, ASR, 3},
                            false,
                            al,
                            "al r5 r2 r3 ASR 3",
                            "al_r5_r2_r3_ASR_3"},
                           {{al, r14, r14, r1, LSR, 19},
                            false,
                            al,
                            "al r14 r14 r1 LSR 19",
                            "al_r14_r14_r1_LSR_19"},
                           {{al, r8, r4, r7, LSR, 6},
                            false,
                            al,
                            "al r8 r4 r7 LSR 6",
                            "al_r8_r4_r7_LSR_6"},
                           {{al, r12, r0, r8, LSR, 29},
                            false,
                            al,
                            "al r12 r0 r8 LSR 29",
                            "al_r12_r0_r8_LSR_29"},
                           {{al, r9, r0, r1, ASR, 29},
                            false,
                            al,
                            "al r9 r0 r1 ASR 29",
                            "al_r9_r0_r1_ASR_29"},
                           {{al, r7, r13, r9, ASR, 10},
                            false,
                            al,
                            "al r7 r13 r9 ASR 10",
                            "al_r7_r13_r9_ASR_10"},
                           {{al, r9, r10, r1, ASR, 26},
                            false,
                            al,
                            "al r9 r10 r1 ASR 26",
                            "al_r9_r10_r1_ASR_26"},
                           {{al, r1, r11, r10, ASR, 30},
                            false,
                            al,
                            "al r1 r11 r10 ASR 30",
                            "al_r1_r11_r10_ASR_30"},
                           {{al, r3, r14, r6, LSR, 11},
                            false,
                            al,
                            "al r3 r14 r6 LSR 11",
                            "al_r3_r14_r6_LSR_11"}};

// 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-rn-operand-rm-shift-amount-1to32-t32-adc.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-adcs.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-add.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-adds.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-and.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-ands.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-bic.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-bics.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-eor.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-eors.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-orn.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-orns.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-orr.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-orrs.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-rsb.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-rsbs.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-sbc.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-sbcs.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-sub.h"
#include "aarch32/traces/assembler-cond-rd-rn-operand-rm-shift-amount-1to32-t32-subs.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,
                                   Register rn,
                                   const Operand& op);

void TestHelper(Fn instruction,
                const char* mnemonic,
                const TestResult reference[]) {
  unsigned total_error_count = 0;
  MacroAssembler masm(BUF_SIZE);

  masm.UseT32();

  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;
    Register rn = kTests[i].operands.rn;
    Register rm = kTests[i].operands.rm;
    ShiftType shift = kTests[i].operands.shift;
    uint32_t amount = kTests[i].operands.amount;
    Operand op(rm, shift, amount);

    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, rn, 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_RN_OPERAND_RM_SHIFT_AMOUNT_1TO32_"         \
      "T32_" #mnemonic,                                                     \
      &Test_##mnemonic);
FOREACH_INSTRUCTION(TEST)
#undef TEST

}  // namespace
#endif

}  // namespace aarch32
}  // namespace vixl