| 1 |
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+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=+faminmax < %s \ |
| 6 |
// RUN: | llvm-objdump -d --mattr=+faminmax - | FileCheck %s --check-prefix=CHECK-INST |
| 7 |
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+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=+faminmax < %s \ |
| 11 |
// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \ |
| 12 |
// RUN: | llvm-mc -triple=aarch64 -mattr=+faminmax -disassemble -show-encoding \ |
| 13 |
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST |
| 14 |
|
| 15 |
/// FAMAX instructions. |
| 16 |
famax v31.4h, v31.4h, v31.4h |
| 17 |
// CHECK-INST: famax v31.4h, v31.4h, v31.4h |
| 18 |
// CHECK-ENCODING: [0xff,0x1f,0xdf,0x0e] |
| 19 |
// CHECK-ERROR: instruction requires: faminmax |
| 20 |
// CHECK-UNKNOWN: 0edf1fff <unknown> |
| 21 |
|
| 22 |
famax v31.4h, v0.4h, v31.4h |
| 23 |
// CHECK-INST: famax v31.4h, v0.4h, v31.4h |
| 24 |
// CHECK-ENCODING: [0x1f,0x1c,0xdf,0x0e] |
| 25 |
// CHECK-ERROR: instruction requires: faminmax |
| 26 |
// CHECK-UNKNOWN: 0edf1c1f <unknown> |
| 27 |
|
| 28 |
famax v0.4h, v0.4h, v0.4h |
| 29 |
// CHECK-INST: famax v0.4h, v0.4h, v0.4h |
| 30 |
// CHECK-ENCODING: [0x00,0x1c,0xc0,0x0e] |
| 31 |
// CHECK-ERROR: instruction requires: faminmax |
| 32 |
// CHECK-UNKNOWN: 0ec01c00 <unknown> |
| 33 |
|
| 34 |
famax v31.8h, v31.8h, v31.8h |
| 35 |
// CHECK-INST: famax v31.8h, v31.8h, v31.8h |
| 36 |
// CHECK-ENCODING: [0xff,0x1f,0xdf,0x4e] |
| 37 |
// CHECK-ERROR: instruction requires: faminmax |
| 38 |
// CHECK-UNKNOWN: 4edf1fff <unknown> |
| 39 |
|
| 40 |
famax v31.8h, v31.8h, v0.8h |
| 41 |
// CHECK-INST: famax v31.8h, v31.8h, v0.8h |
| 42 |
// CHECK-ENCODING: [0xff,0x1f,0xc0,0x4e] |
| 43 |
// CHECK-ERROR: instruction requires: faminmax |
| 44 |
// CHECK-UNKNOWN: 4ec01fff <unknown> |
| 45 |
|
| 46 |
famax v0.8h, v0.8h, v0.8h |
| 47 |
// CHECK-INST: famax v0.8h, v0.8h, v0.8h |
| 48 |
// CHECK-ENCODING: [0x00,0x1c,0xc0,0x4e] |
| 49 |
// CHECK-ERROR: instruction requires: faminmax |
| 50 |
// CHECK-UNKNOWN: 4ec01c00 <unknown> |
| 51 |
|
| 52 |
famax v31.2s, v31.2s, v31.2s |
| 53 |
// CHECK-INST: famax v31.2s, v31.2s, v31.2s |
| 54 |
// CHECK-ENCODING: [0xff,0xdf,0xbf,0x0e] |
| 55 |
// CHECK-ERROR: instruction requires: faminmax |
| 56 |
// CHECK-UNKNOWN: 0ebfdfff <unknown> |
| 57 |
|
| 58 |
famax v31.2s, v0.2s, v0.2s |
| 59 |
// CHECK-INST: famax v31.2s, v0.2s, v0.2s |
| 60 |
// CHECK-ENCODING: [0x1f,0xdc,0xa0,0x0e] |
| 61 |
// CHECK-ERROR: instruction requires: faminmax |
| 62 |
// CHECK-UNKNOWN: 0ea0dc1f <unknown> |
| 63 |
|
| 64 |
famax v0.2s, v0.2s, v0.2s |
| 65 |
// CHECK-INST: famax v0.2s, v0.2s, v0.2s |
| 66 |
// CHECK-ENCODING: [0x00,0xdc,0xa0,0x0e] |
| 67 |
// CHECK-ERROR: instruction requires: faminmax |
| 68 |
// CHECK-UNKNOWN: 0ea0dc00 <unknown> |
| 69 |
|
| 70 |
famax v31.4s, v31.4s, v31.4s |
| 71 |
// CHECK-INST: famax v31.4s, v31.4s, v31.4s |
| 72 |
// CHECK-ENCODING: [0xff,0xdf,0xbf,0x4e] |
| 73 |
// CHECK-ERROR: instruction requires: faminmax |
| 74 |
// CHECK-UNKNOWN: 4ebfdfff <unknown> |
| 75 |
|
| 76 |
famax v0.4s, v31.4s, v31.4s |
| 77 |
// CHECK-INST: famax v0.4s, v31.4s, v31.4s |
| 78 |
// CHECK-ENCODING: [0xe0,0xdf,0xbf,0x4e] |
| 79 |
// CHECK-ERROR: instruction requires: faminmax |
| 80 |
// CHECK-UNKNOWN: 4ebfdfe0 <unknown> |
| 81 |
|
| 82 |
famax v0.4s, v0.4s, v0.4s |
| 83 |
// CHECK-INST: famax v0.4s, v0.4s, v0.4s |
| 84 |
// CHECK-ENCODING: [0x00,0xdc,0xa0,0x4e] |
| 85 |
// CHECK-ERROR: instruction requires: faminmax |
| 86 |
// CHECK-UNKNOWN: 4ea0dc00 <unknown> |
| 87 |
|
| 88 |
famax v31.2d, v31.2d, v31.2d |
| 89 |
// CHECK-INST: famax v31.2d, v31.2d, v31.2d |
| 90 |
// CHECK-ENCODING: [0xff,0xdf,0xff,0x4e] |
| 91 |
// CHECK-ERROR: instruction requires: faminmax |
| 92 |
// CHECK-UNKNOWN: 4effdfff <unknown> |
| 93 |
|
| 94 |
famax v0.2d, v0.2d, v31.2d |
| 95 |
// CHECK-INST: famax v0.2d, v0.2d, v31.2d |
| 96 |
// CHECK-ENCODING: [0x00,0xdc,0xff,0x4e] |
| 97 |
// CHECK-ERROR: instruction requires: faminmax |
| 98 |
// CHECK-UNKNOWN: 4effdc00 <unknown> |
| 99 |
|
| 100 |
famax v0.2d, v0.2d, v0.2d |
| 101 |
// CHECK-INST: famax v0.2d, v0.2d, v0.2d |
| 102 |
// CHECK-ENCODING: [0x00,0xdc,0xe0,0x4e] |
| 103 |
// CHECK-ERROR: instruction requires: faminmax |
| 104 |
// CHECK-UNKNOWN: 4ee0dc00 <unknown> |
| 105 |
|
| 106 |
|
| 107 |
/// FAMIN instructions. |
| 108 |
famin v31.4h, v31.4h, v31.4h |
| 109 |
// CHECK-INST: famin v31.4h, v31.4h, v31.4h |
| 110 |
// CHECK-ENCODING: [0xff,0x1f,0xdf,0x2e] |
| 111 |
// CHECK-ERROR: instruction requires: faminmax |
| 112 |
// CHECK-UNKNOWN: 2edf1fff <unknown> |
| 113 |
|
| 114 |
famin v31.4h, v0.4h, v31.4h |
| 115 |
// CHECK-INST: famin v31.4h, v0.4h, v31.4h |
| 116 |
// CHECK-ENCODING: [0x1f,0x1c,0xdf,0x2e] |
| 117 |
// CHECK-ERROR: instruction requires: faminmax |
| 118 |
// CHECK-UNKNOWN: 2edf1c1f <unknown> |
| 119 |
|
| 120 |
famin v0.4h, v0.4h, v0.4h |
| 121 |
// CHECK-INST: famin v0.4h, v0.4h, v0.4h |
| 122 |
// CHECK-ENCODING: [0x00,0x1c,0xc0,0x2e] |
| 123 |
// CHECK-ERROR: instruction requires: faminmax |
| 124 |
// CHECK-UNKNOWN: 2ec01c00 <unknown> |
| 125 |
|
| 126 |
famin v31.8h, v31.8h, v31.8h |
| 127 |
// CHECK-INST: famin v31.8h, v31.8h, v31.8h |
| 128 |
// CHECK-ENCODING: [0xff,0x1f,0xdf,0x6e] |
| 129 |
// CHECK-ERROR: instruction requires: faminmax |
| 130 |
// CHECK-UNKNOWN: 6edf1fff <unknown> |
| 131 |
|
| 132 |
famin v31.8h, v31.8h, v0.8h |
| 133 |
// CHECK-INST: famin v31.8h, v31.8h, v0.8h |
| 134 |
// CHECK-ENCODING: [0xff,0x1f,0xc0,0x6e] |
| 135 |
// CHECK-ERROR: instruction requires: faminmax |
| 136 |
// CHECK-UNKNOWN: 6ec01fff <unknown> |
| 137 |
|
| 138 |
famin v0.8h, v0.8h, v0.8h |
| 139 |
// CHECK-INST: famin v0.8h, v0.8h, v0.8h |
| 140 |
// CHECK-ENCODING: [0x00,0x1c,0xc0,0x6e] |
| 141 |
// CHECK-ERROR: instruction requires: faminmax |
| 142 |
// CHECK-UNKNOWN: 6ec01c00 <unknown> |
| 143 |
|
| 144 |
famin v31.2s, v31.2s, v31.2s |
| 145 |
// CHECK-INST: famin v31.2s, v31.2s, v31.2s |
| 146 |
// CHECK-ENCODING: [0xff,0xdf,0xbf,0x2e] |
| 147 |
// CHECK-ERROR: instruction requires: faminmax |
| 148 |
// CHECK-UNKNOWN: 2ebfdfff <unknown> |
| 149 |
|
| 150 |
famin v31.2s, v0.2s, v0.2s |
| 151 |
// CHECK-INST: famin v31.2s, v0.2s, v0.2s |
| 152 |
// CHECK-ENCODING: [0x1f,0xdc,0xa0,0x2e] |
| 153 |
// CHECK-ERROR: instruction requires: faminmax |
| 154 |
// CHECK-UNKNOWN: 2ea0dc1f <unknown> |
| 155 |
|
| 156 |
famin v0.2s, v0.2s, v0.2s |
| 157 |
// CHECK-INST: famin v0.2s, v0.2s, v0.2s |
| 158 |
// CHECK-ENCODING: [0x00,0xdc,0xa0,0x2e] |
| 159 |
// CHECK-ERROR: instruction requires: faminmax |
| 160 |
// CHECK-UNKNOWN: 2ea0dc00 <unknown> |
| 161 |
|
| 162 |
famin v31.4s, v31.4s, v31.4s |
| 163 |
// CHECK-INST: famin v31.4s, v31.4s, v31.4s |
| 164 |
// CHECK-ENCODING: [0xff,0xdf,0xbf,0x6e] |
| 165 |
// CHECK-ERROR: instruction requires: faminmax |
| 166 |
// CHECK-UNKNOWN: 6ebfdfff <unknown> |
| 167 |
|
| 168 |
famin v0.4s, v31.4s, v31.4s |
| 169 |
// CHECK-INST: famin v0.4s, v31.4s, v31.4s |
| 170 |
// CHECK-ENCODING: [0xe0,0xdf,0xbf,0x6e] |
| 171 |
// CHECK-ERROR: instruction requires: faminmax |
| 172 |
// CHECK-UNKNOWN: 6ebfdfe0 <unknown> |
| 173 |
|
| 174 |
famin v0.4s, v0.4s, v0.4s |
| 175 |
// CHECK-INST: famin v0.4s, v0.4s, v0.4s |
| 176 |
// CHECK-ENCODING: [0x00,0xdc,0xa0,0x6e] |
| 177 |
// CHECK-ERROR: instruction requires: faminmax |
| 178 |
// CHECK-UNKNOWN: 6ea0dc00 <unknown> |
| 179 |
|
| 180 |
famin v31.2d, v31.2d, v31.2d |
| 181 |
// CHECK-INST: famin v31.2d, v31.2d, v31.2d |
| 182 |
// CHECK-ENCODING: [0xff,0xdf,0xff,0x6e] |
| 183 |
// CHECK-ERROR: instruction requires: faminmax |
| 184 |
// CHECK-UNKNOWN: 6effdfff <unknown> |
| 185 |
|
| 186 |
famin v0.2d, v0.2d, v31.2d |
| 187 |
// CHECK-INST: famin v0.2d, v0.2d, v31.2d |
| 188 |
// CHECK-ENCODING: [0x00,0xdc,0xff,0x6e] |
| 189 |
// CHECK-ERROR: instruction requires: faminmax |
| 190 |
// CHECK-UNKNOWN: 6effdc00 <unknown> |
| 191 |
|
| 192 |
famin v0.2d, v0.2d, v0.2d |
| 193 |
// CHECK-INST: famin v0.2d, v0.2d, v0.2d |
| 194 |
// CHECK-ENCODING: [0x00,0xdc,0xe0,0x6e] |
| 195 |
// CHECK-ERROR: instruction requires: faminmax |
| 196 |
// CHECK-UNKNOWN: 6ee0dc00 <unknown> |
| 197 |
|