mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
5202ca9718
Reviewed By: sdesmalen Differential Revision: https://reviews.llvm.org/D106540
85 lines
3.5 KiB
ArmAsm
85 lines
3.5 KiB
ArmAsm
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sme 2>&1 < %s| FileCheck %s
|
|
|
|
// ------------------------------------------------------------------------- //
|
|
// Invalid tile (expected: za[0-1]h.h or za[0-1]v.h)
|
|
|
|
st1h {za2h.h[w12, #0]}, p0, [x0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: unexpected token in argument list
|
|
// CHECK-NEXT: st1h {za2h.h[w12, #0]}, p0, [x0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
st1h {za[w12, #0]}, p0/z, [x0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-1]h.h or za[0-1]v.h
|
|
// CHECK-NEXT: st1h {za[w12, #0]}, p0/z, [x0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
st1h {za0.b[w12, #0]}, p0/z, [x0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid matrix operand, expected za[0-1]h.h or za[0-1]v.h
|
|
// CHECK-NEXT: st1h {za0.b[w12, #0]}, p0/z, [x0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
// ------------------------------------------------------------------------- //
|
|
// Invalid vector select register (expected: w12-w15)
|
|
|
|
st1h {za0h.h[w11, #0]}, p0, [x0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be a register in range [w12, w15]
|
|
// CHECK-NEXT: st1h {za0h.h[w11, #0]}, p0, [x0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
st1h {za0h.h[w16, #0]}, p0, [x0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be a register in range [w12, w15]
|
|
// CHECK-NEXT: st1h {za0h.h[w16, #0]}, p0, [x0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
// ------------------------------------------------------------------------- //
|
|
// Invalid vector select offset (expected: 0-7)
|
|
|
|
st1h {za0h.h[w12]}, p0, [x0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 7].
|
|
// CHECK-NEXT: st1h {za0h.h[w12]}, p0, [x0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
st1h {za0h.h[w12, #8]}, p0, [x0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [0, 7].
|
|
// CHECK-NEXT: st1h {za0h.h[w12, #8]}, p0, [x0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
// ------------------------------------------------------------------------- //
|
|
// Invalid predicate (expected: p0-p7)
|
|
|
|
st1h {za0h.h[w12, #0]}, p8, [x0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
|
|
// CHECK-NEXT: st1h {za0h.h[w12, #0]}, p8, [x0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
// ------------------------------------------------------------------------- //
|
|
// Unexpected predicate qualifier
|
|
|
|
st1h {za0h.h[w12, #0]}, p0/z, [x0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
|
|
// CHECK-NEXT: st1h {za0h.h[w12, #0]}, p0/z, [x0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
st1h {za0h.h[w12, #0]}, p0/m, [x0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
|
|
// CHECK-NEXT: st1h {za0h.h[w12, #0]}, p0/m, [x0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
// ------------------------------------------------------------------------- //
|
|
// Invalid memory operands
|
|
|
|
st1h {za0h.h[w12, #0]}, p0, [w0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
|
|
// CHECK-NEXT: st1h {za0h.h[w12, #0]}, p0, [w0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
st1h {za0h.h[w12, #0]}, p0, [x0, w0]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: register must be x0..x30 or xzr, with required shift 'lsl #1'
|
|
// CHECK-NEXT: st1h {za0h.h[w12, #0]}, p0, [x0, w0]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
|
|
st1h {za0h.h[w12, #0]}, p0, [x0, x0, lsl #2]
|
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: register must be x0..x30 or xzr, with required shift 'lsl #1'
|
|
// CHECK-NEXT: st1h {za0h.h[w12, #0]}, p0, [x0, x0, lsl #2]
|
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|