214 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %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=+sme2 < %s \6// RUN: | llvm-objdump -d --mattr=+sme2 - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme2 < %s \8// RUN: | llvm-objdump -d --mattr=-sme2 - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme2 < %s \10// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \11// RUN: | llvm-mc -triple=aarch64 -mattr=+sme2 -disassemble -show-encoding \12// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST13 14 15luti4 z0.h, zt0, z0[0] // 11000000-11001010-00010000-0000000016// CHECK-INST: luti4 z0.h, zt0, z0[0]17// CHECK-ENCODING: [0x00,0x10,0xca,0xc0]18// CHECK-ERROR: instruction requires: sme219// CHECK-UNKNOWN: c0ca1000 <unknown>20 21luti4 z21.h, zt0, z10[5] // 11000000-11001011-01010001-0101010122// CHECK-INST: luti4 z21.h, zt0, z10[5]23// CHECK-ENCODING: [0x55,0x51,0xcb,0xc0]24// CHECK-ERROR: instruction requires: sme225// CHECK-UNKNOWN: c0cb5155 <unknown>26 27luti4 z23.h, zt0, z13[3] // 11000000-11001010-11010001-1011011128// CHECK-INST: luti4 z23.h, zt0, z13[3]29// CHECK-ENCODING: [0xb7,0xd1,0xca,0xc0]30// CHECK-ERROR: instruction requires: sme231// CHECK-UNKNOWN: c0cad1b7 <unknown>32 33luti4 z31.h, zt0, z31[7] // 11000000-11001011-11010011-1111111134// CHECK-INST: luti4 z31.h, zt0, z31[7]35// CHECK-ENCODING: [0xff,0xd3,0xcb,0xc0]36// CHECK-ERROR: instruction requires: sme237// CHECK-UNKNOWN: c0cbd3ff <unknown>38 39 40luti4 z0.s, zt0, z0[0] // 11000000-11001010-00100000-0000000041// CHECK-INST: luti4 z0.s, zt0, z0[0]42// CHECK-ENCODING: [0x00,0x20,0xca,0xc0]43// CHECK-ERROR: instruction requires: sme244// CHECK-UNKNOWN: c0ca2000 <unknown>45 46luti4 z21.s, zt0, z10[5] // 11000000-11001011-01100001-0101010147// CHECK-INST: luti4 z21.s, zt0, z10[5]48// CHECK-ENCODING: [0x55,0x61,0xcb,0xc0]49// CHECK-ERROR: instruction requires: sme250// CHECK-UNKNOWN: c0cb6155 <unknown>51 52luti4 z23.s, zt0, z13[3] // 11000000-11001010-11100001-1011011153// CHECK-INST: luti4 z23.s, zt0, z13[3]54// CHECK-ENCODING: [0xb7,0xe1,0xca,0xc0]55// CHECK-ERROR: instruction requires: sme256// CHECK-UNKNOWN: c0cae1b7 <unknown>57 58luti4 z31.s, zt0, z31[7] // 11000000-11001011-11100011-1111111159// CHECK-INST: luti4 z31.s, zt0, z31[7]60// CHECK-ENCODING: [0xff,0xe3,0xcb,0xc0]61// CHECK-ERROR: instruction requires: sme262// CHECK-UNKNOWN: c0cbe3ff <unknown>63 64 65luti4 z0.b, zt0, z0[0] // 11000000-11001010-00000000-0000000066// CHECK-INST: luti4 z0.b, zt0, z0[0]67// CHECK-ENCODING: [0x00,0x00,0xca,0xc0]68// CHECK-ERROR: instruction requires: sme269// CHECK-UNKNOWN: c0ca0000 <unknown>70 71luti4 z21.b, zt0, z10[5] // 11000000-11001011-01000001-0101010172// CHECK-INST: luti4 z21.b, zt0, z10[5]73// CHECK-ENCODING: [0x55,0x41,0xcb,0xc0]74// CHECK-ERROR: instruction requires: sme275// CHECK-UNKNOWN: c0cb4155 <unknown>76 77luti4 z23.b, zt0, z13[3] // 11000000-11001010-11000001-1011011178// CHECK-INST: luti4 z23.b, zt0, z13[3]79// CHECK-ENCODING: [0xb7,0xc1,0xca,0xc0]80// CHECK-ERROR: instruction requires: sme281// CHECK-UNKNOWN: c0cac1b7 <unknown>82 83luti4 z31.b, zt0, z31[7] // 11000000-11001011-11000011-1111111184// CHECK-INST: luti4 z31.b, zt0, z31[7]85// CHECK-ENCODING: [0xff,0xc3,0xcb,0xc0]86// CHECK-ERROR: instruction requires: sme287// CHECK-UNKNOWN: c0cbc3ff <unknown>88 89 90luti4 {z0.h - z1.h}, zt0, z0[0] // 11000000-10001010-01010000-0000000091// CHECK-INST: luti4 { z0.h, z1.h }, zt0, z0[0]92// CHECK-ENCODING: [0x00,0x50,0x8a,0xc0]93// CHECK-ERROR: instruction requires: sme294// CHECK-UNKNOWN: c08a5000 <unknown>95 96luti4 {z20.h - z21.h}, zt0, z10[2] // 11000000-10001011-01010001-0101010097// CHECK-INST: luti4 { z20.h, z21.h }, zt0, z10[2]98// CHECK-ENCODING: [0x54,0x51,0x8b,0xc0]99// CHECK-ERROR: instruction requires: sme2100// CHECK-UNKNOWN: c08b5154 <unknown>101 102luti4 {z22.h - z23.h}, zt0, z13[1] // 11000000-10001010-11010001-10110110103// CHECK-INST: luti4 { z22.h, z23.h }, zt0, z13[1]104// CHECK-ENCODING: [0xb6,0xd1,0x8a,0xc0]105// CHECK-ERROR: instruction requires: sme2106// CHECK-UNKNOWN: c08ad1b6 <unknown>107 108luti4 {z30.h - z31.h}, zt0, z31[3] // 11000000-10001011-11010011-11111110109// CHECK-INST: luti4 { z30.h, z31.h }, zt0, z31[3]110// CHECK-ENCODING: [0xfe,0xd3,0x8b,0xc0]111// CHECK-ERROR: instruction requires: sme2112// CHECK-UNKNOWN: c08bd3fe <unknown>113 114 115luti4 {z0.s - z1.s}, zt0, z0[0] // 11000000-10001010-01100000-00000000116// CHECK-INST: luti4 { z0.s, z1.s }, zt0, z0[0]117// CHECK-ENCODING: [0x00,0x60,0x8a,0xc0]118// CHECK-ERROR: instruction requires: sme2119// CHECK-UNKNOWN: c08a6000 <unknown>120 121luti4 {z20.s - z21.s}, zt0, z10[2] // 11000000-10001011-01100001-01010100122// CHECK-INST: luti4 { z20.s, z21.s }, zt0, z10[2]123// CHECK-ENCODING: [0x54,0x61,0x8b,0xc0]124// CHECK-ERROR: instruction requires: sme2125// CHECK-UNKNOWN: c08b6154 <unknown>126 127luti4 {z22.s - z23.s}, zt0, z13[1] // 11000000-10001010-11100001-10110110128// CHECK-INST: luti4 { z22.s, z23.s }, zt0, z13[1]129// CHECK-ENCODING: [0xb6,0xe1,0x8a,0xc0]130// CHECK-ERROR: instruction requires: sme2131// CHECK-UNKNOWN: c08ae1b6 <unknown>132 133luti4 {z30.s - z31.s}, zt0, z31[3] // 11000000-10001011-11100011-11111110134// CHECK-INST: luti4 { z30.s, z31.s }, zt0, z31[3]135// CHECK-ENCODING: [0xfe,0xe3,0x8b,0xc0]136// CHECK-ERROR: instruction requires: sme2137// CHECK-UNKNOWN: c08be3fe <unknown>138 139 140luti4 {z0.b - z1.b}, zt0, z0[0] // 11000000-10001010-01000000-00000000141// CHECK-INST: luti4 { z0.b, z1.b }, zt0, z0[0]142// CHECK-ENCODING: [0x00,0x40,0x8a,0xc0]143// CHECK-ERROR: instruction requires: sme2144// CHECK-UNKNOWN: c08a4000 <unknown>145 146luti4 {z20.b - z21.b}, zt0, z10[2] // 11000000-10001011-01000001-01010100147// CHECK-INST: luti4 { z20.b, z21.b }, zt0, z10[2]148// CHECK-ENCODING: [0x54,0x41,0x8b,0xc0]149// CHECK-ERROR: instruction requires: sme2150// CHECK-UNKNOWN: c08b4154 <unknown>151 152luti4 {z22.b - z23.b}, zt0, z13[1] // 11000000-10001010-11000001-10110110153// CHECK-INST: luti4 { z22.b, z23.b }, zt0, z13[1]154// CHECK-ENCODING: [0xb6,0xc1,0x8a,0xc0]155// CHECK-ERROR: instruction requires: sme2156// CHECK-UNKNOWN: c08ac1b6 <unknown>157 158luti4 {z30.b - z31.b}, zt0, z31[3] // 11000000-10001011-11000011-11111110159// CHECK-INST: luti4 { z30.b, z31.b }, zt0, z31[3]160// CHECK-ENCODING: [0xfe,0xc3,0x8b,0xc0]161// CHECK-ERROR: instruction requires: sme2162// CHECK-UNKNOWN: c08bc3fe <unknown>163 164 165luti4 {z0.h - z3.h}, zt0, z0[0] // 11000000-10001010-10010000-00000000166// CHECK-INST: luti4 { z0.h - z3.h }, zt0, z0[0]167// CHECK-ENCODING: [0x00,0x90,0x8a,0xc0]168// CHECK-ERROR: instruction requires: sme2169// CHECK-UNKNOWN: c08a9000 <unknown>170 171luti4 {z20.h - z23.h}, zt0, z10[1] // 11000000-10001011-10010001-01010100172// CHECK-INST: luti4 { z20.h - z23.h }, zt0, z10[1]173// CHECK-ENCODING: [0x54,0x91,0x8b,0xc0]174// CHECK-ERROR: instruction requires: sme2175// CHECK-UNKNOWN: c08b9154 <unknown>176 177luti4 {z20.h - z23.h}, zt0, z13[0] // 11000000-10001010-10010001-10110100178// CHECK-INST: luti4 { z20.h - z23.h }, zt0, z13[0]179// CHECK-ENCODING: [0xb4,0x91,0x8a,0xc0]180// CHECK-ERROR: instruction requires: sme2181// CHECK-UNKNOWN: c08a91b4 <unknown>182 183luti4 {z28.h - z31.h}, zt0, z31[1] // 11000000-10001011-10010011-11111100184// CHECK-INST: luti4 { z28.h - z31.h }, zt0, z31[1]185// CHECK-ENCODING: [0xfc,0x93,0x8b,0xc0]186// CHECK-ERROR: instruction requires: sme2187// CHECK-UNKNOWN: c08b93fc <unknown>188 189 190luti4 {z0.s - z3.s}, zt0, z0[0] // 11000000-10001010-10100000-00000000191// CHECK-INST: luti4 { z0.s - z3.s }, zt0, z0[0]192// CHECK-ENCODING: [0x00,0xa0,0x8a,0xc0]193// CHECK-ERROR: instruction requires: sme2194// CHECK-UNKNOWN: c08aa000 <unknown>195 196luti4 {z20.s - z23.s}, zt0, z10[1] // 11000000-10001011-10100001-01010100197// CHECK-INST: luti4 { z20.s - z23.s }, zt0, z10[1]198// CHECK-ENCODING: [0x54,0xa1,0x8b,0xc0]199// CHECK-ERROR: instruction requires: sme2200// CHECK-UNKNOWN: c08ba154 <unknown>201 202luti4 {z20.s - z23.s}, zt0, z13[0] // 11000000-10001010-10100001-10110100203// CHECK-INST: luti4 { z20.s - z23.s }, zt0, z13[0]204// CHECK-ENCODING: [0xb4,0xa1,0x8a,0xc0]205// CHECK-ERROR: instruction requires: sme2206// CHECK-UNKNOWN: c08aa1b4 <unknown>207 208luti4 {z28.s - z31.s}, zt0, z31[1] // 11000000-10001011-10100011-11111100209// CHECK-INST: luti4 { z28.s - z31.s }, zt0, z31[1]210// CHECK-ENCODING: [0xfc,0xa3,0x8b,0xc0]211// CHECK-ERROR: instruction requires: sme2212// CHECK-UNKNOWN: c08ba3fc <unknown>213 214