207 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \2// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST3// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2p1 < %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=+sme2 < %s \8// RUN: | llvm-objdump -d --mattr=+sme2 - | FileCheck %s --check-prefix=CHECK-INST9// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \10// RUN: | llvm-objdump -d --mattr=-sme2,-sve2p1 - | FileCheck %s --check-prefix=CHECK-UNKNOWN11// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \12// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \13// RUN: | llvm-mc -triple=aarch64 -mattr=+sme2 -disassemble -show-encoding \14// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST15 16whilegt pn8.h, x0, x0, vlx2 // 00100101-01100000-01000000-0001100017// CHECK-INST: whilegt pn8.h, x0, x0, vlx218// CHECK-ENCODING: [0x18,0x40,0x60,0x25]19// CHECK-ERROR: instruction requires: sme2 or sve2p120// CHECK-UNKNOWN: 25604018 <unknown>21 22whilegt pn13.h, x10, x21, vlx2 // 00100101-01110101-01000001-0101110123// CHECK-INST: whilegt pn13.h, x10, x21, vlx224// CHECK-ENCODING: [0x5d,0x41,0x75,0x25]25// CHECK-ERROR: instruction requires: sme2 or sve2p126// CHECK-UNKNOWN: 2575415d <unknown>27 28whilegt pn15.h, x13, x8, vlx4 // 00100101-01101000-01100001-1011111129// CHECK-INST: whilegt pn15.h, x13, x8, vlx430// CHECK-ENCODING: [0xbf,0x61,0x68,0x25]31// CHECK-ERROR: instruction requires: sme2 or sve2p132// CHECK-UNKNOWN: 256861bf <unknown>33 34whilegt pn15.h, xzr, xzr, vlx4 // 00100101-01111111-01100011-1111111135// CHECK-INST: whilegt pn15.h, xzr, xzr, vlx436// CHECK-ENCODING: [0xff,0x63,0x7f,0x25]37// CHECK-ERROR: instruction requires: sme2 or sve2p138// CHECK-UNKNOWN: 257f63ff <unknown>39 40whilegt {p0.h, p1.h}, x0, x0 // 00100101-01100000-01010000-0001000141// CHECK-INST: whilegt { p0.h, p1.h }, x0, x042// CHECK-ENCODING: [0x11,0x50,0x60,0x25]43// CHECK-ERROR: instruction requires: sme2 or sve2p144// CHECK-UNKNOWN: 25605011 <unknown>45 46whilegt {p4.h, p5.h}, x10, x21 // 00100101-01110101-01010001-0101010147// CHECK-INST: whilegt { p4.h, p5.h }, x10, x2148// CHECK-ENCODING: [0x55,0x51,0x75,0x25]49// CHECK-ERROR: instruction requires: sme2 or sve2p150// CHECK-UNKNOWN: 25755155 <unknown>51 52whilegt {p6.h, p7.h}, x13, x8 // 00100101-01101000-01010001-1011011153// CHECK-INST: whilegt { p6.h, p7.h }, x13, x854// CHECK-ENCODING: [0xb7,0x51,0x68,0x25]55// CHECK-ERROR: instruction requires: sme2 or sve2p156// CHECK-UNKNOWN: 256851b7 <unknown>57 58whilegt {p14.h, p15.h}, xzr, xzr // 00100101-01111111-01010011-1111111159// CHECK-INST: whilegt { p14.h, p15.h }, xzr, xzr60// CHECK-ENCODING: [0xff,0x53,0x7f,0x25]61// CHECK-ERROR: instruction requires: sme2 or sve2p162// CHECK-UNKNOWN: 257f53ff <unknown>63 64whilegt pn8.s, x0, x0, vlx2 // 00100101-10100000-01000000-0001100065// CHECK-INST: whilegt pn8.s, x0, x0, vlx266// CHECK-ENCODING: [0x18,0x40,0xa0,0x25]67// CHECK-ERROR: instruction requires: sme2 or sve2p168// CHECK-UNKNOWN: 25a04018 <unknown>69 70whilegt pn13.s, x10, x21, vlx2 // 00100101-10110101-01000001-0101110171// CHECK-INST: whilegt pn13.s, x10, x21, vlx272// CHECK-ENCODING: [0x5d,0x41,0xb5,0x25]73// CHECK-ERROR: instruction requires: sme2 or sve2p174// CHECK-UNKNOWN: 25b5415d <unknown>75 76whilegt pn15.s, x13, x8, vlx4 // 00100101-10101000-01100001-1011111177// CHECK-INST: whilegt pn15.s, x13, x8, vlx478// CHECK-ENCODING: [0xbf,0x61,0xa8,0x25]79// CHECK-ERROR: instruction requires: sme2 or sve2p180// CHECK-UNKNOWN: 25a861bf <unknown>81 82whilegt pn15.s, xzr, xzr, vlx4 // 00100101-10111111-01100011-1111111183// CHECK-INST: whilegt pn15.s, xzr, xzr, vlx484// CHECK-ENCODING: [0xff,0x63,0xbf,0x25]85// CHECK-ERROR: instruction requires: sme2 or sve2p186// CHECK-UNKNOWN: 25bf63ff <unknown>87 88whilegt {p0.s, p1.s}, x0, x0 // 00100101-10100000-01010000-0001000189// CHECK-INST: whilegt { p0.s, p1.s }, x0, x090// CHECK-ENCODING: [0x11,0x50,0xa0,0x25]91// CHECK-ERROR: instruction requires: sme2 or sve2p192// CHECK-UNKNOWN: 25a05011 <unknown>93 94whilegt {p4.s, p5.s}, x10, x21 // 00100101-10110101-01010001-0101010195// CHECK-INST: whilegt { p4.s, p5.s }, x10, x2196// CHECK-ENCODING: [0x55,0x51,0xb5,0x25]97// CHECK-ERROR: instruction requires: sme2 or sve2p198// CHECK-UNKNOWN: 25b55155 <unknown>99 100whilegt {p6.s, p7.s}, x13, x8 // 00100101-10101000-01010001-10110111101// CHECK-INST: whilegt { p6.s, p7.s }, x13, x8102// CHECK-ENCODING: [0xb7,0x51,0xa8,0x25]103// CHECK-ERROR: instruction requires: sme2 or sve2p1104// CHECK-UNKNOWN: 25a851b7 <unknown>105 106whilegt {p14.s, p15.s}, xzr, xzr // 00100101-10111111-01010011-11111111107// CHECK-INST: whilegt { p14.s, p15.s }, xzr, xzr108// CHECK-ENCODING: [0xff,0x53,0xbf,0x25]109// CHECK-ERROR: instruction requires: sme2 or sve2p1110// CHECK-UNKNOWN: 25bf53ff <unknown>111 112whilegt pn8.d, x0, x0, vlx2 // 00100101-11100000-01000000-00011000113// CHECK-INST: whilegt pn8.d, x0, x0, vlx2114// CHECK-ENCODING: [0x18,0x40,0xe0,0x25]115// CHECK-ERROR: instruction requires: sme2 or sve2p1116// CHECK-UNKNOWN: 25e04018 <unknown>117 118whilegt pn13.d, x10, x21, vlx2 // 00100101-11110101-01000001-01011101119// CHECK-INST: whilegt pn13.d, x10, x21, vlx2120// CHECK-ENCODING: [0x5d,0x41,0xf5,0x25]121// CHECK-ERROR: instruction requires: sme2 or sve2p1122// CHECK-UNKNOWN: 25f5415d <unknown>123 124whilegt pn15.d, x13, x8, vlx4 // 00100101-11101000-01100001-10111111125// CHECK-INST: whilegt pn15.d, x13, x8, vlx4126// CHECK-ENCODING: [0xbf,0x61,0xe8,0x25]127// CHECK-ERROR: instruction requires: sme2 or sve2p1128// CHECK-UNKNOWN: 25e861bf <unknown>129 130whilegt pn15.d, xzr, xzr, vlx4 // 00100101-11111111-01100011-11111111131// CHECK-INST: whilegt pn15.d, xzr, xzr, vlx4132// CHECK-ENCODING: [0xff,0x63,0xff,0x25]133// CHECK-ERROR: instruction requires: sme2 or sve2p1134// CHECK-UNKNOWN: 25ff63ff <unknown>135 136whilegt {p0.d, p1.d}, x0, x0 // 00100101-11100000-01010000-00010001137// CHECK-INST: whilegt { p0.d, p1.d }, x0, x0138// CHECK-ENCODING: [0x11,0x50,0xe0,0x25]139// CHECK-ERROR: instruction requires: sme2 or sve2p1140// CHECK-UNKNOWN: 25e05011 <unknown>141 142whilegt {p4.d, p5.d}, x10, x21 // 00100101-11110101-01010001-01010101143// CHECK-INST: whilegt { p4.d, p5.d }, x10, x21144// CHECK-ENCODING: [0x55,0x51,0xf5,0x25]145// CHECK-ERROR: instruction requires: sme2 or sve2p1146// CHECK-UNKNOWN: 25f55155 <unknown>147 148whilegt {p6.d, p7.d}, x13, x8 // 00100101-11101000-01010001-10110111149// CHECK-INST: whilegt { p6.d, p7.d }, x13, x8150// CHECK-ENCODING: [0xb7,0x51,0xe8,0x25]151// CHECK-ERROR: instruction requires: sme2 or sve2p1152// CHECK-UNKNOWN: 25e851b7 <unknown>153 154whilegt {p14.d, p15.d}, xzr, xzr // 00100101-11111111-01010011-11111111155// CHECK-INST: whilegt { p14.d, p15.d }, xzr, xzr156// CHECK-ENCODING: [0xff,0x53,0xff,0x25]157// CHECK-ERROR: instruction requires: sme2 or sve2p1158// CHECK-UNKNOWN: 25ff53ff <unknown>159 160whilegt pn8.b, x0, x0, vlx2 // 00100101-00100000-01000000-00011000161// CHECK-INST: whilegt pn8.b, x0, x0, vlx2162// CHECK-ENCODING: [0x18,0x40,0x20,0x25]163// CHECK-ERROR: instruction requires: sme2 or sve2p1164// CHECK-UNKNOWN: 25204018 <unknown>165 166whilegt pn13.b, x10, x21, vlx2 // 00100101-00110101-01000001-01011101167// CHECK-INST: whilegt pn13.b, x10, x21, vlx2168// CHECK-ENCODING: [0x5d,0x41,0x35,0x25]169// CHECK-ERROR: instruction requires: sme2 or sve2p1170// CHECK-UNKNOWN: 2535415d <unknown>171 172whilegt pn15.b, x13, x8, vlx4 // 00100101-00101000-01100001-10111111173// CHECK-INST: whilegt pn15.b, x13, x8, vlx4174// CHECK-ENCODING: [0xbf,0x61,0x28,0x25]175// CHECK-ERROR: instruction requires: sme2 or sve2p1176// CHECK-UNKNOWN: 252861bf <unknown>177 178whilegt pn15.b, xzr, xzr, vlx4 // 00100101-00111111-01100011-11111111179// CHECK-INST: whilegt pn15.b, xzr, xzr, vlx4180// CHECK-ENCODING: [0xff,0x63,0x3f,0x25]181// CHECK-ERROR: instruction requires: sme2 or sve2p1182// CHECK-UNKNOWN: 253f63ff <unknown>183 184whilegt {p0.b, p1.b}, x0, x0 // 00100101-00100000-01010000-00010001185// CHECK-INST: whilegt { p0.b, p1.b }, x0, x0186// CHECK-ENCODING: [0x11,0x50,0x20,0x25]187// CHECK-ERROR: instruction requires: sme2 or sve2p1188// CHECK-UNKNOWN: 25205011 <unknown>189 190whilegt {p4.b, p5.b}, x10, x21 // 00100101-00110101-01010001-01010101191// CHECK-INST: whilegt { p4.b, p5.b }, x10, x21192// CHECK-ENCODING: [0x55,0x51,0x35,0x25]193// CHECK-ERROR: instruction requires: sme2 or sve2p1194// CHECK-UNKNOWN: 25355155 <unknown>195 196whilegt {p6.b, p7.b}, x13, x8 // 00100101-00101000-01010001-10110111197// CHECK-INST: whilegt { p6.b, p7.b }, x13, x8198// CHECK-ENCODING: [0xb7,0x51,0x28,0x25]199// CHECK-ERROR: instruction requires: sme2 or sve2p1200// CHECK-UNKNOWN: 252851b7 <unknown>201 202whilegt {p14.b, p15.b}, xzr, xzr // 00100101-00111111-01010011-11111111203// CHECK-INST: whilegt { p14.b, p15.b }, xzr, xzr204// CHECK-ENCODING: [0xff,0x53,0x3f,0x25]205// CHECK-ERROR: instruction requires: sme2 or sve2p1206// CHECK-UNKNOWN: 253f53ff <unknown>207