brintos

brintos / llvm-project-archived public Read only

0
0
Text · 12.0 KiB · 099f439 Raw
308 lines · plain
1// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %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 < %s \6// RUN:        | llvm-objdump -d --mattr=+sme - | FileCheck %s --check-prefix=CHECK-INST7// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme < %s \8// RUN:   | llvm-objdump -d --mattr=-sme - | FileCheck %s --check-prefix=CHECK-UNKNOWN9// Disassemble encoding and check the re-encoding (-show-encoding) matches.10// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \11// RUN:        | sed '/.text/d' | sed 's/.*encoding: //g' \12// RUN:        | llvm-mc -triple=aarch64 -mattr=+sme -disassemble -show-encoding \13// RUN:        | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST14 15// --------------------------------------------------------------------------//16// Horizontal17 18ld1w    {za0h.s[w12, 0]}, p0/z, [x0, x0, lsl #2]19// CHECK-INST: ld1w    {za0h.s[w12, 0]}, p0/z, [x0, x0, lsl #2]20// CHECK-ENCODING: [0x00,0x00,0x80,0xe0]21// CHECK-ERROR: instruction requires: sme22// CHECK-UNKNOWN: e0800000 <unknown>23 24ld1w    {za1h.s[w14, 1]}, p5/z, [x10, x21, lsl #2]25// CHECK-INST: ld1w    {za1h.s[w14, 1]}, p5/z, [x10, x21, lsl #2]26// CHECK-ENCODING: [0x45,0x55,0x95,0xe0]27// CHECK-ERROR: instruction requires: sme28// CHECK-UNKNOWN: e0955545 <unknown>29 30ld1w    {za1h.s[w15, 3]}, p3/z, [x13, x8, lsl #2]31// CHECK-INST: ld1w    {za1h.s[w15, 3]}, p3/z, [x13, x8, lsl #2]32// CHECK-ENCODING: [0xa7,0x6d,0x88,0xe0]33// CHECK-ERROR: instruction requires: sme34// CHECK-UNKNOWN: e0886da7 <unknown>35 36ld1w    {za3h.s[w15, 3]}, p7/z, [sp]37// CHECK-INST: ld1w    {za3h.s[w15, 3]}, p7/z, [sp]38// CHECK-ENCODING: [0xef,0x7f,0x9f,0xe0]39// CHECK-ERROR: instruction requires: sme40// CHECK-UNKNOWN: e09f7fef <unknown>41 42ld1w    {za1h.s[w12, 1]}, p3/z, [x17, x16, lsl #2]43// CHECK-INST: ld1w    {za1h.s[w12, 1]}, p3/z, [x17, x16, lsl #2]44// CHECK-ENCODING: [0x25,0x0e,0x90,0xe0]45// CHECK-ERROR: instruction requires: sme46// CHECK-UNKNOWN: e0900e25 <unknown>47 48ld1w    {za0h.s[w12, 1]}, p1/z, [x1, x30, lsl #2]49// CHECK-INST: ld1w    {za0h.s[w12, 1]}, p1/z, [x1, x30, lsl #2]50// CHECK-ENCODING: [0x21,0x04,0x9e,0xe0]51// CHECK-ERROR: instruction requires: sme52// CHECK-UNKNOWN: e09e0421 <unknown>53 54ld1w    {za2h.s[w14, 0]}, p5/z, [x19, x20, lsl #2]55// CHECK-INST: ld1w    {za2h.s[w14, 0]}, p5/z, [x19, x20, lsl #2]56// CHECK-ENCODING: [0x68,0x56,0x94,0xe0]57// CHECK-ERROR: instruction requires: sme58// CHECK-UNKNOWN: e0945668 <unknown>59 60ld1w    {za0h.s[w12, 0]}, p6/z, [x12, x2, lsl #2]61// CHECK-INST: ld1w    {za0h.s[w12, 0]}, p6/z, [x12, x2, lsl #2]62// CHECK-ENCODING: [0x80,0x19,0x82,0xe0]63// CHECK-ERROR: instruction requires: sme64// CHECK-UNKNOWN: e0821980 <unknown>65 66ld1w    {za0h.s[w14, 1]}, p2/z, [x1, x26, lsl #2]67// CHECK-INST: ld1w    {za0h.s[w14, 1]}, p2/z, [x1, x26, lsl #2]68// CHECK-ENCODING: [0x21,0x48,0x9a,0xe0]69// CHECK-ERROR: instruction requires: sme70// CHECK-UNKNOWN: e09a4821 <unknown>71 72ld1w    {za3h.s[w12, 1]}, p2/z, [x22, x30, lsl #2]73// CHECK-INST: ld1w    {za3h.s[w12, 1]}, p2/z, [x22, x30, lsl #2]74// CHECK-ENCODING: [0xcd,0x0a,0x9e,0xe0]75// CHECK-ERROR: instruction requires: sme76// CHECK-UNKNOWN: e09e0acd <unknown>77 78ld1w    {za0h.s[w15, 2]}, p5/z, [x9, x1, lsl #2]79// CHECK-INST: ld1w    {za0h.s[w15, 2]}, p5/z, [x9, x1, lsl #2]80// CHECK-ENCODING: [0x22,0x75,0x81,0xe0]81// CHECK-ERROR: instruction requires: sme82// CHECK-UNKNOWN: e0817522 <unknown>83 84ld1w    {za1h.s[w13, 3]}, p2/z, [x12, x11, lsl #2]85// CHECK-INST: ld1w    {za1h.s[w13, 3]}, p2/z, [x12, x11, lsl #2]86// CHECK-ENCODING: [0x87,0x29,0x8b,0xe0]87// CHECK-ERROR: instruction requires: sme88// CHECK-UNKNOWN: e08b2987 <unknown>89 90ld1w    za0h.s[w12, 0], p0/z, [x0, x0, lsl #2]91// CHECK-INST: ld1w    {za0h.s[w12, 0]}, p0/z, [x0, x0, lsl #2]92// CHECK-ENCODING: [0x00,0x00,0x80,0xe0]93// CHECK-ERROR: instruction requires: sme94// CHECK-UNKNOWN: e0800000 <unknown>95 96ld1w    za1h.s[w14, 1], p5/z, [x10, x21, lsl #2]97// CHECK-INST: ld1w    {za1h.s[w14, 1]}, p5/z, [x10, x21, lsl #2]98// CHECK-ENCODING: [0x45,0x55,0x95,0xe0]99// CHECK-ERROR: instruction requires: sme100// CHECK-UNKNOWN: e0955545 <unknown>101 102ld1w    za1h.s[w15, 3], p3/z, [x13, x8, lsl #2]103// CHECK-INST: ld1w    {za1h.s[w15, 3]}, p3/z, [x13, x8, lsl #2]104// CHECK-ENCODING: [0xa7,0x6d,0x88,0xe0]105// CHECK-ERROR: instruction requires: sme106// CHECK-UNKNOWN: e0886da7 <unknown>107 108ld1w    za3h.s[w15, 3], p7/z, [sp]109// CHECK-INST: ld1w    {za3h.s[w15, 3]}, p7/z, [sp]110// CHECK-ENCODING: [0xef,0x7f,0x9f,0xe0]111// CHECK-ERROR: instruction requires: sme112// CHECK-UNKNOWN: e09f7fef <unknown>113 114ld1w    za1h.s[w12, 1], p3/z, [x17, x16, lsl #2]115// CHECK-INST: ld1w    {za1h.s[w12, 1]}, p3/z, [x17, x16, lsl #2]116// CHECK-ENCODING: [0x25,0x0e,0x90,0xe0]117// CHECK-ERROR: instruction requires: sme118// CHECK-UNKNOWN: e0900e25 <unknown>119 120ld1w    za0h.s[w12, 1], p1/z, [x1, x30, lsl #2]121// CHECK-INST: ld1w    {za0h.s[w12, 1]}, p1/z, [x1, x30, lsl #2]122// CHECK-ENCODING: [0x21,0x04,0x9e,0xe0]123// CHECK-ERROR: instruction requires: sme124// CHECK-UNKNOWN: e09e0421 <unknown>125 126ld1w    za2h.s[w14, 0], p5/z, [x19, x20, lsl #2]127// CHECK-INST: ld1w    {za2h.s[w14, 0]}, p5/z, [x19, x20, lsl #2]128// CHECK-ENCODING: [0x68,0x56,0x94,0xe0]129// CHECK-ERROR: instruction requires: sme130// CHECK-UNKNOWN: e0945668 <unknown>131 132ld1w    za0h.s[w12, 0], p6/z, [x12, x2, lsl #2]133// CHECK-INST: ld1w    {za0h.s[w12, 0]}, p6/z, [x12, x2, lsl #2]134// CHECK-ENCODING: [0x80,0x19,0x82,0xe0]135// CHECK-ERROR: instruction requires: sme136// CHECK-UNKNOWN: e0821980 <unknown>137 138ld1w    za0h.s[w14, 1], p2/z, [x1, x26, lsl #2]139// CHECK-INST: ld1w    {za0h.s[w14, 1]}, p2/z, [x1, x26, lsl #2]140// CHECK-ENCODING: [0x21,0x48,0x9a,0xe0]141// CHECK-ERROR: instruction requires: sme142// CHECK-UNKNOWN: e09a4821 <unknown>143 144ld1w    za3h.s[w12, 1], p2/z, [x22, x30, lsl #2]145// CHECK-INST: ld1w    {za3h.s[w12, 1]}, p2/z, [x22, x30, lsl #2]146// CHECK-ENCODING: [0xcd,0x0a,0x9e,0xe0]147// CHECK-ERROR: instruction requires: sme148// CHECK-UNKNOWN: e09e0acd <unknown>149 150ld1w    za0h.s[w15, 2], p5/z, [x9, x1, lsl #2]151// CHECK-INST: ld1w    {za0h.s[w15, 2]}, p5/z, [x9, x1, lsl #2]152// CHECK-ENCODING: [0x22,0x75,0x81,0xe0]153// CHECK-ERROR: instruction requires: sme154// CHECK-UNKNOWN: e0817522 <unknown>155 156ld1w    za1h.s[w13, 3], p2/z, [x12, x11, lsl #2]157// CHECK-INST: ld1w    {za1h.s[w13, 3]}, p2/z, [x12, x11, lsl #2]158// CHECK-ENCODING: [0x87,0x29,0x8b,0xe0]159// CHECK-ERROR: instruction requires: sme160// CHECK-UNKNOWN: e08b2987 <unknown>161 162// --------------------------------------------------------------------------//163// Vertical164 165ld1w    {za0v.s[w12, 0]}, p0/z, [x0, x0, lsl #2]166// CHECK-INST: ld1w    {za0v.s[w12, 0]}, p0/z, [x0, x0, lsl #2]167// CHECK-ENCODING: [0x00,0x80,0x80,0xe0]168// CHECK-ERROR: instruction requires: sme169// CHECK-UNKNOWN: e0808000 <unknown>170 171ld1w    {za1v.s[w14, 1]}, p5/z, [x10, x21, lsl #2]172// CHECK-INST: ld1w    {za1v.s[w14, 1]}, p5/z, [x10, x21, lsl #2]173// CHECK-ENCODING: [0x45,0xd5,0x95,0xe0]174// CHECK-ERROR: instruction requires: sme175// CHECK-UNKNOWN: e095d545 <unknown>176 177ld1w    {za1v.s[w15, 3]}, p3/z, [x13, x8, lsl #2]178// CHECK-INST: ld1w    {za1v.s[w15, 3]}, p3/z, [x13, x8, lsl #2]179// CHECK-ENCODING: [0xa7,0xed,0x88,0xe0]180// CHECK-ERROR: instruction requires: sme181// CHECK-UNKNOWN: e088eda7 <unknown>182 183ld1w    {za3v.s[w15, 3]}, p7/z, [sp]184// CHECK-INST: ld1w    {za3v.s[w15, 3]}, p7/z, [sp]185// CHECK-ENCODING: [0xef,0xff,0x9f,0xe0]186// CHECK-ERROR: instruction requires: sme187// CHECK-UNKNOWN: e09fffef <unknown>188 189ld1w    {za1v.s[w12, 1]}, p3/z, [x17, x16, lsl #2]190// CHECK-INST: ld1w    {za1v.s[w12, 1]}, p3/z, [x17, x16, lsl #2]191// CHECK-ENCODING: [0x25,0x8e,0x90,0xe0]192// CHECK-ERROR: instruction requires: sme193// CHECK-UNKNOWN: e0908e25 <unknown>194 195ld1w    {za0v.s[w12, 1]}, p1/z, [x1, x30, lsl #2]196// CHECK-INST: ld1w    {za0v.s[w12, 1]}, p1/z, [x1, x30, lsl #2]197// CHECK-ENCODING: [0x21,0x84,0x9e,0xe0]198// CHECK-ERROR: instruction requires: sme199// CHECK-UNKNOWN: e09e8421 <unknown>200 201ld1w    {za2v.s[w14, 0]}, p5/z, [x19, x20, lsl #2]202// CHECK-INST: ld1w    {za2v.s[w14, 0]}, p5/z, [x19, x20, lsl #2]203// CHECK-ENCODING: [0x68,0xd6,0x94,0xe0]204// CHECK-ERROR: instruction requires: sme205// CHECK-UNKNOWN: e094d668 <unknown>206 207ld1w    {za0v.s[w12, 0]}, p6/z, [x12, x2, lsl #2]208// CHECK-INST: ld1w    {za0v.s[w12, 0]}, p6/z, [x12, x2, lsl #2]209// CHECK-ENCODING: [0x80,0x99,0x82,0xe0]210// CHECK-ERROR: instruction requires: sme211// CHECK-UNKNOWN: e0829980 <unknown>212 213ld1w    {za0v.s[w14, 1]}, p2/z, [x1, x26, lsl #2]214// CHECK-INST: ld1w    {za0v.s[w14, 1]}, p2/z, [x1, x26, lsl #2]215// CHECK-ENCODING: [0x21,0xc8,0x9a,0xe0]216// CHECK-ERROR: instruction requires: sme217// CHECK-UNKNOWN: e09ac821 <unknown>218 219ld1w    {za3v.s[w12, 1]}, p2/z, [x22, x30, lsl #2]220// CHECK-INST: ld1w    {za3v.s[w12, 1]}, p2/z, [x22, x30, lsl #2]221// CHECK-ENCODING: [0xcd,0x8a,0x9e,0xe0]222// CHECK-ERROR: instruction requires: sme223// CHECK-UNKNOWN: e09e8acd <unknown>224 225ld1w    {za0v.s[w15, 2]}, p5/z, [x9, x1, lsl #2]226// CHECK-INST: ld1w    {za0v.s[w15, 2]}, p5/z, [x9, x1, lsl #2]227// CHECK-ENCODING: [0x22,0xf5,0x81,0xe0]228// CHECK-ERROR: instruction requires: sme229// CHECK-UNKNOWN: e081f522 <unknown>230 231ld1w    {za1v.s[w13, 3]}, p2/z, [x12, x11, lsl #2]232// CHECK-INST: ld1w    {za1v.s[w13, 3]}, p2/z, [x12, x11, lsl #2]233// CHECK-ENCODING: [0x87,0xa9,0x8b,0xe0]234// CHECK-ERROR: instruction requires: sme235// CHECK-UNKNOWN: e08ba987 <unknown>236 237ld1w    za0v.s[w12, 0], p0/z, [x0, x0, lsl #2]238// CHECK-INST: ld1w    {za0v.s[w12, 0]}, p0/z, [x0, x0, lsl #2]239// CHECK-ENCODING: [0x00,0x80,0x80,0xe0]240// CHECK-ERROR: instruction requires: sme241// CHECK-UNKNOWN: e0808000 <unknown>242 243ld1w    za1v.s[w14, 1], p5/z, [x10, x21, lsl #2]244// CHECK-INST: ld1w    {za1v.s[w14, 1]}, p5/z, [x10, x21, lsl #2]245// CHECK-ENCODING: [0x45,0xd5,0x95,0xe0]246// CHECK-ERROR: instruction requires: sme247// CHECK-UNKNOWN: e095d545 <unknown>248 249ld1w    za1v.s[w15, 3], p3/z, [x13, x8, lsl #2]250// CHECK-INST: ld1w    {za1v.s[w15, 3]}, p3/z, [x13, x8, lsl #2]251// CHECK-ENCODING: [0xa7,0xed,0x88,0xe0]252// CHECK-ERROR: instruction requires: sme253// CHECK-UNKNOWN: e088eda7 <unknown>254 255ld1w    za3v.s[w15, 3], p7/z, [sp]256// CHECK-INST: ld1w    {za3v.s[w15, 3]}, p7/z, [sp]257// CHECK-ENCODING: [0xef,0xff,0x9f,0xe0]258// CHECK-ERROR: instruction requires: sme259// CHECK-UNKNOWN: e09fffef <unknown>260 261ld1w    za1v.s[w12, 1], p3/z, [x17, x16, lsl #2]262// CHECK-INST: ld1w    {za1v.s[w12, 1]}, p3/z, [x17, x16, lsl #2]263// CHECK-ENCODING: [0x25,0x8e,0x90,0xe0]264// CHECK-ERROR: instruction requires: sme265// CHECK-UNKNOWN: e0908e25 <unknown>266 267ld1w    za0v.s[w12, 1], p1/z, [x1, x30, lsl #2]268// CHECK-INST: ld1w    {za0v.s[w12, 1]}, p1/z, [x1, x30, lsl #2]269// CHECK-ENCODING: [0x21,0x84,0x9e,0xe0]270// CHECK-ERROR: instruction requires: sme271// CHECK-UNKNOWN: e09e8421 <unknown>272 273ld1w    za2v.s[w14, 0], p5/z, [x19, x20, lsl #2]274// CHECK-INST: ld1w    {za2v.s[w14, 0]}, p5/z, [x19, x20, lsl #2]275// CHECK-ENCODING: [0x68,0xd6,0x94,0xe0]276// CHECK-ERROR: instruction requires: sme277// CHECK-UNKNOWN: e094d668 <unknown>278 279ld1w    za0v.s[w12, 0], p6/z, [x12, x2, lsl #2]280// CHECK-INST: ld1w    {za0v.s[w12, 0]}, p6/z, [x12, x2, lsl #2]281// CHECK-ENCODING: [0x80,0x99,0x82,0xe0]282// CHECK-ERROR: instruction requires: sme283// CHECK-UNKNOWN: e0829980 <unknown>284 285ld1w    za0v.s[w14, 1], p2/z, [x1, x26, lsl #2]286// CHECK-INST: ld1w    {za0v.s[w14, 1]}, p2/z, [x1, x26, lsl #2]287// CHECK-ENCODING: [0x21,0xc8,0x9a,0xe0]288// CHECK-ERROR: instruction requires: sme289// CHECK-UNKNOWN: e09ac821 <unknown>290 291ld1w    za3v.s[w12, 1], p2/z, [x22, x30, lsl #2]292// CHECK-INST: ld1w    {za3v.s[w12, 1]}, p2/z, [x22, x30, lsl #2]293// CHECK-ENCODING: [0xcd,0x8a,0x9e,0xe0]294// CHECK-ERROR: instruction requires: sme295// CHECK-UNKNOWN: e09e8acd <unknown>296 297ld1w    za0v.s[w15, 2], p5/z, [x9, x1, lsl #2]298// CHECK-INST: ld1w    {za0v.s[w15, 2]}, p5/z, [x9, x1, lsl #2]299// CHECK-ENCODING: [0x22,0xf5,0x81,0xe0]300// CHECK-ERROR: instruction requires: sme301// CHECK-UNKNOWN: e081f522 <unknown>302 303ld1w    za1v.s[w13, 3], p2/z, [x12, x11, lsl #2]304// CHECK-INST: ld1w    {za1v.s[w13, 3]}, p2/z, [x12, x11, lsl #2]305// CHECK-ENCODING: [0x87,0xa9,0x8b,0xe0]306// CHECK-ERROR: instruction requires: sme307// CHECK-UNKNOWN: e08ba987 <unknown>308