You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
2.9 KiB
79 lines
2.9 KiB
4 months ago
|
// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 2>&1 < %s| FileCheck %s
|
||
|
|
||
|
srshr z18.b, p0/m, z18.b, #0
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 8]
|
||
|
// CHECK-NEXT: srshr z18.b, p0/m, z18.b, #0
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
srshr z1.b, p0/m, z1.b, #9
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 8]
|
||
|
// CHECK-NEXT: srshr z1.b, p0/m, z1.b, #9
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
srshr z21.h, p0/m, z21.h, #0
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 16]
|
||
|
// CHECK-NEXT: srshr z21.h, p0/m, z21.h, #0
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
srshr z14.h, p0/m, z14.h, #17
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 16]
|
||
|
// CHECK-NEXT: srshr z14.h, p0/m, z14.h, #17
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
srshr z6.s, p0/m, z6.s, #0
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 32]
|
||
|
// CHECK-NEXT: srshr z6.s, p0/m, z6.s, #0
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
srshr z23.s, p0/m, z23.s, #33
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 32]
|
||
|
// CHECK-NEXT: srshr z23.s, p0/m, z23.s, #33
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
srshr z3.d, p0/m, z3.d, #0
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 64]
|
||
|
// CHECK-NEXT: srshr z3.d, p0/m, z3.d, #0
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
srshr z25.d, p0/m, z25.d, #65
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: immediate must be an integer in range [1, 64]
|
||
|
// CHECK-NEXT: srshr z25.d, p0/m, z25.d, #65
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
|
||
|
// --------------------------------------------------------------------------//
|
||
|
// Source and Destination Registers must match
|
||
|
|
||
|
srshr z0.b, p0/m, z1.b, #1
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must match destination register
|
||
|
// CHECK-NEXT: srshr z0.b, p0/m, z1.b, #1
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
|
||
|
// --------------------------------------------------------------------------//
|
||
|
// Element sizes must match
|
||
|
|
||
|
srshr z0.b, p0/m, z0.d, #1
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
|
||
|
// CHECK-NEXT: srshr z0.b, p0/m, z0.d, #1
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
srshr z0.d, p0/m, z0.b, #1
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width
|
||
|
// CHECK-NEXT: srshr z0.d, p0/m, z0.b, #1
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
|
||
|
// --------------------------------------------------------------------------//
|
||
|
// Invalid predicate
|
||
|
|
||
|
srshr z0.b, p0/z, z0.b, #1
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
|
||
|
// CHECK-NEXT: srshr z0.b, p0/z, z0.b, #1
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||
|
|
||
|
srshr z0.b, p8/m, z0.b, #1
|
||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix)
|
||
|
// CHECK-NEXT: srshr z0.b, p8/m, z0.b, #1
|
||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|