1// RUN: not llvm-mc -triple=aarch64 -show-encoding -mattr=+sve 2>&1 < %s| FileCheck %s 2 3// ------------------------------------------------------------------------- // 4// Invalid result register 5 6incp sp, p0 7// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand 8// CHECK-NEXT: incp sp, p0 9// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 10 11incp z0.b, p0 12// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width 13// CHECK-NEXT: incp z0.b, p0 14// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 15 16 17// ------------------------------------------------------------------------- // 18// Invalid predicate operand 19 20incp x0, p0 21// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register 22// CHECK-NEXT: incp x0, p0 23// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 24 25incp x0, p0/z 26// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register 27// CHECK-NEXT: incp x0, p0/z 28// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 29 30incp x0, p0/m 31// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register 32// CHECK-NEXT: incp x0, p0/m 33// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 34 35incp x0, p0.q 36// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register 37// CHECK-NEXT: incp x0, p0.q 38// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 39 40 41// --------------------------------------------------------------------------// 42// Negative tests for instructions that are incompatible with movprfx 43 44movprfx z31.d, p7/z, z6.d 45incp z31.d, p7 46// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: instruction is unpredictable when following a predicated movprfx, suggest using unpredicated movprfx 47// CHECK-NEXT: incp z31.d, p7 48// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: 49