| 1 |
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+faminmax < %s \ |
| 2 |
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 3 |
// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \ |
| 4 |
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR |
| 5 |
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2,+faminmax < %s \ |
| 6 |
// RUN: | llvm-objdump -d --mattr=+sme2,+faminmax - | FileCheck %s --check-prefix=CHECK-INST |
| 7 |
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2,+faminmax < %s \ |
| 8 |
// RUN: | llvm-objdump -d --mattr=-faminmax - | FileCheck %s --check-prefix=CHECK-UNKNOWN |
| 9 |
// Disassemble encoding and check the re-encoding (-show-encoding) matches. |
| 10 |
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2,+faminmax < %s \ |
| 11 |
// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \ |
| 12 |
// RUN: | llvm-mc -triple=aarch64 -mattr=+sme2,+faminmax -disassemble -show-encoding \ |
| 13 |
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 14 |
|
| 15 |
// FAMAX |
| 16 |
famax {z0.h-z1.h}, {z0.h-z1.h}, {z0.h-z1.h} // 11000001-01100000-10110001-01000000 |
| 17 |
// CHECK-INST: famax { z0.h, z1.h }, { z0.h, z1.h }, { z0.h, z1.h } |
| 18 |
// CHECK-ENCODING: [0x40,0xb1,0x60,0xc1] |
| 19 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 20 |
// CHECK-UNKNOWN: c160b140 <unknown> |
| 21 |
|
| 22 |
famax {z30.h-z31.h}, {z30.h-z31.h}, {z30.h-z31.h} // 11000001-01111110-10110001-01011110 |
| 23 |
// CHECK-INST: famax { z30.h, z31.h }, { z30.h, z31.h }, { z30.h, z31.h } |
| 24 |
// CHECK-ENCODING: [0x5e,0xb1,0x7e,0xc1] |
| 25 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 26 |
// CHECK-UNKNOWN: c17eb15e <unknown> |
| 27 |
|
| 28 |
famax {z0.s-z1.s}, {z0.s-z1.s}, {z0.s-z1.s} // 11000001-10100000-10110001-01000000 |
| 29 |
// CHECK-INST: famax { z0.s, z1.s }, { z0.s, z1.s }, { z0.s, z1.s } |
| 30 |
// CHECK-ENCODING: [0x40,0xb1,0xa0,0xc1] |
| 31 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 32 |
// CHECK-UNKNOWN: c1a0b140 <unknown> |
| 33 |
|
| 34 |
famax {z30.s-z31.s}, {z30.s-z31.s}, {z30.s-z31.s} // 11000001-10111110-10110001-01011110 |
| 35 |
// CHECK-INST: famax { z30.s, z31.s }, { z30.s, z31.s }, { z30.s, z31.s } |
| 36 |
// CHECK-ENCODING: [0x5e,0xb1,0xbe,0xc1] |
| 37 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 38 |
// CHECK-UNKNOWN: c1beb15e <unknown> |
| 39 |
|
| 40 |
famax {z0.d-z1.d}, {z0.d-z1.d}, {z0.d-z1.d} // 11000001-11100000-10110001-01000000 |
| 41 |
// CHECK-INST: famax { z0.d, z1.d }, { z0.d, z1.d }, { z0.d, z1.d } |
| 42 |
// CHECK-ENCODING: [0x40,0xb1,0xe0,0xc1] |
| 43 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 44 |
// CHECK-UNKNOWN: c1e0b140 <unknown> |
| 45 |
|
| 46 |
famax {z30.d-z31.d}, {z30.d-z31.d}, {z30.d-z31.d} // 11000001-11111110-10110001-01011110 |
| 47 |
// CHECK-INST: famax { z30.d, z31.d }, { z30.d, z31.d }, { z30.d, z31.d } |
| 48 |
// CHECK-ENCODING: [0x5e,0xb1,0xfe,0xc1] |
| 49 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 50 |
// CHECK-UNKNOWN: c1feb15e <unknown> |
| 51 |
|
| 52 |
famax {z0.h-z3.h}, {z0.h-z3.h}, {z0.h-z3.h} // 11000001-01100000-10111001-01000000 |
| 53 |
// CHECK-INST: famax { z0.h - z3.h }, { z0.h - z3.h }, { z0.h - z3.h } |
| 54 |
// CHECK-ENCODING: [0x40,0xb9,0x60,0xc1] |
| 55 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 56 |
// CHECK-UNKNOWN: c160b940 <unknown> |
| 57 |
|
| 58 |
famax {z28.h-z31.h}, {z28.h-z31.h}, {z28.h-z31.h} // 11000001-01111100-10111001-01011100 |
| 59 |
// CHECK-INST: famax { z28.h - z31.h }, { z28.h - z31.h }, { z28.h - z31.h } |
| 60 |
// CHECK-ENCODING: [0x5c,0xb9,0x7c,0xc1] |
| 61 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 62 |
// CHECK-UNKNOWN: c17cb95c <unknown> |
| 63 |
|
| 64 |
famax {z0.s-z3.s}, {z0.s-z3.s}, {z0.s-z3.s} // 11000001-10100000-10111001-01000000 |
| 65 |
// CHECK-INST: famax { z0.s - z3.s }, { z0.s - z3.s }, { z0.s - z3.s } |
| 66 |
// CHECK-ENCODING: [0x40,0xb9,0xa0,0xc1] |
| 67 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 68 |
// CHECK-UNKNOWN: c1a0b940 <unknown> |
| 69 |
|
| 70 |
famax {z28.s-z31.s}, {z28.s-z31.s}, {z28.s-z31.s} // 11000001-10111100-10111001-01011100 |
| 71 |
// CHECK-INST: famax { z28.s - z31.s }, { z28.s - z31.s }, { z28.s - z31.s } |
| 72 |
// CHECK-ENCODING: [0x5c,0xb9,0xbc,0xc1] |
| 73 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 74 |
// CHECK-UNKNOWN: c1bcb95c <unknown> |
| 75 |
|
| 76 |
famax {z0.h-z3.h}, {z0.h-z3.h}, {z0.h-z3.h} // 11000001-01100000-10111001-01000000 |
| 77 |
// CHECK-INST: famax { z0.h - z3.h }, { z0.h - z3.h }, { z0.h - z3.h } |
| 78 |
// CHECK-ENCODING: [0x40,0xb9,0x60,0xc1] |
| 79 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 80 |
// CHECK-UNKNOWN: c160b940 <unknown> |
| 81 |
|
| 82 |
famax {z28.h-z31.h}, {z28.h-z31.h}, {z28.h-z31.h} // 11000001-01111100-10111001-01011100 |
| 83 |
// CHECK-INST: famax { z28.h - z31.h }, { z28.h - z31.h }, { z28.h - z31.h } |
| 84 |
// CHECK-ENCODING: [0x5c,0xb9,0x7c,0xc1] |
| 85 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 86 |
// CHECK-UNKNOWN: c17cb95c <unknown> |
| 87 |
|
| 88 |
// FAMIN |
| 89 |
famin {z0.h-z1.h}, {z0.h-z1.h}, {z0.h-z1.h} // 11000001-01100000-10110001-01000001 |
| 90 |
// CHECK-INST: famin { z0.h, z1.h }, { z0.h, z1.h }, { z0.h, z1.h } |
| 91 |
// CHECK-ENCODING: [0x41,0xb1,0x60,0xc1] |
| 92 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 93 |
// CHECK-UNKNOWN: c160b141 <unknown> |
| 94 |
|
| 95 |
famin {z30.h-z31.h}, {z30.h-z31.h}, {z30.h-z31.h} // 11000001-01111110-10110001-01011111 |
| 96 |
// CHECK-INST: famin { z30.h, z31.h }, { z30.h, z31.h }, { z30.h, z31.h } |
| 97 |
// CHECK-ENCODING: [0x5f,0xb1,0x7e,0xc1] |
| 98 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 99 |
// CHECK-UNKNOWN: c17eb15f <unknown> |
| 100 |
|
| 101 |
famin {z0.s-z1.s}, {z0.s-z1.s}, {z0.s-z1.s} // 11000001-10100000-10110001-01000001 |
| 102 |
// CHECK-INST: famin { z0.s, z1.s }, { z0.s, z1.s }, { z0.s, z1.s } |
| 103 |
// CHECK-ENCODING: [0x41,0xb1,0xa0,0xc1] |
| 104 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 105 |
// CHECK-UNKNOWN: c1a0b141 <unknown> |
| 106 |
|
| 107 |
famin {z30.s-z31.s}, {z30.s-z31.s}, {z30.s-z31.s} // 11000001-10111110-10110001-01011111 |
| 108 |
// CHECK-INST: famin { z30.s, z31.s }, { z30.s, z31.s }, { z30.s, z31.s } |
| 109 |
// CHECK-ENCODING: [0x5f,0xb1,0xbe,0xc1] |
| 110 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 111 |
// CHECK-UNKNOWN: c1beb15f <unknown> |
| 112 |
|
| 113 |
famin {z0.d-z1.d}, {z0.d-z1.d}, {z0.d-z1.d} // 11000001-11100000-10110001-01000001 |
| 114 |
// CHECK-INST: famin { z0.d, z1.d }, { z0.d, z1.d }, { z0.d, z1.d } |
| 115 |
// CHECK-ENCODING: [0x41,0xb1,0xe0,0xc1] |
| 116 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 117 |
// CHECK-UNKNOWN: c1e0b141 <unknown> |
| 118 |
|
| 119 |
famin {z30.d-z31.d}, {z30.d-z31.d}, {z30.d-z31.d} // 11000001-11111110-10110001-01011111 |
| 120 |
// CHECK-INST: famin { z30.d, z31.d }, { z30.d, z31.d }, { z30.d, z31.d } |
| 121 |
// CHECK-ENCODING: [0x5f,0xb1,0xfe,0xc1] |
| 122 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 123 |
// CHECK-UNKNOWN: c1feb15f <unknown> |
| 124 |
|
| 125 |
famin {z0.h-z3.h}, {z0.h-z3.h}, {z0.h-z3.h} // 11000001-01100000-10111001-01000001 |
| 126 |
// CHECK-INST: famin { z0.h - z3.h }, { z0.h - z3.h }, { z0.h - z3.h } |
| 127 |
// CHECK-ENCODING: [0x41,0xb9,0x60,0xc1] |
| 128 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 129 |
// CHECK-UNKNOWN: c160b941 <unknown> |
| 130 |
|
| 131 |
famin {z28.h-z31.h}, {z28.h-z31.h}, {z28.h-z31.h} // 11000001-01111100-10111001-01011101 |
| 132 |
// CHECK-INST: famin { z28.h - z31.h }, { z28.h - z31.h }, { z28.h - z31.h } |
| 133 |
// CHECK-ENCODING: [0x5d,0xb9,0x7c,0xc1] |
| 134 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 135 |
// CHECK-UNKNOWN: c17cb95d <unknown> |
| 136 |
|
| 137 |
famin {z0.s-z3.s}, {z0.s-z3.s}, {z0.s-z3.s} // 11000001-10100000-10111001-01000001 |
| 138 |
// CHECK-INST: famin { z0.s - z3.s }, { z0.s - z3.s }, { z0.s - z3.s } |
| 139 |
// CHECK-ENCODING: [0x41,0xb9,0xa0,0xc1] |
| 140 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 141 |
// CHECK-UNKNOWN: c1a0b941 <unknown> |
| 142 |
|
| 143 |
famin {z28.s-z31.s}, {z28.s-z31.s}, {z28.s-z31.s} // 11000001-10111100-10111001-01011101 |
| 144 |
// CHECK-INST: famin { z28.s - z31.s }, { z28.s - z31.s }, { z28.s - z31.s } |
| 145 |
// CHECK-ENCODING: [0x5d,0xb9,0xbc,0xc1] |
| 146 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 147 |
// CHECK-UNKNOWN: c1bcb95d <unknown> |
| 148 |
|
| 149 |
famin {z0.d-z3.d}, {z0.d-z3.d}, {z0.d-z3.d} // 11000001-11100000-10111001-01000001 |
| 150 |
// CHECK-INST: famin { z0.d - z3.d }, { z0.d - z3.d }, { z0.d - z3.d } |
| 151 |
// CHECK-ENCODING: [0x41,0xb9,0xe0,0xc1] |
| 152 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 153 |
// CHECK-UNKNOWN: c1e0b941 <unknown> |
| 154 |
|
| 155 |
famin {z28.d-z31.d}, {z28.d-z31.d}, {z28.d-z31.d} // 11000001-11111100-10111001-01011101 |
| 156 |
// CHECK-INST: famin { z28.d - z31.d }, { z28.d - z31.d }, { z28.d - z31.d } |
| 157 |
// CHECK-ENCODING: [0x5d,0xb9,0xfc,0xc1] |
| 158 |
// CHECK-ERROR: instruction requires: faminmax sme2 |
| 159 |
// CHECK-UNKNOWN: c1fcb95d <unknown> |