1// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve2 2>&1 < %s| FileCheck %s 2 3// ------------------------------------------------------------------------- // 4// Invalid predicate 5 6ursqrte z0.s, p0/z, z1.s 7// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction 8// CHECK-NEXT: ursqrte z0.s, p0/z, z1.s 9// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 10 11ursqrte z0.s, p8/m, z1.s 12// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) 13// CHECK-NEXT: ursqrte z0.s, p8/m, z1.s 14// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 15 16 17// ------------------------------------------------------------------------- // 18// Invalid element width 19 20ursqrte z0.b, p7/m, z1.b 21// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width 22// CHECK-NEXT: ursqrte z0.b, p7/m, z1.b 23// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 24 25ursqrte z0.h, p7/m, z1.h 26// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width 27// CHECK-NEXT: ursqrte z0.h, p7/m, z1.h 28// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 29 30ursqrte z0.d, p7/m, z1.d 31// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width 32// CHECK-NEXT: ursqrte z0.d, p7/m, z1.d 33// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 34