blob: ccbf2827b73c01dd8f2440e96a0d3e6e9d71a42f [file] [log] [blame]
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// RUN: not llvm-mc -triple=aarch64 -show-encoding < %s 2>&1 \
// RUN: | FileCheck %s --check-prefix=CHECK-ERROR
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme < %s \
// RUN: | llvm-objdump -d --mattr=+sme - | FileCheck %s --check-prefix=CHECK-INST
// RUN: llvm-mc -triple=aarch64 -filetype=obj -mattr=+sme < %s \
// RUN: | llvm-objdump -d - | FileCheck %s --check-prefix=CHECK-UNKNOWN
// Disassemble encoding and check the re-encoding (-show-encoding) matches.
// RUN: llvm-mc -triple=aarch64 -show-encoding -mattr=+sme < %s \
// RUN: | sed '/.text/d' | sed 's/.*encoding: //g' \
// RUN: | llvm-mc -triple=aarch64 -mattr=+sme -disassemble -show-encoding \
// RUN: | FileCheck %s --check-prefixes=CHECK-ENCODING,CHECK-INST
// --------------------------------------------------------------------------//
// Horizontal
ld1d {za0h.d[w12, 0]}, p0/z, [x0, x0, lsl #3]
// CHECK-INST: ld1d {za0h.d[w12, 0]}, p0/z, [x0, x0, lsl #3]
// CHECK-ENCODING: [0x00,0x00,0xc0,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 00 00 c0 e0 <unknown>
ld1d {za2h.d[w14, 1]}, p5/z, [x10, x21, lsl #3]
// CHECK-INST: ld1d {za2h.d[w14, 1]}, p5/z, [x10, x21, lsl #3]
// CHECK-ENCODING: [0x45,0x55,0xd5,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 45 55 d5 e0 <unknown>
ld1d {za3h.d[w15, 1]}, p3/z, [x13, x8, lsl #3]
// CHECK-INST: ld1d {za3h.d[w15, 1]}, p3/z, [x13, x8, lsl #3]
// CHECK-ENCODING: [0xa7,0x6d,0xc8,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: a7 6d c8 e0 <unknown>
ld1d {za7h.d[w15, 1]}, p7/z, [sp]
// CHECK-INST: ld1d {za7h.d[w15, 1]}, p7/z, [sp]
// CHECK-ENCODING: [0xef,0x7f,0xdf,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: ef 7f df e0 <unknown>
ld1d {za2h.d[w12, 1]}, p3/z, [x17, x16, lsl #3]
// CHECK-INST: ld1d {za2h.d[w12, 1]}, p3/z, [x17, x16, lsl #3]
// CHECK-ENCODING: [0x25,0x0e,0xd0,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 25 0e d0 e0 <unknown>
ld1d {za0h.d[w12, 1]}, p1/z, [x1, x30, lsl #3]
// CHECK-INST: ld1d {za0h.d[w12, 1]}, p1/z, [x1, x30, lsl #3]
// CHECK-ENCODING: [0x21,0x04,0xde,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 21 04 de e0 <unknown>
ld1d {za4h.d[w14, 0]}, p5/z, [x19, x20, lsl #3]
// CHECK-INST: ld1d {za4h.d[w14, 0]}, p5/z, [x19, x20, lsl #3]
// CHECK-ENCODING: [0x68,0x56,0xd4,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 68 56 d4 e0 <unknown>
ld1d {za0h.d[w12, 0]}, p6/z, [x12, x2, lsl #3]
// CHECK-INST: ld1d {za0h.d[w12, 0]}, p6/z, [x12, x2, lsl #3]
// CHECK-ENCODING: [0x80,0x19,0xc2,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 80 19 c2 e0 <unknown>
ld1d {za0h.d[w14, 1]}, p2/z, [x1, x26, lsl #3]
// CHECK-INST: ld1d {za0h.d[w14, 1]}, p2/z, [x1, x26, lsl #3]
// CHECK-ENCODING: [0x21,0x48,0xda,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 21 48 da e0 <unknown>
ld1d {za6h.d[w12, 1]}, p2/z, [x22, x30, lsl #3]
// CHECK-INST: ld1d {za6h.d[w12, 1]}, p2/z, [x22, x30, lsl #3]
// CHECK-ENCODING: [0xcd,0x0a,0xde,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: cd 0a de e0 <unknown>
ld1d {za1h.d[w15, 0]}, p5/z, [x9, x1, lsl #3]
// CHECK-INST: ld1d {za1h.d[w15, 0]}, p5/z, [x9, x1, lsl #3]
// CHECK-ENCODING: [0x22,0x75,0xc1,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 22 75 c1 e0 <unknown>
ld1d {za3h.d[w13, 1]}, p2/z, [x12, x11, lsl #3]
// CHECK-INST: ld1d {za3h.d[w13, 1]}, p2/z, [x12, x11, lsl #3]
// CHECK-ENCODING: [0x87,0x29,0xcb,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 87 29 cb e0 <unknown>
ld1d za0h.d[w12, 0], p0/z, [x0, x0, lsl #3]
// CHECK-INST: ld1d {za0h.d[w12, 0]}, p0/z, [x0, x0, lsl #3]
// CHECK-ENCODING: [0x00,0x00,0xc0,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 00 00 c0 e0 <unknown>
ld1d za2h.d[w14, 1], p5/z, [x10, x21, lsl #3]
// CHECK-INST: ld1d {za2h.d[w14, 1]}, p5/z, [x10, x21, lsl #3]
// CHECK-ENCODING: [0x45,0x55,0xd5,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 45 55 d5 e0 <unknown>
ld1d za3h.d[w15, 1], p3/z, [x13, x8, lsl #3]
// CHECK-INST: ld1d {za3h.d[w15, 1]}, p3/z, [x13, x8, lsl #3]
// CHECK-ENCODING: [0xa7,0x6d,0xc8,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: a7 6d c8 e0 <unknown>
ld1d za7h.d[w15, 1], p7/z, [sp]
// CHECK-INST: ld1d {za7h.d[w15, 1]}, p7/z, [sp]
// CHECK-ENCODING: [0xef,0x7f,0xdf,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: ef 7f df e0 <unknown>
ld1d za2h.d[w12, 1], p3/z, [x17, x16, lsl #3]
// CHECK-INST: ld1d {za2h.d[w12, 1]}, p3/z, [x17, x16, lsl #3]
// CHECK-ENCODING: [0x25,0x0e,0xd0,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 25 0e d0 e0 <unknown>
ld1d za0h.d[w12, 1], p1/z, [x1, x30, lsl #3]
// CHECK-INST: ld1d {za0h.d[w12, 1]}, p1/z, [x1, x30, lsl #3]
// CHECK-ENCODING: [0x21,0x04,0xde,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 21 04 de e0 <unknown>
ld1d za4h.d[w14, 0], p5/z, [x19, x20, lsl #3]
// CHECK-INST: ld1d {za4h.d[w14, 0]}, p5/z, [x19, x20, lsl #3]
// CHECK-ENCODING: [0x68,0x56,0xd4,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 68 56 d4 e0 <unknown>
ld1d za0h.d[w12, 0], p6/z, [x12, x2, lsl #3]
// CHECK-INST: ld1d {za0h.d[w12, 0]}, p6/z, [x12, x2, lsl #3]
// CHECK-ENCODING: [0x80,0x19,0xc2,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 80 19 c2 e0 <unknown>
ld1d za0h.d[w14, 1], p2/z, [x1, x26, lsl #3]
// CHECK-INST: ld1d {za0h.d[w14, 1]}, p2/z, [x1, x26, lsl #3]
// CHECK-ENCODING: [0x21,0x48,0xda,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 21 48 da e0 <unknown>
ld1d za6h.d[w12, 1], p2/z, [x22, x30, lsl #3]
// CHECK-INST: ld1d {za6h.d[w12, 1]}, p2/z, [x22, x30, lsl #3]
// CHECK-ENCODING: [0xcd,0x0a,0xde,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: cd 0a de e0 <unknown>
ld1d za1h.d[w15, 0], p5/z, [x9, x1, lsl #3]
// CHECK-INST: ld1d {za1h.d[w15, 0]}, p5/z, [x9, x1, lsl #3]
// CHECK-ENCODING: [0x22,0x75,0xc1,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 22 75 c1 e0 <unknown>
ld1d za3h.d[w13, 1], p2/z, [x12, x11, lsl #3]
// CHECK-INST: ld1d {za3h.d[w13, 1]}, p2/z, [x12, x11, lsl #3]
// CHECK-ENCODING: [0x87,0x29,0xcb,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 87 29 cb e0 <unknown>
// --------------------------------------------------------------------------//
// Vertical
ld1d {za0v.d[w12, 0]}, p0/z, [x0, x0, lsl #3]
// CHECK-INST: ld1d {za0v.d[w12, 0]}, p0/z, [x0, x0, lsl #3]
// CHECK-ENCODING: [0x00,0x80,0xc0,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 00 80 c0 e0 <unknown>
ld1d {za2v.d[w14, 1]}, p5/z, [x10, x21, lsl #3]
// CHECK-INST: ld1d {za2v.d[w14, 1]}, p5/z, [x10, x21, lsl #3]
// CHECK-ENCODING: [0x45,0xd5,0xd5,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 45 d5 d5 e0 <unknown>
ld1d {za3v.d[w15, 1]}, p3/z, [x13, x8, lsl #3]
// CHECK-INST: ld1d {za3v.d[w15, 1]}, p3/z, [x13, x8, lsl #3]
// CHECK-ENCODING: [0xa7,0xed,0xc8,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: a7 ed c8 e0 <unknown>
ld1d {za7v.d[w15, 1]}, p7/z, [sp]
// CHECK-INST: ld1d {za7v.d[w15, 1]}, p7/z, [sp]
// CHECK-ENCODING: [0xef,0xff,0xdf,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: ef ff df e0 <unknown>
ld1d {za2v.d[w12, 1]}, p3/z, [x17, x16, lsl #3]
// CHECK-INST: ld1d {za2v.d[w12, 1]}, p3/z, [x17, x16, lsl #3]
// CHECK-ENCODING: [0x25,0x8e,0xd0,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 25 8e d0 e0 <unknown>
ld1d {za0v.d[w12, 1]}, p1/z, [x1, x30, lsl #3]
// CHECK-INST: ld1d {za0v.d[w12, 1]}, p1/z, [x1, x30, lsl #3]
// CHECK-ENCODING: [0x21,0x84,0xde,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 21 84 de e0 <unknown>
ld1d {za4v.d[w14, 0]}, p5/z, [x19, x20, lsl #3]
// CHECK-INST: ld1d {za4v.d[w14, 0]}, p5/z, [x19, x20, lsl #3]
// CHECK-ENCODING: [0x68,0xd6,0xd4,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 68 d6 d4 e0 <unknown>
ld1d {za0v.d[w12, 0]}, p6/z, [x12, x2, lsl #3]
// CHECK-INST: ld1d {za0v.d[w12, 0]}, p6/z, [x12, x2, lsl #3]
// CHECK-ENCODING: [0x80,0x99,0xc2,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 80 99 c2 e0 <unknown>
ld1d {za0v.d[w14, 1]}, p2/z, [x1, x26, lsl #3]
// CHECK-INST: ld1d {za0v.d[w14, 1]}, p2/z, [x1, x26, lsl #3]
// CHECK-ENCODING: [0x21,0xc8,0xda,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 21 c8 da e0 <unknown>
ld1d {za6v.d[w12, 1]}, p2/z, [x22, x30, lsl #3]
// CHECK-INST: ld1d {za6v.d[w12, 1]}, p2/z, [x22, x30, lsl #3]
// CHECK-ENCODING: [0xcd,0x8a,0xde,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: cd 8a de e0 <unknown>
ld1d {za1v.d[w15, 0]}, p5/z, [x9, x1, lsl #3]
// CHECK-INST: ld1d {za1v.d[w15, 0]}, p5/z, [x9, x1, lsl #3]
// CHECK-ENCODING: [0x22,0xf5,0xc1,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 22 f5 c1 e0 <unknown>
ld1d {za3v.d[w13, 1]}, p2/z, [x12, x11, lsl #3]
// CHECK-INST: ld1d {za3v.d[w13, 1]}, p2/z, [x12, x11, lsl #3]
// CHECK-ENCODING: [0x87,0xa9,0xcb,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 87 a9 cb e0 <unknown>
ld1d za0v.d[w12, 0], p0/z, [x0, x0, lsl #3]
// CHECK-INST: ld1d {za0v.d[w12, 0]}, p0/z, [x0, x0, lsl #3]
// CHECK-ENCODING: [0x00,0x80,0xc0,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 00 80 c0 e0 <unknown>
ld1d za2v.d[w14, 1], p5/z, [x10, x21, lsl #3]
// CHECK-INST: ld1d {za2v.d[w14, 1]}, p5/z, [x10, x21, lsl #3]
// CHECK-ENCODING: [0x45,0xd5,0xd5,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 45 d5 d5 e0 <unknown>
ld1d za3v.d[w15, 1], p3/z, [x13, x8, lsl #3]
// CHECK-INST: ld1d {za3v.d[w15, 1]}, p3/z, [x13, x8, lsl #3]
// CHECK-ENCODING: [0xa7,0xed,0xc8,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: a7 ed c8 e0 <unknown>
ld1d za7v.d[w15, 1], p7/z, [sp]
// CHECK-INST: ld1d {za7v.d[w15, 1]}, p7/z, [sp]
// CHECK-ENCODING: [0xef,0xff,0xdf,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: ef ff df e0 <unknown>
ld1d za2v.d[w12, 1], p3/z, [x17, x16, lsl #3]
// CHECK-INST: ld1d {za2v.d[w12, 1]}, p3/z, [x17, x16, lsl #3]
// CHECK-ENCODING: [0x25,0x8e,0xd0,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 25 8e d0 e0 <unknown>
ld1d za0v.d[w12, 1], p1/z, [x1, x30, lsl #3]
// CHECK-INST: ld1d {za0v.d[w12, 1]}, p1/z, [x1, x30, lsl #3]
// CHECK-ENCODING: [0x21,0x84,0xde,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 21 84 de e0 <unknown>
ld1d za4v.d[w14, 0], p5/z, [x19, x20, lsl #3]
// CHECK-INST: ld1d {za4v.d[w14, 0]}, p5/z, [x19, x20, lsl #3]
// CHECK-ENCODING: [0x68,0xd6,0xd4,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 68 d6 d4 e0 <unknown>
ld1d za0v.d[w12, 0], p6/z, [x12, x2, lsl #3]
// CHECK-INST: ld1d {za0v.d[w12, 0]}, p6/z, [x12, x2, lsl #3]
// CHECK-ENCODING: [0x80,0x99,0xc2,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 80 99 c2 e0 <unknown>
ld1d za0v.d[w14, 1], p2/z, [x1, x26, lsl #3]
// CHECK-INST: ld1d {za0v.d[w14, 1]}, p2/z, [x1, x26, lsl #3]
// CHECK-ENCODING: [0x21,0xc8,0xda,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 21 c8 da e0 <unknown>
ld1d za6v.d[w12, 1], p2/z, [x22, x30, lsl #3]
// CHECK-INST: ld1d {za6v.d[w12, 1]}, p2/z, [x22, x30, lsl #3]
// CHECK-ENCODING: [0xcd,0x8a,0xde,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: cd 8a de e0 <unknown>
ld1d za1v.d[w15, 0], p5/z, [x9, x1, lsl #3]
// CHECK-INST: ld1d {za1v.d[w15, 0]}, p5/z, [x9, x1, lsl #3]
// CHECK-ENCODING: [0x22,0xf5,0xc1,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 22 f5 c1 e0 <unknown>
ld1d za3v.d[w13, 1], p2/z, [x12, x11, lsl #3]
// CHECK-INST: ld1d {za3v.d[w13, 1]}, p2/z, [x12, x11, lsl #3]
// CHECK-ENCODING: [0x87,0xa9,0xcb,0xe0]
// CHECK-ERROR: instruction requires: sme
// CHECK-UNKNOWN: 87 a9 cb e0 <unknown>