brintos

brintos / llvm-project-archived public Read only

0
0
Text · 10.8 KiB · 4eb673e Raw
264 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 15uzp     {z0.q - z1.q}, z0.q, z0.q  // 11000001-00100000-11010100-0000000116// CHECK-INST: uzp     { z0.q, z1.q }, z0.q, z0.q17// CHECK-ENCODING: [0x01,0xd4,0x20,0xc1]18// CHECK-ERROR: instruction requires: sme219// CHECK-UNKNOWN: c120d401 <unknown>20 21uzp     {z20.q - z21.q}, z10.q, z21.q  // 11000001-00110101-11010101-0101010122// CHECK-INST: uzp     { z20.q, z21.q }, z10.q, z21.q23// CHECK-ENCODING: [0x55,0xd5,0x35,0xc1]24// CHECK-ERROR: instruction requires: sme225// CHECK-UNKNOWN: c135d555 <unknown>26 27uzp     {z22.q - z23.q}, z13.q, z8.q  // 11000001-00101000-11010101-1011011128// CHECK-INST: uzp     { z22.q, z23.q }, z13.q, z8.q29// CHECK-ENCODING: [0xb7,0xd5,0x28,0xc1]30// CHECK-ERROR: instruction requires: sme231// CHECK-UNKNOWN: c128d5b7 <unknown>32 33uzp     {z30.q - z31.q}, z31.q, z31.q  // 11000001-00111111-11010111-1111111134// CHECK-INST: uzp     { z30.q, z31.q }, z31.q, z31.q35// CHECK-ENCODING: [0xff,0xd7,0x3f,0xc1]36// CHECK-ERROR: instruction requires: sme237// CHECK-UNKNOWN: c13fd7ff <unknown>38 39 40uzp     {z0.h - z1.h}, z0.h, z0.h  // 11000001-01100000-11010000-0000000141// CHECK-INST: uzp     { z0.h, z1.h }, z0.h, z0.h42// CHECK-ENCODING: [0x01,0xd0,0x60,0xc1]43// CHECK-ERROR: instruction requires: sme244// CHECK-UNKNOWN: c160d001 <unknown>45 46uzp     {z20.h - z21.h}, z10.h, z21.h  // 11000001-01110101-11010001-0101010147// CHECK-INST: uzp     { z20.h, z21.h }, z10.h, z21.h48// CHECK-ENCODING: [0x55,0xd1,0x75,0xc1]49// CHECK-ERROR: instruction requires: sme250// CHECK-UNKNOWN: c175d155 <unknown>51 52uzp     {z22.h - z23.h}, z13.h, z8.h  // 11000001-01101000-11010001-1011011153// CHECK-INST: uzp     { z22.h, z23.h }, z13.h, z8.h54// CHECK-ENCODING: [0xb7,0xd1,0x68,0xc1]55// CHECK-ERROR: instruction requires: sme256// CHECK-UNKNOWN: c168d1b7 <unknown>57 58uzp     {z30.h - z31.h}, z31.h, z31.h  // 11000001-01111111-11010011-1111111159// CHECK-INST: uzp     { z30.h, z31.h }, z31.h, z31.h60// CHECK-ENCODING: [0xff,0xd3,0x7f,0xc1]61// CHECK-ERROR: instruction requires: sme262// CHECK-UNKNOWN: c17fd3ff <unknown>63 64 65uzp     {z0.s - z1.s}, z0.s, z0.s  // 11000001-10100000-11010000-0000000166// CHECK-INST: uzp     { z0.s, z1.s }, z0.s, z0.s67// CHECK-ENCODING: [0x01,0xd0,0xa0,0xc1]68// CHECK-ERROR: instruction requires: sme269// CHECK-UNKNOWN: c1a0d001 <unknown>70 71uzp     {z20.s - z21.s}, z10.s, z21.s  // 11000001-10110101-11010001-0101010172// CHECK-INST: uzp     { z20.s, z21.s }, z10.s, z21.s73// CHECK-ENCODING: [0x55,0xd1,0xb5,0xc1]74// CHECK-ERROR: instruction requires: sme275// CHECK-UNKNOWN: c1b5d155 <unknown>76 77uzp     {z22.s - z23.s}, z13.s, z8.s  // 11000001-10101000-11010001-1011011178// CHECK-INST: uzp     { z22.s, z23.s }, z13.s, z8.s79// CHECK-ENCODING: [0xb7,0xd1,0xa8,0xc1]80// CHECK-ERROR: instruction requires: sme281// CHECK-UNKNOWN: c1a8d1b7 <unknown>82 83uzp     {z30.s - z31.s}, z31.s, z31.s  // 11000001-10111111-11010011-1111111184// CHECK-INST: uzp     { z30.s, z31.s }, z31.s, z31.s85// CHECK-ENCODING: [0xff,0xd3,0xbf,0xc1]86// CHECK-ERROR: instruction requires: sme287// CHECK-UNKNOWN: c1bfd3ff <unknown>88 89 90uzp     {z0.d - z1.d}, z0.d, z0.d  // 11000001-11100000-11010000-0000000191// CHECK-INST: uzp     { z0.d, z1.d }, z0.d, z0.d92// CHECK-ENCODING: [0x01,0xd0,0xe0,0xc1]93// CHECK-ERROR: instruction requires: sme294// CHECK-UNKNOWN: c1e0d001 <unknown>95 96uzp     {z20.d - z21.d}, z10.d, z21.d  // 11000001-11110101-11010001-0101010197// CHECK-INST: uzp     { z20.d, z21.d }, z10.d, z21.d98// CHECK-ENCODING: [0x55,0xd1,0xf5,0xc1]99// CHECK-ERROR: instruction requires: sme2100// CHECK-UNKNOWN: c1f5d155 <unknown>101 102uzp     {z22.d - z23.d}, z13.d, z8.d  // 11000001-11101000-11010001-10110111103// CHECK-INST: uzp     { z22.d, z23.d }, z13.d, z8.d104// CHECK-ENCODING: [0xb7,0xd1,0xe8,0xc1]105// CHECK-ERROR: instruction requires: sme2106// CHECK-UNKNOWN: c1e8d1b7 <unknown>107 108uzp     {z30.d - z31.d}, z31.d, z31.d  // 11000001-11111111-11010011-11111111109// CHECK-INST: uzp     { z30.d, z31.d }, z31.d, z31.d110// CHECK-ENCODING: [0xff,0xd3,0xff,0xc1]111// CHECK-ERROR: instruction requires: sme2112// CHECK-UNKNOWN: c1ffd3ff <unknown>113 114 115uzp     {z0.b - z1.b}, z0.b, z0.b  // 11000001-00100000-11010000-00000001116// CHECK-INST: uzp     { z0.b, z1.b }, z0.b, z0.b117// CHECK-ENCODING: [0x01,0xd0,0x20,0xc1]118// CHECK-ERROR: instruction requires: sme2119// CHECK-UNKNOWN: c120d001 <unknown>120 121uzp     {z20.b - z21.b}, z10.b, z21.b  // 11000001-00110101-11010001-01010101122// CHECK-INST: uzp     { z20.b, z21.b }, z10.b, z21.b123// CHECK-ENCODING: [0x55,0xd1,0x35,0xc1]124// CHECK-ERROR: instruction requires: sme2125// CHECK-UNKNOWN: c135d155 <unknown>126 127uzp     {z22.b - z23.b}, z13.b, z8.b  // 11000001-00101000-11010001-10110111128// CHECK-INST: uzp     { z22.b, z23.b }, z13.b, z8.b129// CHECK-ENCODING: [0xb7,0xd1,0x28,0xc1]130// CHECK-ERROR: instruction requires: sme2131// CHECK-UNKNOWN: c128d1b7 <unknown>132 133uzp     {z30.b - z31.b}, z31.b, z31.b  // 11000001-00111111-11010011-11111111134// CHECK-INST: uzp     { z30.b, z31.b }, z31.b, z31.b135// CHECK-ENCODING: [0xff,0xd3,0x3f,0xc1]136// CHECK-ERROR: instruction requires: sme2137// CHECK-UNKNOWN: c13fd3ff <unknown>138 139 140uzp     {z0.q - z3.q}, {z0.q - z3.q}  // 11000001-00110111-11100000-00000010141// CHECK-INST: uzp     { z0.q - z3.q }, { z0.q - z3.q }142// CHECK-ENCODING: [0x02,0xe0,0x37,0xc1]143// CHECK-ERROR: instruction requires: sme2144// CHECK-UNKNOWN: c137e002 <unknown>145 146uzp     {z20.q - z23.q}, {z8.q - z11.q}  // 11000001-00110111-11100001-00010110147// CHECK-INST: uzp     { z20.q - z23.q }, { z8.q - z11.q }148// CHECK-ENCODING: [0x16,0xe1,0x37,0xc1]149// CHECK-ERROR: instruction requires: sme2150// CHECK-UNKNOWN: c137e116 <unknown>151 152uzp     {z20.q - z23.q}, {z12.q - z15.q}  // 11000001-00110111-11100001-10010110153// CHECK-INST: uzp     { z20.q - z23.q }, { z12.q - z15.q }154// CHECK-ENCODING: [0x96,0xe1,0x37,0xc1]155// CHECK-ERROR: instruction requires: sme2156// CHECK-UNKNOWN: c137e196 <unknown>157 158uzp     {z28.q - z31.q}, {z28.q - z31.q}  // 11000001-00110111-11100011-10011110159// CHECK-INST: uzp     { z28.q - z31.q }, { z28.q - z31.q }160// CHECK-ENCODING: [0x9e,0xe3,0x37,0xc1]161// CHECK-ERROR: instruction requires: sme2162// CHECK-UNKNOWN: c137e39e <unknown>163 164 165uzp     {z0.h - z3.h}, {z0.h - z3.h}  // 11000001-01110110-11100000-00000010166// CHECK-INST: uzp     { z0.h - z3.h }, { z0.h - z3.h }167// CHECK-ENCODING: [0x02,0xe0,0x76,0xc1]168// CHECK-ERROR: instruction requires: sme2169// CHECK-UNKNOWN: c176e002 <unknown>170 171uzp     {z20.h - z23.h}, {z8.h - z11.h}  // 11000001-01110110-11100001-00010110172// CHECK-INST: uzp     { z20.h - z23.h }, { z8.h - z11.h }173// CHECK-ENCODING: [0x16,0xe1,0x76,0xc1]174// CHECK-ERROR: instruction requires: sme2175// CHECK-UNKNOWN: c176e116 <unknown>176 177uzp     {z20.h - z23.h}, {z12.h - z15.h}  // 11000001-01110110-11100001-10010110178// CHECK-INST: uzp     { z20.h - z23.h }, { z12.h - z15.h }179// CHECK-ENCODING: [0x96,0xe1,0x76,0xc1]180// CHECK-ERROR: instruction requires: sme2181// CHECK-UNKNOWN: c176e196 <unknown>182 183uzp     {z28.h - z31.h}, {z28.h - z31.h}  // 11000001-01110110-11100011-10011110184// CHECK-INST: uzp     { z28.h - z31.h }, { z28.h - z31.h }185// CHECK-ENCODING: [0x9e,0xe3,0x76,0xc1]186// CHECK-ERROR: instruction requires: sme2187// CHECK-UNKNOWN: c176e39e <unknown>188 189 190uzp     {z0.s - z3.s}, {z0.s - z3.s}  // 11000001-10110110-11100000-00000010191// CHECK-INST: uzp     { z0.s - z3.s }, { z0.s - z3.s }192// CHECK-ENCODING: [0x02,0xe0,0xb6,0xc1]193// CHECK-ERROR: instruction requires: sme2194// CHECK-UNKNOWN: c1b6e002 <unknown>195 196uzp     {z20.s - z23.s}, {z8.s - z11.s}  // 11000001-10110110-11100001-00010110197// CHECK-INST: uzp     { z20.s - z23.s }, { z8.s - z11.s }198// CHECK-ENCODING: [0x16,0xe1,0xb6,0xc1]199// CHECK-ERROR: instruction requires: sme2200// CHECK-UNKNOWN: c1b6e116 <unknown>201 202uzp     {z20.s - z23.s}, {z12.s - z15.s}  // 11000001-10110110-11100001-10010110203// CHECK-INST: uzp     { z20.s - z23.s }, { z12.s - z15.s }204// CHECK-ENCODING: [0x96,0xe1,0xb6,0xc1]205// CHECK-ERROR: instruction requires: sme2206// CHECK-UNKNOWN: c1b6e196 <unknown>207 208uzp     {z28.s - z31.s}, {z28.s - z31.s}  // 11000001-10110110-11100011-10011110209// CHECK-INST: uzp     { z28.s - z31.s }, { z28.s - z31.s }210// CHECK-ENCODING: [0x9e,0xe3,0xb6,0xc1]211// CHECK-ERROR: instruction requires: sme2212// CHECK-UNKNOWN: c1b6e39e <unknown>213 214 215uzp     {z0.d - z3.d}, {z0.d - z3.d}  // 11000001-11110110-11100000-00000010216// CHECK-INST: uzp     { z0.d - z3.d }, { z0.d - z3.d }217// CHECK-ENCODING: [0x02,0xe0,0xf6,0xc1]218// CHECK-ERROR: instruction requires: sme2219// CHECK-UNKNOWN: c1f6e002 <unknown>220 221uzp     {z20.d - z23.d}, {z8.d - z11.d}  // 11000001-11110110-11100001-00010110222// CHECK-INST: uzp     { z20.d - z23.d }, { z8.d - z11.d }223// CHECK-ENCODING: [0x16,0xe1,0xf6,0xc1]224// CHECK-ERROR: instruction requires: sme2225// CHECK-UNKNOWN: c1f6e116 <unknown>226 227uzp     {z20.d - z23.d}, {z12.d - z15.d}  // 11000001-11110110-11100001-10010110228// CHECK-INST: uzp     { z20.d - z23.d }, { z12.d - z15.d }229// CHECK-ENCODING: [0x96,0xe1,0xf6,0xc1]230// CHECK-ERROR: instruction requires: sme2231// CHECK-UNKNOWN: c1f6e196 <unknown>232 233uzp     {z28.d - z31.d}, {z28.d - z31.d}  // 11000001-11110110-11100011-10011110234// CHECK-INST: uzp     { z28.d - z31.d }, { z28.d - z31.d }235// CHECK-ENCODING: [0x9e,0xe3,0xf6,0xc1]236// CHECK-ERROR: instruction requires: sme2237// CHECK-UNKNOWN: c1f6e39e <unknown>238 239 240uzp     {z0.b - z3.b}, {z0.b - z3.b}  // 11000001-00110110-11100000-00000010241// CHECK-INST: uzp     { z0.b - z3.b }, { z0.b - z3.b }242// CHECK-ENCODING: [0x02,0xe0,0x36,0xc1]243// CHECK-ERROR: instruction requires: sme2244// CHECK-UNKNOWN: c136e002 <unknown>245 246uzp     {z20.b - z23.b}, {z8.b - z11.b}  // 11000001-00110110-11100001-00010110247// CHECK-INST: uzp     { z20.b - z23.b }, { z8.b - z11.b }248// CHECK-ENCODING: [0x16,0xe1,0x36,0xc1]249// CHECK-ERROR: instruction requires: sme2250// CHECK-UNKNOWN: c136e116 <unknown>251 252uzp     {z20.b - z23.b}, {z12.b - z15.b}  // 11000001-00110110-11100001-10010110253// CHECK-INST: uzp     { z20.b - z23.b }, { z12.b - z15.b }254// CHECK-ENCODING: [0x96,0xe1,0x36,0xc1]255// CHECK-ERROR: instruction requires: sme2256// CHECK-UNKNOWN: c136e196 <unknown>257 258uzp     {z28.b - z31.b}, {z28.b - z31.b}  // 11000001-00110110-11100011-10011110259// CHECK-INST: uzp     { z28.b - z31.b }, { z28.b - z31.b }260// CHECK-ENCODING: [0x9e,0xe3,0x36,0xc1]261// CHECK-ERROR: instruction requires: sme2262// CHECK-UNKNOWN: c136e39e <unknown>263 264