// RUN: not llvm-mc -triple aarch64-none-linux-gnu -show-encoding -mattr=+v8.4a < %s 2>&1 | FileCheck %s --check-prefix=CHECK-ERROR
//------------------------------------------------------------------------------
// Armv8.4-A LDAPR and STLR instructions with immediate offsets
//------------------------------------------------------------------------------
STLURB SP, [X1, ldapurb SP, [x12, STLURB W1, [XZR,
STLURB W1, [X10, stlurb w2, [x11, STLURB W3, [SP,
ldapurb w4, [x12, LDAPURB W5, [X13, LDAPURB W6, [SP,
LDAPURSB W7, [X14, ldapursb w8, [x15, ldapursb w9, [sp,
LDAPURSB X0, [X16, LDAPURSB X1, [X17, ldapursb x2, [sp,
stlurh w10, [x18, STLURH W11, [X19, STLURH W12, [SP,
LDAPURH W13, [X20, ldapurh w14, [x21, LDAPURH W15, [SP,
LDAPURSH W16, [X22, LDAPURSH W17, [X23, ldapursh w18, [sp,
ldapursh x3, [x24, LDAPURSH X4, [X25, LDAPURSH X5, [SP,
STLUR W19, [X26, stlur w20, [x27, STLUR W21, [SP,
LDAPUR W22, [X28, LDAPUR W23, [X29, ldapur w24, [sp,
ldapursw x6, [x30, LDAPURSW X7, [X0, LDAPURSW X8, [SP,
STLUR X9, [X1, stlur x10, [x2, STLUR X11, [SP,
LDAPUR X12, [X3, LDAPUR X13, [X4, ldapur x14, [sp,
//CHECK-ERROR: error: invalid operand for instruction
//CHECK-ERROR-NEXT: STLURB SP, [X1, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: invalid operand for instruction
//CHECK-ERROR-NEXT: ldapurb SP, [x12, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: invalid operand for instruction
//CHECK-ERROR-NEXT: STLURB W1, [XZR, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: STLURB W1, [X10, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: stlurb w2, [x11, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: STLURB W3, [SP, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: ldapurb w4, [x12, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURB W5, [X13, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURB W6, [SP, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURSB W7, [X14, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: ldapursb w8, [x15, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: ldapursb w9, [sp, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURSB X0, [X16, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURSB X1, [X17, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: ldapursb x2, [sp, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: stlurh w10, [x18, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: STLURH W11, [X19, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: STLURH W12, [SP, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURH W13, [X20, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: ldapurh w14, [x21, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURH W15, [SP, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURSH W16, [X22, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURSH W17, [X23, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: ldapursh w18, [sp, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: ldapursh x3, [x24, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURSH X4, [X25, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURSH X5, [SP, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: STLUR W19, [X26, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: stlur w20, [x27, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: STLUR W21, [SP, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPUR W22, [X28, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPUR W23, [X29, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: ldapur w24, [sp, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: ldapursw x6, [x30, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURSW X7, [X0, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPURSW X8, [SP, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: STLUR X9, [X1, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: stlur x10, [x2, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: STLUR X11, [SP, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPUR X12, [X3, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: LDAPUR X13, [X4, //CHECK-ERROR-NEXT: ^
//CHECK-ERROR-NEXT: error: index must be an integer in range [-256, 255].
//CHECK-ERROR-NEXT: ldapur x14, [sp, //CHECK-ERROR-NEXT: ^