301 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme-b16b16 < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \4// RUN: | FileCheck %s --check-prefix=CHECK-ERROR5// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme-b16b16 < %s \6// RUN: | llvm-objdump -d --mattr=+sme-b16b16 - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme-b16b16 < %s \8// RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme-b16b16 < %s \10// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \11// RUN: | llvm-mc -triple=aarch64 -mattr=+sme-b16b16 -disassemble -show-encoding \12// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST13 14bfsub za.h[w8, 0, vgx2], {z0.h, z1.h} // 11000001-11100100-00011100-0000100015// CHECK-INST: bfsub za.h[w8, 0, vgx2], { z0.h, z1.h }16// CHECK-ENCODING: [0x08,0x1c,0xe4,0xc1]17// CHECK-ERROR: instruction requires: sme-b16b1618// CHECK-UNKNOWN: c1e41c08 <unknown>19 20bfsub za.h[w8, 0], {z0.h - z1.h} // 11000001-11100100-00011100-0000100021// CHECK-INST: bfsub za.h[w8, 0, vgx2], { z0.h, z1.h }22// CHECK-ENCODING: [0x08,0x1c,0xe4,0xc1]23// CHECK-ERROR: instruction requires: sme-b16b1624// CHECK-UNKNOWN: c1e41c08 <unknown>25 26bfsub za.h[w10, 5, vgx2], {z10.h, z11.h} // 11000001-11100100-01011101-0100110127// CHECK-INST: bfsub za.h[w10, 5, vgx2], { z10.h, z11.h }28// CHECK-ENCODING: [0x4d,0x5d,0xe4,0xc1]29// CHECK-ERROR: instruction requires: sme-b16b1630// CHECK-UNKNOWN: c1e45d4d <unknown>31 32bfsub za.h[w10, 5], {z10.h - z11.h} // 11000001-11100100-01011101-0100110133// CHECK-INST: bfsub za.h[w10, 5, vgx2], { z10.h, z11.h }34// CHECK-ENCODING: [0x4d,0x5d,0xe4,0xc1]35// CHECK-ERROR: instruction requires: sme-b16b1636// CHECK-UNKNOWN: c1e45d4d <unknown>37 38bfsub za.h[w11, 7, vgx2], {z12.h, z13.h} // 11000001-11100100-01111101-1000111139// CHECK-INST: bfsub za.h[w11, 7, vgx2], { z12.h, z13.h }40// CHECK-ENCODING: [0x8f,0x7d,0xe4,0xc1]41// CHECK-ERROR: instruction requires: sme-b16b1642// CHECK-UNKNOWN: c1e47d8f <unknown>43 44bfsub za.h[w11, 7], {z12.h - z13.h} // 11000001-11100100-01111101-1000111145// CHECK-INST: bfsub za.h[w11, 7, vgx2], { z12.h, z13.h }46// CHECK-ENCODING: [0x8f,0x7d,0xe4,0xc1]47// CHECK-ERROR: instruction requires: sme-b16b1648// CHECK-UNKNOWN: c1e47d8f <unknown>49 50bfsub za.h[w11, 7, vgx2], {z30.h, z31.h} // 11000001-11100100-01111111-1100111151// CHECK-INST: bfsub za.h[w11, 7, vgx2], { z30.h, z31.h }52// CHECK-ENCODING: [0xcf,0x7f,0xe4,0xc1]53// CHECK-ERROR: instruction requires: sme-b16b1654// CHECK-UNKNOWN: c1e47fcf <unknown>55 56bfsub za.h[w11, 7], {z30.h - z31.h} // 11000001-11100100-01111111-1100111157// CHECK-INST: bfsub za.h[w11, 7, vgx2], { z30.h, z31.h }58// CHECK-ENCODING: [0xcf,0x7f,0xe4,0xc1]59// CHECK-ERROR: instruction requires: sme-b16b1660// CHECK-UNKNOWN: c1e47fcf <unknown>61 62bfsub za.h[w8, 5, vgx2], {z16.h, z17.h} // 11000001-11100100-00011110-0000110163// CHECK-INST: bfsub za.h[w8, 5, vgx2], { z16.h, z17.h }64// CHECK-ENCODING: [0x0d,0x1e,0xe4,0xc1]65// CHECK-ERROR: instruction requires: sme-b16b1666// CHECK-UNKNOWN: c1e41e0d <unknown>67 68bfsub za.h[w8, 5], {z16.h - z17.h} // 11000001-11100100-00011110-0000110169// CHECK-INST: bfsub za.h[w8, 5, vgx2], { z16.h, z17.h }70// CHECK-ENCODING: [0x0d,0x1e,0xe4,0xc1]71// CHECK-ERROR: instruction requires: sme-b16b1672// CHECK-UNKNOWN: c1e41e0d <unknown>73 74bfsub za.h[w8, 1, vgx2], {z0.h, z1.h} // 11000001-11100100-00011100-0000100175// CHECK-INST: bfsub za.h[w8, 1, vgx2], { z0.h, z1.h }76// CHECK-ENCODING: [0x09,0x1c,0xe4,0xc1]77// CHECK-ERROR: instruction requires: sme-b16b1678// CHECK-UNKNOWN: c1e41c09 <unknown>79 80bfsub za.h[w8, 1], {z0.h - z1.h} // 11000001-11100100-00011100-0000100181// CHECK-INST: bfsub za.h[w8, 1, vgx2], { z0.h, z1.h }82// CHECK-ENCODING: [0x09,0x1c,0xe4,0xc1]83// CHECK-ERROR: instruction requires: sme-b16b1684// CHECK-UNKNOWN: c1e41c09 <unknown>85 86bfsub za.h[w10, 0, vgx2], {z18.h, z19.h} // 11000001-11100100-01011110, 0100100087// CHECK-INST: bfsub za.h[w10, 0, vgx2], { z18.h, z19.h }88// CHECK-ENCODING: [0x48,0x5e,0xe4,0xc1]89// CHECK-ERROR: instruction requires: sme-b16b1690// CHECK-UNKNOWN: c1e45e48 <unknown>91 92bfsub za.h[w10, 0], {z18.h - z19.h} // 11000001-11100100-01011110-0100100093// CHECK-INST: bfsub za.h[w10, 0, vgx2], { z18.h, z19.h }94// CHECK-ENCODING: [0x48,0x5e,0xe4,0xc1]95// CHECK-ERROR: instruction requires: sme-b16b1696// CHECK-UNKNOWN: c1e45e48 <unknown>97 98bfsub za.h[w8, 0, vgx2], {z12.h, z13.h} // 11000001-11100100-00011101-1000100099// CHECK-INST: bfsub za.h[w8, 0, vgx2], { z12.h, z13.h }100// CHECK-ENCODING: [0x88,0x1d,0xe4,0xc1]101// CHECK-ERROR: instruction requires: sme-b16b16102// CHECK-UNKNOWN: c1e41d88 <unknown>103 104bfsub za.h[w8, 0], {z12.h - z13.h} // 11000001-11100100-00011101-10001000105// CHECK-INST: bfsub za.h[w8, 0, vgx2], { z12.h, z13.h }106// CHECK-ENCODING: [0x88,0x1d,0xe4,0xc1]107// CHECK-ERROR: instruction requires: sme-b16b16108// CHECK-UNKNOWN: c1e41d88 <unknown>109 110bfsub za.h[w10, 1, vgx2], {z0.h, z1.h} // 11000001-11100100-01011100-00001001111// CHECK-INST: bfsub za.h[w10, 1, vgx2], { z0.h, z1.h }112// CHECK-ENCODING: [0x09,0x5c,0xe4,0xc1]113// CHECK-ERROR: instruction requires: sme-b16b16114// CHECK-UNKNOWN: c1e45c09 <unknown>115 116bfsub za.h[w10, 1], {z0.h - z1.h} // 11000001-11100100-01011100-00001001117// CHECK-INST: bfsub za.h[w10, 1, vgx2], { z0.h, z1.h }118// CHECK-ENCODING: [0x09,0x5c,0xe4,0xc1]119// CHECK-ERROR: instruction requires: sme-b16b16120// CHECK-UNKNOWN: c1e45c09 <unknown>121 122bfsub za.h[w8, 5, vgx2], {z22.h, z23.h} // 11000001-11100100-00011110, 11001101123// CHECK-INST: bfsub za.h[w8, 5, vgx2], { z22.h, z23.h }124// CHECK-ENCODING: [0xcd,0x1e,0xe4,0xc1]125// CHECK-ERROR: instruction requires: sme-b16b16126// CHECK-UNKNOWN: c1e41ecd <unknown>127 128bfsub za.h[w8, 5], {z22.h - z23.h} // 11000001-11100100-00011110-11001101129// CHECK-INST: bfsub za.h[w8, 5, vgx2], { z22.h, z23.h }130// CHECK-ENCODING: [0xcd,0x1e,0xe4,0xc1]131// CHECK-ERROR: instruction requires: sme-b16b16132// CHECK-UNKNOWN: c1e41ecd <unknown>133 134bfsub za.h[w11, 2, vgx2], {z8.h, z9.h} // 11000001-11100100-01111101-00001010135// CHECK-INST: bfsub za.h[w11, 2, vgx2], { z8.h, z9.h }136// CHECK-ENCODING: [0x0a,0x7d,0xe4,0xc1]137// CHECK-ERROR: instruction requires: sme-b16b16138// CHECK-UNKNOWN: c1e47d0a <unknown>139 140bfsub za.h[w11, 2], {z8.h - z9.h} // 11000001-11100100-01111101-00001010141// CHECK-INST: bfsub za.h[w11, 2, vgx2], { z8.h, z9.h }142// CHECK-ENCODING: [0x0a,0x7d,0xe4,0xc1]143// CHECK-ERROR: instruction requires: sme-b16b16144// CHECK-UNKNOWN: c1e47d0a <unknown>145 146bfsub za.h[w9, 7, vgx2], {z12.h, z13.h} // 11000001-11100100-00111101-10001111147// CHECK-INST: bfsub za.h[w9, 7, vgx2], { z12.h, z13.h }148// CHECK-ENCODING: [0x8f,0x3d,0xe4,0xc1]149// CHECK-ERROR: instruction requires: sme-b16b16150// CHECK-UNKNOWN: c1e43d8f <unknown>151 152bfsub za.h[w9, 7], {z12.h - z13.h} // 11000001-11100100-00111101-10001111153// CHECK-INST: bfsub za.h[w9, 7, vgx2], { z12.h, z13.h }154// CHECK-ENCODING: [0x8f,0x3d,0xe4,0xc1]155// CHECK-ERROR: instruction requires: sme-b16b16156// CHECK-UNKNOWN: c1e43d8f <unknown>157 158bfsub za.h[w8, 0, vgx4], {z0.h - z3.h} // 11000001-11100101-00011100-00001000159// CHECK-INST: bfsub za.h[w8, 0, vgx4], { z0.h - z3.h }160// CHECK-ENCODING: [0x08,0x1c,0xe5,0xc1]161// CHECK-ERROR: instruction requires: sme-b16b16162// CHECK-UNKNOWN: c1e51c08 <unknown>163 164bfsub za.h[w8, 0], {z0.h - z3.h} // 11000001-11100101-00011100-00001000165// CHECK-INST: bfsub za.h[w8, 0, vgx4], { z0.h - z3.h }166// CHECK-ENCODING: [0x08,0x1c,0xe5,0xc1]167// CHECK-ERROR: instruction requires: sme-b16b16168// CHECK-UNKNOWN: c1e51c08 <unknown>169 170bfsub za.h[w10, 5, vgx4], {z8.h - z11.h} // 11000001-11100101-01011101-00001101171// CHECK-INST: bfsub za.h[w10, 5, vgx4], { z8.h - z11.h }172// CHECK-ENCODING: [0x0d,0x5d,0xe5,0xc1]173// CHECK-ERROR: instruction requires: sme-b16b16174// CHECK-UNKNOWN: c1e55d0d <unknown>175 176bfsub za.h[w10, 5], {z8.h - z11.h} // 11000001-11100101-01011101-00001101177// CHECK-INST: bfsub za.h[w10, 5, vgx4], { z8.h - z11.h }178// CHECK-ENCODING: [0x0d,0x5d,0xe5,0xc1]179// CHECK-ERROR: instruction requires: sme-b16b16180// CHECK-UNKNOWN: c1e55d0d <unknown>181 182bfsub za.h[w11, 7, vgx4], {z12.h - z15.h} // 11000001-11100101-01111101-10001111183// CHECK-INST: bfsub za.h[w11, 7, vgx4], { z12.h - z15.h }184// CHECK-ENCODING: [0x8f,0x7d,0xe5,0xc1]185// CHECK-ERROR: instruction requires: sme-b16b16186// CHECK-UNKNOWN: c1e57d8f <unknown>187 188bfsub za.h[w11, 7], {z12.h - z15.h} // 11000001-11100101-01111101-10001111189// CHECK-INST: bfsub za.h[w11, 7, vgx4], { z12.h - z15.h }190// CHECK-ENCODING: [0x8f,0x7d,0xe5,0xc1]191// CHECK-ERROR: instruction requires: sme-b16b16192// CHECK-UNKNOWN: c1e57d8f <unknown>193 194bfsub za.h[w11, 7, vgx4], {z28.h - z31.h} // 11000001-11100101-01111111-10001111195// CHECK-INST: bfsub za.h[w11, 7, vgx4], { z28.h - z31.h }196// CHECK-ENCODING: [0x8f,0x7f,0xe5,0xc1]197// CHECK-ERROR: instruction requires: sme-b16b16198// CHECK-UNKNOWN: c1e57f8f <unknown>199 200bfsub za.h[w11, 7], {z28.h - z31.h} // 11000001-11100101-01111111-10001111201// CHECK-INST: bfsub za.h[w11, 7, vgx4], { z28.h - z31.h }202// CHECK-ENCODING: [0x8f,0x7f,0xe5,0xc1]203// CHECK-ERROR: instruction requires: sme-b16b16204// CHECK-UNKNOWN: c1e57f8f <unknown>205 206bfsub za.h[w8, 5, vgx4], {z16.h - z19.h} // 11000001-11100101-00011110-00001101207// CHECK-INST: bfsub za.h[w8, 5, vgx4], { z16.h - z19.h }208// CHECK-ENCODING: [0x0d,0x1e,0xe5,0xc1]209// CHECK-ERROR: instruction requires: sme-b16b16210// CHECK-UNKNOWN: c1e51e0d <unknown>211 212bfsub za.h[w8, 5], {z16.h - z19.h} // 11000001-11100101-00011110-00001101213// CHECK-INST: bfsub za.h[w8, 5, vgx4], { z16.h - z19.h }214// CHECK-ENCODING: [0x0d,0x1e,0xe5,0xc1]215// CHECK-ERROR: instruction requires: sme-b16b16216// CHECK-UNKNOWN: c1e51e0d <unknown>217 218bfsub za.h[w8, 1, vgx4], {z0.h - z3.h} // 11000001-11100101-00011100-00001001219// CHECK-INST: bfsub za.h[w8, 1, vgx4], { z0.h - z3.h }220// CHECK-ENCODING: [0x09,0x1c,0xe5,0xc1]221// CHECK-ERROR: instruction requires: sme-b16b16222// CHECK-UNKNOWN: c1e51c09 <unknown>223 224bfsub za.h[w8, 1], {z0.h - z3.h} // 11000001-11100101-00011100-00001001225// CHECK-INST: bfsub za.h[w8, 1, vgx4], { z0.h - z3.h }226// CHECK-ENCODING: [0x09,0x1c,0xe5,0xc1]227// CHECK-ERROR: instruction requires: sme-b16b16228// CHECK-UNKNOWN: c1e51c09 <unknown>229 230bfsub za.h[w10, 0, vgx4], {z16.h - z19.h} // 11000001-11100101-01011110-00001000231// CHECK-INST: bfsub za.h[w10, 0, vgx4], { z16.h - z19.h }232// CHECK-ENCODING: [0x08,0x5e,0xe5,0xc1]233// CHECK-ERROR: instruction requires: sme-b16b16234// CHECK-UNKNOWN: c1e55e08 <unknown>235 236bfsub za.h[w10, 0], {z16.h - z19.h} // 11000001-11100101-01011110-00001000237// CHECK-INST: bfsub za.h[w10, 0, vgx4], { z16.h - z19.h }238// CHECK-ENCODING: [0x08,0x5e,0xe5,0xc1]239// CHECK-ERROR: instruction requires: sme-b16b16240// CHECK-UNKNOWN: c1e55e08 <unknown>241 242bfsub za.h[w8, 0, vgx4], {z12.h - z15.h} // 11000001-11100101-00011101-10001000243// CHECK-INST: bfsub za.h[w8, 0, vgx4], { z12.h - z15.h }244// CHECK-ENCODING: [0x88,0x1d,0xe5,0xc1]245// CHECK-ERROR: instruction requires: sme-b16b16246// CHECK-UNKNOWN: c1e51d88 <unknown>247 248bfsub za.h[w8, 0], {z12.h - z15.h} // 11000001-11100101-00011101-10001000249// CHECK-INST: bfsub za.h[w8, 0, vgx4], { z12.h - z15.h }250// CHECK-ENCODING: [0x88,0x1d,0xe5,0xc1]251// CHECK-ERROR: instruction requires: sme-b16b16252// CHECK-UNKNOWN: c1e51d88 <unknown>253 254bfsub za.h[w10, 1, vgx4], {z0.h - z3.h} // 11000001-11100101-01011100-00001001255// CHECK-INST: bfsub za.h[w10, 1, vgx4], { z0.h - z3.h }256// CHECK-ENCODING: [0x09,0x5c,0xe5,0xc1]257// CHECK-ERROR: instruction requires: sme-b16b16258// CHECK-UNKNOWN: c1e55c09 <unknown>259 260bfsub za.h[w10, 1], {z0.h - z3.h} // 11000001-11100101-01011100-00001001261// CHECK-INST: bfsub za.h[w10, 1, vgx4], { z0.h - z3.h }262// CHECK-ENCODING: [0x09,0x5c,0xe5,0xc1]263// CHECK-ERROR: instruction requires: sme-b16b16264// CHECK-UNKNOWN: c1e55c09 <unknown>265 266bfsub za.h[w8, 5, vgx4], {z20.h - z23.h} // 11000001-11100101-00011110-10001101267// CHECK-INST: bfsub za.h[w8, 5, vgx4], { z20.h - z23.h }268// CHECK-ENCODING: [0x8d,0x1e,0xe5,0xc1]269// CHECK-ERROR: instruction requires: sme-b16b16270// CHECK-UNKNOWN: c1e51e8d <unknown>271 272bfsub za.h[w8, 5], {z20.h - z23.h} // 11000001-11100101-00011110-10001101273// CHECK-INST: bfsub za.h[w8, 5, vgx4], { z20.h - z23.h }274// CHECK-ENCODING: [0x8d,0x1e,0xe5,0xc1]275// CHECK-ERROR: instruction requires: sme-b16b16276// CHECK-UNKNOWN: c1e51e8d <unknown>277 278bfsub za.h[w11, 2, vgx4], {z8.h - z11.h} // 11000001-11100101-01111101-00001010279// CHECK-INST: bfsub za.h[w11, 2, vgx4], { z8.h - z11.h }280// CHECK-ENCODING: [0x0a,0x7d,0xe5,0xc1]281// CHECK-ERROR: instruction requires: sme-b16b16282// CHECK-UNKNOWN: c1e57d0a <unknown>283 284bfsub za.h[w11, 2], {z8.h - z11.h} // 11000001-11100101-01111101-00001010285// CHECK-INST: bfsub za.h[w11, 2, vgx4], { z8.h - z11.h }286// CHECK-ENCODING: [0x0a,0x7d,0xe5,0xc1]287// CHECK-ERROR: instruction requires: sme-b16b16288// CHECK-UNKNOWN: c1e57d0a <unknown>289 290bfsub za.h[w9, 7, vgx4], {z12.h - z15.h} // 11000001-11100101-00111101-10001111291// CHECK-INST: bfsub za.h[w9, 7, vgx4], { z12.h - z15.h }292// CHECK-ENCODING: [0x8f,0x3d,0xe5,0xc1]293// CHECK-ERROR: instruction requires: sme-b16b16294// CHECK-UNKNOWN: c1e53d8f <unknown>295 296bfsub za.h[w9, 7], {z12.h - z15.h} // 11000001-11100101-00111101-10001111297// CHECK-INST: bfsub za.h[w9, 7, vgx4], { z12.h - z15.h }298// CHECK-ENCODING: [0x8f,0x3d,0xe5,0xc1]299// CHECK-ERROR: instruction requires: sme-b16b16300// CHECK-UNKNOWN: c1e53d8f <unknown>301