299 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme-f16f16 < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme-f8f16 < %s \4// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST5// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \6// RUN: | FileCheck %s --check-prefix=CHECK-ERROR7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme-f16f16 < %s \8// RUN: | llvm-objdump -d --mattr=+sme-f16f16 - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme-f16f16 < %s \10// RUN: | llvm-objdump -d --mattr=-sme2p1 - | FileCheck %s --check-prefix=CHECK-UNKNOWN11// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme-f16f16 < %s \12// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \13// RUN: | llvm-mc -triple=aarch64 -mattr=+sme-f16f16 -disassemble -show-encoding \14// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST15 16 17fsub za.h[w8, 0], {z0.h - z1.h} // 11000001-10100100-00011100-0000100018// CHECK-INST: fsub za.h[w8, 0, vgx2], { z0.h, z1.h }19// CHECK-ENCODING: [0x08,0x1c,0xa4,0xc1]20// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1621// CHECK-UNKNOWN: c1a41c08 <unknown>22 23fsub za.h[w10, 5, vgx2], {z10.h, z11.h} // 11000001-10100100-01011101-0100110124// CHECK-INST: fsub za.h[w10, 5, vgx2], { z10.h, z11.h }25// CHECK-ENCODING: [0x4d,0x5d,0xa4,0xc1]26// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1627// CHECK-UNKNOWN: c1a45d4d <unknown>28 29fsub za.h[w10, 5], {z10.h - z11.h} // 11000001-10100100-01011101-0100110130// CHECK-INST: fsub za.h[w10, 5, vgx2], { z10.h, z11.h }31// CHECK-ENCODING: [0x4d,0x5d,0xa4,0xc1]32// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1633// CHECK-UNKNOWN: c1a45d4d <unknown>34 35fsub za.h[w11, 7, vgx2], {z12.h, z13.h} // 11000001-10100100-01111101-1000111136// CHECK-INST: fsub za.h[w11, 7, vgx2], { z12.h, z13.h }37// CHECK-ENCODING: [0x8f,0x7d,0xa4,0xc1]38// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1639// CHECK-UNKNOWN: c1a47d8f <unknown>40 41fsub za.h[w11, 7], {z12.h - z13.h} // 11000001-10100100-01111101-1000111142// CHECK-INST: fsub za.h[w11, 7, vgx2], { z12.h, z13.h }43// CHECK-ENCODING: [0x8f,0x7d,0xa4,0xc1]44// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1645// CHECK-UNKNOWN: c1a47d8f <unknown>46 47fsub za.h[w11, 7, vgx2], {z30.h, z31.h} // 11000001-10100100-01111111-1100111148// CHECK-INST: fsub za.h[w11, 7, vgx2], { z30.h, z31.h }49// CHECK-ENCODING: [0xcf,0x7f,0xa4,0xc1]50// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1651// CHECK-UNKNOWN: c1a47fcf <unknown>52 53fsub za.h[w11, 7], {z30.h - z31.h} // 11000001-10100100-01111111-1100111154// CHECK-INST: fsub za.h[w11, 7, vgx2], { z30.h, z31.h }55// CHECK-ENCODING: [0xcf,0x7f,0xa4,0xc1]56// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1657// CHECK-UNKNOWN: c1a47fcf <unknown>58 59fsub za.h[w8, 5, vgx2], {z16.h, z17.h} // 11000001-10100100-00011110-0000110160// CHECK-INST: fsub za.h[w8, 5, vgx2], { z16.h, z17.h }61// CHECK-ENCODING: [0x0d,0x1e,0xa4,0xc1]62// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1663// CHECK-UNKNOWN: c1a41e0d <unknown>64 65fsub za.h[w8, 5], {z16.h - z17.h} // 11000001-10100100-00011110-0000110166// CHECK-INST: fsub za.h[w8, 5, vgx2], { z16.h, z17.h }67// CHECK-ENCODING: [0x0d,0x1e,0xa4,0xc1]68// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1669// CHECK-UNKNOWN: c1a41e0d <unknown>70 71fsub za.h[w8, 1, vgx2], {z0.h, z1.h} // 11000001-10100100-00011100-0000100172// CHECK-INST: fsub za.h[w8, 1, vgx2], { z0.h, z1.h }73// CHECK-ENCODING: [0x09,0x1c,0xa4,0xc1]74// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1675// CHECK-UNKNOWN: c1a41c09 <unknown>76 77fsub za.h[w8, 1], {z0.h - z1.h} // 11000001-10100100-00011100-0000100178// CHECK-INST: fsub za.h[w8, 1, vgx2], { z0.h, z1.h }79// CHECK-ENCODING: [0x09,0x1c,0xa4,0xc1]80// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1681// CHECK-UNKNOWN: c1a41c09 <unknown>82 83fsub za.h[w10, 0, vgx2], {z18.h, z19.h} // 11000001-10100100-01011110, 0100100084// CHECK-INST: fsub za.h[w10, 0, vgx2], { z18.h, z19.h }85// CHECK-ENCODING: [0x48,0x5e,0xa4,0xc1]86// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1687// CHECK-UNKNOWN: c1a45e48 <unknown>88 89fsub za.h[w10, 0], {z18.h - z19.h} // 11000001-10100100-01011110-0100100090// CHECK-INST: fsub za.h[w10, 0, vgx2], { z18.h, z19.h }91// CHECK-ENCODING: [0x48,0x5e,0xa4,0xc1]92// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1693// CHECK-UNKNOWN: c1a45e48 <unknown>94 95fsub za.h[w8, 0, vgx2], {z12.h, z13.h} // 11000001-10100100-00011101-1000100096// CHECK-INST: fsub za.h[w8, 0, vgx2], { z12.h, z13.h }97// CHECK-ENCODING: [0x88,0x1d,0xa4,0xc1]98// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f1699// CHECK-UNKNOWN: c1a41d88 <unknown>100 101fsub za.h[w8, 0], {z12.h - z13.h} // 11000001-10100100-00011101-10001000102// CHECK-INST: fsub za.h[w8, 0, vgx2], { z12.h, z13.h }103// CHECK-ENCODING: [0x88,0x1d,0xa4,0xc1]104// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16105// CHECK-UNKNOWN: c1a41d88 <unknown>106 107fsub za.h[w10, 1, vgx2], {z0.h, z1.h} // 11000001-10100100-01011100-00001001108// CHECK-INST: fsub za.h[w10, 1, vgx2], { z0.h, z1.h }109// CHECK-ENCODING: [0x09,0x5c,0xa4,0xc1]110// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16111// CHECK-UNKNOWN: c1a45c09 <unknown>112 113fsub za.h[w10, 1], {z0.h - z1.h} // 11000001-10100100-01011100-00001001114// CHECK-INST: fsub za.h[w10, 1, vgx2], { z0.h, z1.h }115// CHECK-ENCODING: [0x09,0x5c,0xa4,0xc1]116// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16117// CHECK-UNKNOWN: c1a45c09 <unknown>118 119fsub za.h[w8, 5, vgx2], {z22.h, z23.h} // 11000001-10100100-00011110, 11001101120// CHECK-INST: fsub za.h[w8, 5, vgx2], { z22.h, z23.h }121// CHECK-ENCODING: [0xcd,0x1e,0xa4,0xc1]122// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16123// CHECK-UNKNOWN: c1a41ecd <unknown>124 125fsub za.h[w8, 5], {z22.h - z23.h} // 11000001-10100100-00011110-11001101126// CHECK-INST: fsub za.h[w8, 5, vgx2], { z22.h, z23.h }127// CHECK-ENCODING: [0xcd,0x1e,0xa4,0xc1]128// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16129// CHECK-UNKNOWN: c1a41ecd <unknown>130 131fsub za.h[w11, 2, vgx2], {z8.h, z9.h} // 11000001-10100100-01111101-00001010132// CHECK-INST: fsub za.h[w11, 2, vgx2], { z8.h, z9.h }133// CHECK-ENCODING: [0x0a,0x7d,0xa4,0xc1]134// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16135// CHECK-UNKNOWN: c1a47d0a <unknown>136 137fsub za.h[w11, 2], {z8.h - z9.h} // 11000001-10100100-01111101-00001010138// CHECK-INST: fsub za.h[w11, 2, vgx2], { z8.h, z9.h }139// CHECK-ENCODING: [0x0a,0x7d,0xa4,0xc1]140// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16141// CHECK-UNKNOWN: c1a47d0a <unknown>142 143fsub za.h[w9, 7, vgx2], {z12.h, z13.h} // 11000001-10100100-00111101-10001111144// CHECK-INST: fsub za.h[w9, 7, vgx2], { z12.h, z13.h }145// CHECK-ENCODING: [0x8f,0x3d,0xa4,0xc1]146// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16147// CHECK-UNKNOWN: c1a43d8f <unknown>148 149fsub za.h[w9, 7], {z12.h - z13.h} // 11000001-10100100-00111101-10001111150// CHECK-INST: fsub za.h[w9, 7, vgx2], { z12.h, z13.h }151// CHECK-ENCODING: [0x8f,0x3d,0xa4,0xc1]152// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16153// CHECK-UNKNOWN: c1a43d8f <unknown>154 155 156fsub za.h[w8, 0, vgx4], {z0.h - z3.h} // 11000001-10100101-00011100-00001000157// CHECK-INST: fsub za.h[w8, 0, vgx4], { z0.h - z3.h }158// CHECK-ENCODING: [0x08,0x1c,0xa5,0xc1]159// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16160// CHECK-UNKNOWN: c1a51c08 <unknown>161 162fsub za.h[w8, 0], {z0.h - z3.h} // 11000001-10100101-00011100-00001000163// CHECK-INST: fsub za.h[w8, 0, vgx4], { z0.h - z3.h }164// CHECK-ENCODING: [0x08,0x1c,0xa5,0xc1]165// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16166// CHECK-UNKNOWN: c1a51c08 <unknown>167 168fsub za.h[w10, 5, vgx4], {z8.h - z11.h} // 11000001-10100101-01011101-00001101169// CHECK-INST: fsub za.h[w10, 5, vgx4], { z8.h - z11.h }170// CHECK-ENCODING: [0x0d,0x5d,0xa5,0xc1]171// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16172// CHECK-UNKNOWN: c1a55d0d <unknown>173 174fsub za.h[w10, 5], {z8.h - z11.h} // 11000001-10100101-01011101-00001101175// CHECK-INST: fsub za.h[w10, 5, vgx4], { z8.h - z11.h }176// CHECK-ENCODING: [0x0d,0x5d,0xa5,0xc1]177// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16178// CHECK-UNKNOWN: c1a55d0d <unknown>179 180fsub za.h[w11, 7, vgx4], {z12.h - z15.h} // 11000001-10100101-01111101-10001111181// CHECK-INST: fsub za.h[w11, 7, vgx4], { z12.h - z15.h }182// CHECK-ENCODING: [0x8f,0x7d,0xa5,0xc1]183// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16184// CHECK-UNKNOWN: c1a57d8f <unknown>185 186fsub za.h[w11, 7], {z12.h - z15.h} // 11000001-10100101-01111101-10001111187// CHECK-INST: fsub za.h[w11, 7, vgx4], { z12.h - z15.h }188// CHECK-ENCODING: [0x8f,0x7d,0xa5,0xc1]189// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16190// CHECK-UNKNOWN: c1a57d8f <unknown>191 192fsub za.h[w11, 7, vgx4], {z28.h - z31.h} // 11000001-10100101-01111111-10001111193// CHECK-INST: fsub za.h[w11, 7, vgx4], { z28.h - z31.h }194// CHECK-ENCODING: [0x8f,0x7f,0xa5,0xc1]195// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16196// CHECK-UNKNOWN: c1a57f8f <unknown>197 198fsub za.h[w11, 7], {z28.h - z31.h} // 11000001-10100101-01111111-10001111199// CHECK-INST: fsub za.h[w11, 7, vgx4], { z28.h - z31.h }200// CHECK-ENCODING: [0x8f,0x7f,0xa5,0xc1]201// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16202// CHECK-UNKNOWN: c1a57f8f <unknown>203 204fsub za.h[w8, 5, vgx4], {z16.h - z19.h} // 11000001-10100101-00011110-00001101205// CHECK-INST: fsub za.h[w8, 5, vgx4], { z16.h - z19.h }206// CHECK-ENCODING: [0x0d,0x1e,0xa5,0xc1]207// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16208// CHECK-UNKNOWN: c1a51e0d <unknown>209 210fsub za.h[w8, 5], {z16.h - z19.h} // 11000001-10100101-00011110-00001101211// CHECK-INST: fsub za.h[w8, 5, vgx4], { z16.h - z19.h }212// CHECK-ENCODING: [0x0d,0x1e,0xa5,0xc1]213// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16214// CHECK-UNKNOWN: c1a51e0d <unknown>215 216fsub za.h[w8, 1, vgx4], {z0.h - z3.h} // 11000001-10100101-00011100-00001001217// CHECK-INST: fsub za.h[w8, 1, vgx4], { z0.h - z3.h }218// CHECK-ENCODING: [0x09,0x1c,0xa5,0xc1]219// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16220// CHECK-UNKNOWN: c1a51c09 <unknown>221 222fsub za.h[w8, 1], {z0.h - z3.h} // 11000001-10100101-00011100-00001001223// CHECK-INST: fsub za.h[w8, 1, vgx4], { z0.h - z3.h }224// CHECK-ENCODING: [0x09,0x1c,0xa5,0xc1]225// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16226// CHECK-UNKNOWN: c1a51c09 <unknown>227 228fsub za.h[w10, 0, vgx4], {z16.h - z19.h} // 11000001-10100101-01011110-00001000229// CHECK-INST: fsub za.h[w10, 0, vgx4], { z16.h - z19.h }230// CHECK-ENCODING: [0x08,0x5e,0xa5,0xc1]231// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16232// CHECK-UNKNOWN: c1a55e08 <unknown>233 234fsub za.h[w10, 0], {z16.h - z19.h} // 11000001-10100101-01011110-00001000235// CHECK-INST: fsub za.h[w10, 0, vgx4], { z16.h - z19.h }236// CHECK-ENCODING: [0x08,0x5e,0xa5,0xc1]237// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16238// CHECK-UNKNOWN: c1a55e08 <unknown>239 240fsub za.h[w8, 0, vgx4], {z12.h - z15.h} // 11000001-10100101-00011101-10001000241// CHECK-INST: fsub za.h[w8, 0, vgx4], { z12.h - z15.h }242// CHECK-ENCODING: [0x88,0x1d,0xa5,0xc1]243// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16244// CHECK-UNKNOWN: c1a51d88 <unknown>245 246fsub za.h[w8, 0], {z12.h - z15.h} // 11000001-10100101-00011101-10001000247// CHECK-INST: fsub za.h[w8, 0, vgx4], { z12.h - z15.h }248// CHECK-ENCODING: [0x88,0x1d,0xa5,0xc1]249// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16250// CHECK-UNKNOWN: c1a51d88 <unknown>251 252fsub za.h[w10, 1, vgx4], {z0.h - z3.h} // 11000001-10100101-01011100-00001001253// CHECK-INST: fsub za.h[w10, 1, vgx4], { z0.h - z3.h }254// CHECK-ENCODING: [0x09,0x5c,0xa5,0xc1]255// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16256// CHECK-UNKNOWN: c1a55c09 <unknown>257 258fsub za.h[w10, 1], {z0.h - z3.h} // 11000001-10100101-01011100-00001001259// CHECK-INST: fsub za.h[w10, 1, vgx4], { z0.h - z3.h }260// CHECK-ENCODING: [0x09,0x5c,0xa5,0xc1]261// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16262// CHECK-UNKNOWN: c1a55c09 <unknown>263 264fsub za.h[w8, 5, vgx4], {z20.h - z23.h} // 11000001-10100101-00011110-10001101265// CHECK-INST: fsub za.h[w8, 5, vgx4], { z20.h - z23.h }266// CHECK-ENCODING: [0x8d,0x1e,0xa5,0xc1]267// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16268// CHECK-UNKNOWN: c1a51e8d <unknown>269 270fsub za.h[w8, 5], {z20.h - z23.h} // 11000001-10100101-00011110-10001101271// CHECK-INST: fsub za.h[w8, 5, vgx4], { z20.h - z23.h }272// CHECK-ENCODING: [0x8d,0x1e,0xa5,0xc1]273// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16274// CHECK-UNKNOWN: c1a51e8d <unknown>275 276fsub za.h[w11, 2, vgx4], {z8.h - z11.h} // 11000001-10100101-01111101-00001010277// CHECK-INST: fsub za.h[w11, 2, vgx4], { z8.h - z11.h }278// CHECK-ENCODING: [0x0a,0x7d,0xa5,0xc1]279// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16280// CHECK-UNKNOWN: c1a57d0a <unknown>281 282fsub za.h[w11, 2], {z8.h - z11.h} // 11000001-10100101-01111101-00001010283// CHECK-INST: fsub za.h[w11, 2, vgx4], { z8.h - z11.h }284// CHECK-ENCODING: [0x0a,0x7d,0xa5,0xc1]285// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16286// CHECK-UNKNOWN: c1a57d0a <unknown>287 288fsub za.h[w9, 7, vgx4], {z12.h - z15.h} // 11000001-10100101-00111101-10001111289// CHECK-INST: fsub za.h[w9, 7, vgx4], { z12.h - z15.h }290// CHECK-ENCODING: [0x8f,0x3d,0xa5,0xc1]291// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16292// CHECK-UNKNOWN: c1a53d8f <unknown>293 294fsub za.h[w9, 7], {z12.h - z15.h} // 11000001-10100101-00111101-10001111295// CHECK-INST: fsub za.h[w9, 7, vgx4], { z12.h - z15.h }296// CHECK-ENCODING: [0x8f,0x3d,0xa5,0xc1]297// CHECK-ERROR: instruction requires: sme-f16f16 or sme-f8f16298// CHECK-UNKNOWN: c1a53d8f <unknown>299