Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,8 @@ class AArch64Operand : public MCParsedAsmOperand {
return (Val >= 0 && Val < 64);
}

template <int Width> bool isSImm() const {
return bool(isSImmScaled<Width, 1>());
template <int Width> DiagnosticPredicate isSImm() const {
return isSImmScaled<Width, 1>();
}

template <int Bits, int Scale> DiagnosticPredicate isSImmScaled() const {
Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/AArch64/SME/addspl-diagnostics.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ addspl x19, x14, #32

// addspl requires an immediate, not a register.
addspl x19, x14, x15
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-32, 31].
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: addspl x19, x14, x15
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
2 changes: 1 addition & 1 deletion llvm/test/MC/AArch64/SME/addsvl-diagnostics.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ addsvl x3, x5, #32

// addsvl requires an immediate, not a register.
addsvl x3, x5, x6
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-32, 31].
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: addsvl x3, x5, x6
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
2 changes: 1 addition & 1 deletion llvm/test/MC/AArch64/SME/rdsvl-diagnostics.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ rdsvl x9, #32

// rdsvl requires an immediate, not a register.
rdsvl x9, x10
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-32, 31].
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: rdsvl x9, x10
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
2 changes: 1 addition & 1 deletion llvm/test/MC/AArch64/SVE/addpl-diagnostics.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ addpl x19, x14, #32

// addpl requires an immediate, not a register.
addpl x19, x14, x15
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-32, 31].
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: addpl x19, x14, x15
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
2 changes: 1 addition & 1 deletion llvm/test/MC/AArch64/SVE/addvl-diagnostics.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ addvl x3, x5, #32

// addvl requires an immediate, not a register.
addvl x3, x5, x6
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-32, 31].
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: addvl x3, x5, x6
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
4 changes: 2 additions & 2 deletions llvm/test/MC/AArch64/SVE/index-diagnostics.s
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ index z17.d, x9, #16
// Invalid register

index z17.s, x9, w7
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-16, 15].
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: index z17.s, x9, w7
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

index z17.d, w9, w7
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-16, 15].
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: index z17.d, w9, w7
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:

Expand Down
2 changes: 1 addition & 1 deletion llvm/test/MC/AArch64/SVE/rdvl-diagnostics.s
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ rdvl x9, #32

// rdvl requires an immediate, not a register.
rdvl x9, x10
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: index must be an integer in range [-32, 31].
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand for instruction
// CHECK-NEXT: rdvl x9, x10
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
2 changes: 1 addition & 1 deletion llvm/test/MC/AArch64/arm64-diags.s
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ ldr q1, [x3, w3, sxtw #1]
; CHECK-ERRORS: error: expected 'uxtw' or 'sxtw' with optional shift of #0 or #3
; CHECK-ERRORS: str d1, [x3, w3, sxtx #3]
; CHECK-ERRORS: ^
; CHECK-ERRORS: error: index must be an integer in range [-256, 255].
; CHECK-ERRORS: error: index must be a multiple of 4 in range [0, 16380].
; CHECK-ERRORS: ldr s1, [x3, d3, sxtx #2]
; CHECK-ERRORS: ^

Expand Down