1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222
|
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+ssve-fp8fma < %s \
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+fp8fma < %s \
// RUN: | llvm-objdump -d --mattr=+sve2,+fp8fma --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-INST
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sve2,+fp8fma < %s \
// RUN: | llvm-objdump -d --mattr=-sve2 --no-print-imm-hex - | FileCheck %s --check-prefix=CHECK-UNKNOWN
// Disassemble encoding and check the re-encoding (-show-encoding) matches.
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2,+fp8fma < %s \
// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
// RUN: | llvm-mc -triple=aarch64 -mattr=+sve2,+fp8fma -disassemble -show-encoding \
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
//
// FMLALLBB instructions
//
// fmlallbb - indexed
fmlallbb z0.s, z0.b, z0.b[0] // 01100100-00100000-11000000-00000000
// CHECK-INST: fmlallbb z0.s, z0.b, z0.b[0]
// CHECK-ENCODING: [0x00,0xc0,0x20,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 6420c000 <unknown>
movprfx z23, z31
fmlallbb z23.s, z13.b, z0.b[7] // 01100100-00101000-11001101-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: fmlallbb z23.s, z13.b, z0.b[7]
// CHECK-ENCODING: [0xb7,0xcd,0x28,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 6428cdb7 <unknown>
fmlallbb z31.s, z31.b, z7.b[15] // 01100100-00111111-11001111-11111111
// CHECK-INST: fmlallbb z31.s, z31.b, z7.b[15]
// CHECK-ENCODING: [0xff,0xcf,0x3f,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 643fcfff <unknown>
//
// FMLALLBB instructions
//
// fmlallbb - group
fmlallbb z0.s, z0.b, z0.b // 01100100-00100000-10001000-00000000
// CHECK-INST: fmlallbb z0.s, z0.b, z0.b
// CHECK-ENCODING: [0x00,0x88,0x20,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64208800 <unknown>
movprfx z23, z31
fmlallbb z23.s, z13.b, z8.b // 01100100-00101000-10001001-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: fmlallbb z23.s, z13.b, z8.b
// CHECK-ENCODING: [0xb7,0x89,0x28,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 642889b7 <unknown>
fmlallbb z31.s, z31.b, z31.b // 01100100-00111111-10001011-11111111
// CHECK-INST: fmlallbb z31.s, z31.b, z31.b
// CHECK-ENCODING: [0xff,0x8b,0x3f,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 643f8bff <unknown>
//--------------------------------------------//
//
// FMLALLBT instructions
//
// fmlallbt - indexed
fmlallbt z0.s, z0.b, z0.b[0] // 01100100-01100000-11000000-00000000
// CHECK-INST: fmlallbt z0.s, z0.b, z0.b[0]
// CHECK-ENCODING: [0x00,0xc0,0x60,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 6460c000 <unknown>
movprfx z23, z31
fmlallbt z23.s, z13.b, z0.b[7] // 01100100-01101000-11001101-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: fmlallbt z23.s, z13.b, z0.b[7]
// CHECK-ENCODING: [0xb7,0xcd,0x68,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 6468cdb7 <unknown>
fmlallbt z31.s, z31.b, z7.b[15] // 01100100-01111111-11001111-11111111
// CHECK-INST: fmlallbt z31.s, z31.b, z7.b[15]
// CHECK-ENCODING: [0xff,0xcf,0x7f,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 647fcfff <unknown>
//
// FMLALLBT instructions
//
// fmlallbt - group
fmlallbt z0.s, z0.b, z0.b // 01100100-00100000-10011000-00000000
// CHECK-INST: fmlallbt z0.s, z0.b, z0.b
// CHECK-ENCODING: [0x00,0x98,0x20,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64209800 <unknown>
movprfx z23, z31
fmlallbt z23.s, z13.b, z8.b // 01100100-00101000-10011001-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: fmlallbt z23.s, z13.b, z8.b
// CHECK-ENCODING: [0xb7,0x99,0x28,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 642899b7 <unknown>
fmlallbt z31.s, z31.b, z31.b // 01100100-00111111-10011011-11111111
// CHECK-INST: fmlallbt z31.s, z31.b, z31.b
// CHECK-ENCODING: [0xff,0x9b,0x3f,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 643f9bff <unknown>
//--------------------------------------------//
//
// FMLALLTB instructions
//
// fmlalltb - indexed
fmlalltb z0.s, z0.b, z0.b[0] // 01100100-10100000-11000000-00000000
// CHECK-INST: fmlalltb z0.s, z0.b, z0.b[0]
// CHECK-ENCODING: [0x00,0xc0,0xa0,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64a0c000 <unknown>
movprfx z23, z31
fmlalltb z23.s, z13.b, z0.b[7] // 01100100-10101000-11001101-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: fmlalltb z23.s, z13.b, z0.b[7]
// CHECK-ENCODING: [0xb7,0xcd,0xa8,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64a8cdb7 <unknown>
fmlalltb z31.s, z31.b, z7.b[15] // 01100100-10111111-11001111-11111111
// CHECK-INST: fmlalltb z31.s, z31.b, z7.b[15]
// CHECK-ENCODING: [0xff,0xcf,0xbf,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64bfcfff <unknown>
//
// FMLALLTB instructions
//
// fmlalltb - group
fmlalltb z0.s, z0.b, z0.b // 01100100-00100000-10101000-00000000
// CHECK-INST: fmlalltb z0.s, z0.b, z0.b
// CHECK-ENCODING: [0x00,0xa8,0x20,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 6420a800 <unknown>
movprfx z23, z31
fmlalltb z23.s, z13.b, z8.b // 01100100-00101000-10101001-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: fmlalltb z23.s, z13.b, z8.b
// CHECK-ENCODING: [0xb7,0xa9,0x28,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 6428a9b7 <unknown>
fmlalltb z31.s, z31.b, z31.b // 01100100-00111111-10101011-11111111
// CHECK-INST: fmlalltb z31.s, z31.b, z31.b
// CHECK-ENCODING: [0xff,0xab,0x3f,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 643fabff <unknown>
//--------------------------------------------//
//
// FMLALLTT instructions
//
// fmlalltt - indexed
fmlalltt z0.s, z0.b, z0.b[0] // 01100100-11100000-11000000-00000000
// CHECK-INST: fmlalltt z0.s, z0.b, z0.b[0]
// CHECK-ENCODING: [0x00,0xc0,0xe0,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64e0c000 <unknown>
movprfx z23, z31
fmlalltt z23.s, z13.b, z0.b[7] // 01100100-11101000-11001101-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: fmlalltt z23.s, z13.b, z0.b[7]
// CHECK-ENCODING: [0xb7,0xcd,0xe8,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64e8cdb7 <unknown>
fmlalltt z31.s, z31.b, z7.b[15] // 01100100-11111111-11001111-11111111
// CHECK-INST: fmlalltt z31.s, z31.b, z7.b[15]
// CHECK-ENCODING: [0xff,0xcf,0xff,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 64ffcfff <unknown>
//
// FMLALLTT instructions
//
// fmlalltt - group
fmlalltt z0.s, z0.b, z0.b // 01100100-00100000-10111000-00000000
// CHECK-INST: fmlalltt z0.s, z0.b, z0.b
// CHECK-ENCODING: [0x00,0xb8,0x20,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 6420b800 <unknown>
movprfx z23, z31
fmlalltt z23.s, z13.b, z8.b // 01100100-00101000-10111001-10110111
// CHECK-INST: movprfx z23, z31
// CHECK-INST: fmlalltt z23.s, z13.b, z8.b
// CHECK-ENCODING: [0xb7,0xb9,0x28,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 6428b9b7 <unknown>
fmlalltt z31.s, z31.b, z31.b // 01100100-00111111-10111011-11111111
// CHECK-INST: fmlalltt z31.s, z31.b, z31.b
// CHECK-ENCODING: [0xff,0xbb,0x3f,0x64]
// CHECK-ERROR: instruction requires: ssve-fp8fma or (sve2 and fp8fma)
// CHECK-UNKNOWN: 643fbbff <unknown>
|