Index: lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp =================================================================== --- lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp +++ lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp @@ -1082,7 +1082,7 @@ return DiagnosticPredicateTy::NoMatch; if (isSVEVectorReg() && - (ElementWidth == 0 || Reg.ElementWidth == ElementWidth)) + (Reg.ElementWidth == ElementWidth)) return DiagnosticPredicateTy::Match; return DiagnosticPredicateTy::NearMatch; Index: test/MC/AArch64/SVE/andv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/andv-diagnostics.s +++ test/MC/AArch64/SVE/andv-diagnostics.s @@ -33,6 +33,17 @@ // CHECK-NEXT: andv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +andv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: andv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +andv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: andv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/clasta-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/clasta-diagnostics.s +++ test/MC/AArch64/SVE/clasta-diagnostics.s @@ -9,6 +9,16 @@ // CHECK-NEXT: clasta w0, p8, w0, z31.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +clasta w0, p7.b, w0, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: clasta w0, p7.b, w0, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +clasta w0, p7.q, w0, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: clasta w0, p7.q, w0, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // ------------------------------------------------------------------------- // // Invalid element width Index: test/MC/AArch64/SVE/clastb-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/clastb-diagnostics.s +++ test/MC/AArch64/SVE/clastb-diagnostics.s @@ -9,6 +9,16 @@ // CHECK-NEXT: clastb w0, p8, w0, z31.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +clastb w0, p7.b, w0, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: clastb w0, p7.b, w0, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +clastb w0, p7.q, w0, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: clastb w0, p7.q, w0, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // ------------------------------------------------------------------------- // // Invalid element width Index: test/MC/AArch64/SVE/cntp-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/cntp-diagnostics.s +++ test/MC/AArch64/SVE/cntp-diagnostics.s @@ -5,7 +5,21 @@ // CHECK-NEXT: cntp sp // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +// ------------------------------------------------------------------------- // +// Invalid predicate operand + cntp x0, p15, p0 // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register // CHECK-NEXT: cntp x0, p15, p0 // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +cntp x0, p15.b, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: cntp x0, p15.b, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +cntp x0, p15.q, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: cntp x0, p15.q, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: Index: test/MC/AArch64/SVE/compact-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/compact-diagnostics.s +++ test/MC/AArch64/SVE/compact-diagnostics.s @@ -8,6 +8,16 @@ // CHECK-NEXT: compact z23.d, p8, z13.d // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +compact z23.d, p7.b, z13.d +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: compact z23.d, p7.b, z13.d +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +compact z23.d, p7.q, z13.d +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: compact z23.d, p7.q, z13.d +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid element widths Index: test/MC/AArch64/SVE/decp-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/decp-diagnostics.s +++ test/MC/AArch64/SVE/decp-diagnostics.s @@ -37,6 +37,16 @@ // CHECK-NEXT: decp x0, p0.q // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +decp z0.d, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: decp z0.d, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +decp z0.d, p0.q +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: decp z0.d, p0.q +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/eorv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/eorv-diagnostics.s +++ test/MC/AArch64/SVE/eorv-diagnostics.s @@ -33,6 +33,17 @@ // CHECK-NEXT: eorv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +eorv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: eorv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +eorv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: eorv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/fadda-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/fadda-diagnostics.s +++ test/MC/AArch64/SVE/fadda-diagnostics.s @@ -10,16 +10,31 @@ // CHECK-NEXT: fadda h0, p7, h1, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +fadda v0.8h, p7, v0.8h, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction +// CHECK-NEXT: fadda v0.8h, p7, v0.8h, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + +// ------------------------------------------------------------------------- // +// Invalid predicate operand + fadda h0, p8, h0, z31.h // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: fadda h0, p8, h0, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: -fadda v0.8h, p7, v0.8h, z31.h -// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction -// CHECK-NEXT: fadda v0.8h, p7, v0.8h, z31.h +fadda h0, p7.b, h0, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: fadda h0, p7.b, h0, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +fadda h0, p7.q, h0, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: fadda h0, p7.q, h0, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/faddv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/faddv-diagnostics.s +++ test/MC/AArch64/SVE/faddv-diagnostics.s @@ -5,11 +5,25 @@ // CHECK-NEXT: faddv b0, p7, z31.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +// ------------------------------------------------------------------------- // +// Invalid predicate operand + faddv h0, p8, z31.h // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: faddv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +faddv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: faddv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +faddv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: faddv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // ------------------------------------------------------------------------- // // Result must be a valid FP register. Index: test/MC/AArch64/SVE/fmaxnmv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/fmaxnmv-diagnostics.s +++ test/MC/AArch64/SVE/fmaxnmv-diagnostics.s @@ -5,11 +5,25 @@ // CHECK-NEXT: fmaxnmv b0, p7, z31.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +// ------------------------------------------------------------------------- // +// Invalid predicate operand + fmaxnmv h0, p8, z31.h // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: fmaxnmv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +fmaxnmv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: fmaxnmv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +fmaxnmv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: fmaxnmv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // ------------------------------------------------------------------------- // // Result must be a valid FP register. Index: test/MC/AArch64/SVE/fmaxv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/fmaxv-diagnostics.s +++ test/MC/AArch64/SVE/fmaxv-diagnostics.s @@ -5,11 +5,25 @@ // CHECK-NEXT: fmaxv b0, p7, z31.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +// ------------------------------------------------------------------------- // +// Invalid predicate operand + fmaxv h0, p8, z31.h // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: fmaxv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +fmaxv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: fmaxv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +fmaxv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: fmaxv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // ------------------------------------------------------------------------- // // Result must be a valid FP register. Index: test/MC/AArch64/SVE/fminnmv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/fminnmv-diagnostics.s +++ test/MC/AArch64/SVE/fminnmv-diagnostics.s @@ -5,11 +5,25 @@ // CHECK-NEXT: fminnmv b0, p7, z31.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +// ------------------------------------------------------------------------- // +// Invalid predicate operand + fminnmv h0, p8, z31.h // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: fminnmv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +fminnmv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: fminnmv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +fminnmv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: fminnmv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // ------------------------------------------------------------------------- // // Result must be a valid FP register. Index: test/MC/AArch64/SVE/fminv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/fminv-diagnostics.s +++ test/MC/AArch64/SVE/fminv-diagnostics.s @@ -5,11 +5,26 @@ // CHECK-NEXT: fminv b0, p7, z31.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +// ------------------------------------------------------------------------- // +// Invalid predicate operand + + fminv h0, p8, z31.h // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: fminv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +fminv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: fminv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +fminv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: fminv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // ------------------------------------------------------------------------- // // Result must be a valid FP register. Index: test/MC/AArch64/SVE/incp-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/incp-diagnostics.s +++ test/MC/AArch64/SVE/incp-diagnostics.s @@ -37,6 +37,16 @@ // CHECK-NEXT: incp x0, p0.q // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +incp z0.d, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: incp z0.d, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +incp z0.d, p0.q +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: incp z0.d, p0.q +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/lasta-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/lasta-diagnostics.s +++ test/MC/AArch64/SVE/lasta-diagnostics.s @@ -9,6 +9,16 @@ // CHECK-NEXT: lasta w0, p8, z31.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +lasta w0, p7.b, w0, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: lasta w0, p7.b, w0, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +lasta w0, p7.q, w0, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: lasta w0, p7.q, w0, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // ------------------------------------------------------------------------- // // Invalid element width Index: test/MC/AArch64/SVE/lastb-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/lastb-diagnostics.s +++ test/MC/AArch64/SVE/lastb-diagnostics.s @@ -9,6 +9,16 @@ // CHECK-NEXT: lastb w0, p8, z31.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +lastb w0, p7.b, w0, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: lastb w0, p7.b, w0, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +lastb w0, p7.q, w0, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: lastb w0, p7.q, w0, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // ------------------------------------------------------------------------- // // Invalid element width Index: test/MC/AArch64/SVE/orv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/orv-diagnostics.s +++ test/MC/AArch64/SVE/orv-diagnostics.s @@ -33,6 +33,17 @@ // CHECK-NEXT: orv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +orv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: orv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +orv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: orv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/pfirst-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/pfirst-diagnostics.s +++ test/MC/AArch64/SVE/pfirst-diagnostics.s @@ -2,13 +2,33 @@ // ------------------------------------------------------------------------- // -// Only .b is supported +// Invalid predicate pfirst p0.h, p15, p0.h // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register // CHECK-NEXT: pfirst p0.h, p15, p0.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +pfirst p0.b, p15/z, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction +// CHECK-NEXT: pfirst p0.b, p15/z, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +pfirst p0.b, p15/m, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction +// CHECK-NEXT: pfirst p0.b, p15/m, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +pfirst p0.b, p15.b, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: pfirst p0.b, p15.b, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +pfirst p0.b, p15.q, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: pfirst p0.b, p15.q, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // ------------------------------------------------------------------------- // // Tied operands must match Index: test/MC/AArch64/SVE/pnext-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/pnext-diagnostics.s +++ test/MC/AArch64/SVE/pnext-diagnostics.s @@ -2,6 +2,20 @@ // ------------------------------------------------------------------------- // +// Unexpected type suffix + +pnext p0.b, p15.b, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register. +// CHECK-NEXT: pnext p0.b, p15.b, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +pnext p0.b, p15.q, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register. +// CHECK-NEXT: pnext p0.b, p15.q, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + +// ------------------------------------------------------------------------- // // Tied operands must match pnext p0.b, p15, p1.b Index: test/MC/AArch64/SVE/prfb-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/prfb-diagnostics.s +++ test/MC/AArch64/SVE/prfb-diagnostics.s @@ -122,13 +122,23 @@ // --------------------------------------------------------------------------// -// invalid predicate +// Invalid predicate prfb #0, p8, [x0] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: prfb #0, p8, [x0] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +prfb #0, p7.b, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: prfb #0, p7.b, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +prfb #0, p7.q, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: prfb #0, p7.q, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/prfd-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/prfd-diagnostics.s +++ test/MC/AArch64/SVE/prfd-diagnostics.s @@ -108,13 +108,23 @@ // --------------------------------------------------------------------------// -// invalid predicate +// Invalid predicate prfd #0, p8, [x0] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: prfd #0, p8, [x0] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +prfd #0, p7.b, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: prfd #0, p7.b, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +prfd #0, p7.q, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: prfd #0, p7.q, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/prfh-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/prfh-diagnostics.s +++ test/MC/AArch64/SVE/prfh-diagnostics.s @@ -147,13 +147,23 @@ // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: // --------------------------------------------------------------------------// -// invalid predicate +// Invalid predicate prfh #0, p8, [x0] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: prfh #0, p8, [x0] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +prfh #0, p7.b, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: prfh #0, p7.b, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +prfh #0, p7.q, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: prfh #0, p7.q, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/prfw-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/prfw-diagnostics.s +++ test/MC/AArch64/SVE/prfw-diagnostics.s @@ -148,13 +148,23 @@ // --------------------------------------------------------------------------// -// invalid predicate +// Invalid predicate prfw #0, p8, [x0] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: prfw #0, p8, [x0] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +prfw #0, p7.b, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: prfw #0, p7.b, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +prfw #0, p7.q, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: prfw #0, p7.q, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/ptest-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/ptest-diagnostics.s +++ test/MC/AArch64/SVE/ptest-diagnostics.s @@ -2,9 +2,19 @@ // ------------------------------------------------------------------------- // -// Only .b is supported +// Invalid predicate ptest p15, p15.h // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register // CHECK-NEXT: ptest p15, p15.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +ptest p15.b, p15.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: ptest p15.b, p15.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +ptest p15.q, p15.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: ptest p15.q, p15.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: Index: test/MC/AArch64/SVE/saddv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/saddv-diagnostics.s +++ test/MC/AArch64/SVE/saddv-diagnostics.s @@ -33,6 +33,17 @@ // CHECK-NEXT: saddv d0, p8, z31.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +saddv d0, p7.b, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: saddv d0, p7.b, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +saddv d0, p7.q, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: saddv d0, p7.q, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/sel-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/sel-diagnostics.s +++ test/MC/AArch64/SVE/sel-diagnostics.s @@ -1,5 +1,28 @@ // RUN: not llvm-mc -triple=aarch64-none-linux-gnu -show-encoding -mattr=+sve 2>&1 < %s | FileCheck %s +// ------------------------------------------------------------------------- // +// Invalid predicate operand + +sel z0.b, p0.b, z0.b, z0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: sel z0.b, p0.b, z0.b, z0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +sel z0.b, p0.q, z0.b, z0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: sel z0.b, p0.q, z0.b, z0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +sel p0.b, p0.b, p0.b, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: sel p0.b, p0.b, p0.b, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +sel p0.b, p0.q, p0.b, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: sel p0.b, p0.q, p0.b, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/smaxv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/smaxv-diagnostics.s +++ test/MC/AArch64/SVE/smaxv-diagnostics.s @@ -33,6 +33,17 @@ // CHECK-NEXT: smaxv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +smaxv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: smaxv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +smaxv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: smaxv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/sminv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/sminv-diagnostics.s +++ test/MC/AArch64/SVE/sminv-diagnostics.s @@ -33,6 +33,17 @@ // CHECK-NEXT: sminv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +sminv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: sminv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +sminv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: sminv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/splice-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/splice-diagnostics.s +++ test/MC/AArch64/SVE/splice-diagnostics.s @@ -26,6 +26,16 @@ // CHECK-NEXT: splice z0.b, p8, z0.b, z1.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +splice z0.b, p7.b, z0.b, z1.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: splice z0.b, p7.b, z0.b, z1.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +splice z0.b, p7.q, z0.b, z1.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: splice z0.b, p7.q, z0.b, z1.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/sqdecp-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/sqdecp-diagnostics.s +++ test/MC/AArch64/SVE/sqdecp-diagnostics.s @@ -52,6 +52,16 @@ // CHECK-NEXT: sqdecp x0, p0.q // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +sqdecp z0.d, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: sqdecp z0.d, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +sqdecp z0.d, p0.q +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: sqdecp z0.d, p0.q +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/sqincp-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/sqincp-diagnostics.s +++ test/MC/AArch64/SVE/sqincp-diagnostics.s @@ -47,6 +47,16 @@ // CHECK-NEXT: uqdecp x0, p0.q // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +sqincp z0.d, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: sqincp z0.d, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +sqincp z0.d, p0.q +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: sqincp z0.d, p0.q +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/st1b-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st1b-diagnostics.s +++ test/MC/AArch64/SVE/st1b-diagnostics.s @@ -44,7 +44,7 @@ // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: // --------------------------------------------------------------------------// -// Restricted predicate has range [0, 7]. +// Invalid predicate st1b z12.b, p8, [x27, #6, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) @@ -66,6 +66,16 @@ // CHECK-NEXT: st1b z14.d, p8, [x6, #5, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st1b z14.d, p7.b, [x6, #5, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st1b z14.d, p7.b, [x6, #5, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st1b z14.d, p7.q, [x6, #5, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st1b z14.d, p7.q, [x6, #5, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list Index: test/MC/AArch64/SVE/st1d-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st1d-diagnostics.s +++ test/MC/AArch64/SVE/st1d-diagnostics.s @@ -15,13 +15,23 @@ // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: // --------------------------------------------------------------------------// -// Restricted predicate has range [0, 7]. +// Invalid predicate st1d z12.d, p8, [x4, #14, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st1d z12.d, p8, [x4, #14, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st1d z12.d, p7.b, [x4, #14, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st1d z12.d, p7.b, [x4, #14, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st1d z12.d, p7.q, [x4, #14, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st1d z12.d, p7.q, [x4, #14, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list Index: test/MC/AArch64/SVE/st1h-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st1h-diagnostics.s +++ test/MC/AArch64/SVE/st1h-diagnostics.s @@ -34,7 +34,7 @@ // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: // --------------------------------------------------------------------------// -// Restricted predicate has range [0, 7]. +// Invalid predicate st1h z15.h, p8, [x0, #8, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) @@ -51,6 +51,16 @@ // CHECK-NEXT: st1h z15.d, p8, [x0, #8, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st1h z15.d, p7.b, [x0, #8, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st1h z15.d, p7.b, [x0, #8, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st1h z15.d, p7.b, [x0, #8, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st1h z15.d, p7.b, [x0, #8, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list Index: test/MC/AArch64/SVE/st1w-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st1w-diagnostics.s +++ test/MC/AArch64/SVE/st1w-diagnostics.s @@ -27,7 +27,7 @@ // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: // --------------------------------------------------------------------------// -// Restricted predicate has range [0, 7]. +// Invalid predicate st1w z1.s, p8, [x3, #1, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) @@ -39,6 +39,16 @@ // CHECK-NEXT: st1w z12.d, p8, [x26, #3, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st1w z12.d, p7.b, [x26, #3, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st1w z12.d, p7.b, [x26, #3, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st1w z12.d, p7.q, [x26, #3, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st1w z12.d, p7.q, [x26, #3, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list Index: test/MC/AArch64/SVE/st2b-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st2b-diagnostics.s +++ test/MC/AArch64/SVE/st2b-diagnostics.s @@ -54,13 +54,23 @@ // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st2b {z2.b, z3.b}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st2b {z2.b, z3.b}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st2b {z2.b, z3.b}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st2b {z2.b, z3.b}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st2b {z2.b, z3.b}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st2b {z2.b, z3.b}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/st2d-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st2d-diagnostics.s +++ test/MC/AArch64/SVE/st2d-diagnostics.s @@ -59,13 +59,23 @@ // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st2d {z2.d, z3.d}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st2d {z2.d, z3.d}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st2d {z2.d, z3.d}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st2d {z2.d, z3.d}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st2d {z2.d, z3.d}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st2d {z2.d, z3.d}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/st2h-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st2h-diagnostics.s +++ test/MC/AArch64/SVE/st2h-diagnostics.s @@ -59,13 +59,23 @@ // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st2h {z2.h, z3.h}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st2h {z2.h, z3.h}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st2h {z2.h, z3.h}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st2h {z2.h, z3.h}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st2h {z2.h, z3.h}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st2h {z2.h, z3.h}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/st2w-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st2w-diagnostics.s +++ test/MC/AArch64/SVE/st2w-diagnostics.s @@ -59,13 +59,23 @@ // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st2w {z2.s, z3.s}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st2w {z2.s, z3.s}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st2w {z2.s, z3.s}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st2w {z2.s, z3.s}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st2w {z2.s, z3.s}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st2w {z2.s, z3.s}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/st3b-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st3b-diagnostics.s +++ test/MC/AArch64/SVE/st3b-diagnostics.s @@ -54,13 +54,23 @@ // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st3b {z2.b, z3.b, z4.b}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st3b {z2.b, z3.b, z4.b}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st3b {z2.b, z3.b, z4.b}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st3b {z2.b, z3.b, z4.b}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st3b {z2.b, z3.b, z4.b}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st3b {z2.b, z3.b, z4.b}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/st3d-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st3d-diagnostics.s +++ test/MC/AArch64/SVE/st3d-diagnostics.s @@ -59,13 +59,23 @@ // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st3d {z2.d, z3.d, z4.d}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st3d {z2.d, z3.d, z4.d}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st3d {z2.d, z3.d, z4.d}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st3d {z2.d, z3.d, z4.d}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st3d {z2.d, z3.d, z4.d}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st3d {z2.d, z3.d, z4.d}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/st3h-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st3h-diagnostics.s +++ test/MC/AArch64/SVE/st3h-diagnostics.s @@ -59,13 +59,23 @@ // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st3h {z2.h, z3.h, z4.h}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st3h {z2.h, z3.h, z4.h}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st3h {z2.h, z3.h, z4.h}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st3h {z2.h, z3.h, z4.h}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st3h {z2.h, z3.h, z4.h}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st3h {z2.h, z3.h, z4.h}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/st3w-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st3w-diagnostics.s +++ test/MC/AArch64/SVE/st3w-diagnostics.s @@ -59,13 +59,23 @@ // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st3w {z2.s, z3.s, z4.s}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st3w {z2.s, z3.s, z4.s}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st3w {z2.s, z3.s, z4.s}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st3w {z2.s, z3.s, z4.s}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st3w {z2.s, z3.s, z4.s}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st3w {z2.s, z3.s, z4.s}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/st4b-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st4b-diagnostics.s +++ test/MC/AArch64/SVE/st4b-diagnostics.s @@ -54,13 +54,23 @@ // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st4b {z2.b, z3.b, z4.b, z5.b}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st4b {z2.b, z3.b, z4.b, z5.b}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st4b {z2.b, z3.b, z4.b, z5.b}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st4b {z2.b, z3.b, z4.b, z5.b}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st4b {z2.b, z3.b, z4.b, z5.b}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st4b {z2.b, z3.b, z4.b, z5.b}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/st4d-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st4d-diagnostics.s +++ test/MC/AArch64/SVE/st4d-diagnostics.s @@ -58,15 +58,24 @@ // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: - // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st4d {z2.d, z3.d, z4.d, z5.d}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st4d {z2.d, z3.d, z4.d, z5.d}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st4d {z2.d, z3.d, z4.d, z5.d}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st4d {z2.d, z3.d, z4.d, z5.d}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st4d {z2.d, z3.d, z4.d, z5.d}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st4d {z2.d, z3.d, z4.d, z5.d}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/st4h-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st4h-diagnostics.s +++ test/MC/AArch64/SVE/st4h-diagnostics.s @@ -59,13 +59,23 @@ // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st4h {z2.h, z3.h, z4.h, z5.h}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st4h {z2.h, z3.h, z4.h, z5.h}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st4h {z2.h, z3.h, z4.h, z5.h}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st4h {z2.h, z3.h, z4.h, z5.h}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st4h {z2.h, z3.h, z4.h, z5.h}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st4h {z2.h, z3.h, z4.h, z5.h}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/st4w-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/st4w-diagnostics.s +++ test/MC/AArch64/SVE/st4w-diagnostics.s @@ -59,13 +59,23 @@ // --------------------------------------------------------------------------// -// error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// Invalid predicate st4w {z2.s, z3.s, z4.s, z5.s}, p8, [x15, #10, MUL VL] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: st4w {z2.s, z3.s, z4.s, z5.s}, p8, [x15, #10, MUL VL] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +st4w {z2.s, z3.s, z4.s, z5.s}, p7.b, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st4w {z2.s, z3.s, z4.s, z5.s}, p7.b, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +st4w {z2.s, z3.s, z4.s, z5.s}, p7.q, [x15, #10, MUL VL] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: st4w {z2.s, z3.s, z4.s, z5.s}, p7.q, [x15, #10, MUL VL] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/stnt1b-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/stnt1b-diagnostics.s +++ test/MC/AArch64/SVE/stnt1b-diagnostics.s @@ -34,16 +34,31 @@ // --------------------------------------------------------------------------// -// invalid predicate +// Invalid predicate stnt1b z27.b, p8, [x0] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) // CHECK-NEXT: stnt1b z27.b, p8, [x0] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: -stnt1b z0.h, p0/z, [x0] -// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid element width -// CHECK-NEXT: stnt1b z0.h, p0/z, [x0] +stnt1b z0.b, p0/z, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction +// CHECK-NEXT: stnt1b z0.b, p0/z, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +stnt1b z0.b, p0/m, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction +// CHECK-NEXT: stnt1b z0.b, p0/m, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +stnt1b z27.b, p7.b, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: stnt1b z27.b, p7.b, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +stnt1b z27.b, p7.q, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: stnt1b z27.b, p7.q, [x0] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: Index: test/MC/AArch64/SVE/stnt1d-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/stnt1d-diagnostics.s +++ test/MC/AArch64/SVE/stnt1d-diagnostics.s @@ -34,7 +34,7 @@ // --------------------------------------------------------------------------// -// invalid predicate +// Invalid predicate stnt1d z27.d, p8, [x0] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) @@ -46,6 +46,21 @@ // CHECK-NEXT: stnt1d z0.d, p0/z, [x0] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +stnt1d z0.d, p0/m, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction +// CHECK-NEXT: stnt1d z0.d, p0/m, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +stnt1d z0.d, p7.b, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: stnt1d z0.d, p7.b, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +stnt1d z0.d, p7.q, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: stnt1d z0.d, p7.q, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/stnt1h-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/stnt1h-diagnostics.s +++ test/MC/AArch64/SVE/stnt1h-diagnostics.s @@ -34,7 +34,7 @@ // --------------------------------------------------------------------------// -// invalid predicate +// Invalid predicate stnt1h z27.h, p8, [x0] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) @@ -46,6 +46,21 @@ // CHECK-NEXT: stnt1h z0.h, p0/z, [x0] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +stnt1h z0.h, p0/m, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction +// CHECK-NEXT: stnt1h z0.h, p0/m, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +stnt1h z0.h, p7.b, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: stnt1h z0.h, p7.b, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +stnt1h z0.h, p7.q, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: stnt1h z0.h, p7.q, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/stnt1w-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/stnt1w-diagnostics.s +++ test/MC/AArch64/SVE/stnt1w-diagnostics.s @@ -34,7 +34,7 @@ // --------------------------------------------------------------------------// -// invalid predicate +// Invalid predicate stnt1w z27.s, p8, [x0] // CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) @@ -46,6 +46,21 @@ // CHECK-NEXT: stnt1w z0.s, p0/z, [x0] // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +stnt1w z0.s, p0/m, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction +// CHECK-NEXT: stnt1w z0.s, p0/m, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +stnt1w z0.s, p7.b, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: stnt1w z0.s, p7.b, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +stnt1w z0.s, p7.q, [x0] +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: stnt1w z0.s, p7.q, [x0] +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Invalid vector list. Index: test/MC/AArch64/SVE/uaddv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/uaddv-diagnostics.s +++ test/MC/AArch64/SVE/uaddv-diagnostics.s @@ -28,6 +28,17 @@ // CHECK-NEXT: uaddv d0, p8, z31.b // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +uaddv d0, p7.b, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: uaddv d0, p7.b, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +uaddv d0, p7.q, z31.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: uaddv d0, p7.q, z31.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/umaxv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/umaxv-diagnostics.s +++ test/MC/AArch64/SVE/umaxv-diagnostics.s @@ -33,6 +33,17 @@ // CHECK-NEXT: umaxv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +umaxv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: umaxv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +umaxv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: umaxv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/uminv-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/uminv-diagnostics.s +++ test/MC/AArch64/SVE/uminv-diagnostics.s @@ -33,6 +33,17 @@ // CHECK-NEXT: uminv h0, p8, z31.h // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +uminv h0, p7.b, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: uminv h0, p7.b, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +uminv h0, p7.q, z31.h +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid restricted predicate register, expected p0..p7 (without element suffix) +// CHECK-NEXT: uminv h0, p7.q, z31.h +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/uqdecp-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/uqdecp-diagnostics.s +++ test/MC/AArch64/SVE/uqdecp-diagnostics.s @@ -1,5 +1,15 @@ // RUN: not llvm-mc -triple=aarch64-none-linux-gnu -show-encoding -mattr=+sve 2>&1 < %s | FileCheck %s +uqdecp z0.d, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: uqdecp z0.d, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +uqdecp z0.d, p0.q +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: uqdecp z0.d, p0.q +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx Index: test/MC/AArch64/SVE/uqincp-diagnostics.s =================================================================== --- test/MC/AArch64/SVE/uqincp-diagnostics.s +++ test/MC/AArch64/SVE/uqincp-diagnostics.s @@ -47,6 +47,16 @@ // CHECK-NEXT: uqincp x0, p0.q // CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: +uqincp z0.d, p0.b +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: uqincp z0.d, p0.b +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + +uqincp z0.d, p0.q +// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate register +// CHECK-NEXT: uqincp z0.d, p0.q +// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}: + // --------------------------------------------------------------------------// // Negative tests for instructions that are incompatible with movprfx