Skip to content

Commit 38d82ac

Browse files
committed
[AArch64][SVE] Asm: Support for saturating INC/DEC (32bit scalar) instructions.
The variants added by this patch are: - SQINC signed increment, e.g. sqinc x0, w0, all, mul brson#4 - SQDEC signed decrement, e.g. sqdec x0, w0, all, mul brson#4 - UQINC unsigned increment, e.g. uqinc w0, all, mul brson#4 - UQDEC unsigned decrement, e.g. uqdec w0, all, mul brson#4 This patch includes asmparser changes to parse a GPR64 as a GPR32 in order to satisfy the constraint check: x0 == GPR64(w0) in: sqinc x0, w0, all, mul brson#4 ^___^ (must match) Reviewers: rengolin, fhahn, SjoerdMeijer, samparker, javed.absar Reviewed By: fhahn Differential Revision: https://reviews.llvm.org/D47716 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334980 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 2fff458 commit 38d82ac

38 files changed

+1068
-54
lines changed

lib/Target/AArch64/AArch64InstrFormats.td

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,23 @@ def CondCode : AsmOperandClass {
179179
// A 32-bit register pasrsed as 64-bit
180180
def GPR32as64Operand : AsmOperandClass {
181181
let Name = "GPR32as64";
182+
let ParserMethod =
183+
"tryParseGPROperand<false, RegConstraintEqualityTy::EqualsSubReg>";
182184
}
183185
def GPR32as64 : RegisterOperand<GPR32> {
184186
let ParserMatchClass = GPR32as64Operand;
185187
}
186188

189+
// A 64-bit register pasrsed as 32-bit
190+
def GPR64as32Operand : AsmOperandClass {
191+
let Name = "GPR64as32";
192+
let ParserMethod =
193+
"tryParseGPROperand<false, RegConstraintEqualityTy::EqualsSuperReg>";
194+
}
195+
def GPR64as32 : RegisterOperand<GPR64, "printGPR64as32"> {
196+
let ParserMatchClass = GPR64as32Operand;
197+
}
198+
187199
// 8-bit immediate for AdvSIMD where 64-bit values of the form:
188200
// aaaaaaaa bbbbbbbb cccccccc dddddddd eeeeeeee ffffffff gggggggg hhhhhhhh
189201
// are encoded as the eight bit value 'abcdefgh'.

lib/Target/AArch64/AArch64SVEInstrInfo.td

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,21 +527,37 @@ let Predicates = [HasSVE] in {
527527
defm CMPLO_WIDE_PPzZZ : sve_int_cmp_1_wide<0b110, "cmplo">;
528528
defm CMPLS_WIDE_PPzZZ : sve_int_cmp_1_wide<0b111, "cmpls">;
529529

530+
defm SQINCB_XPiWdI : sve_int_pred_pattern_b_s32<0b00000, "sqincb">;
531+
defm UQINCB_WPiI : sve_int_pred_pattern_b_u32<0b00001, "uqincb">;
532+
defm SQDECB_XPiWdI : sve_int_pred_pattern_b_s32<0b00010, "sqdecb">;
533+
defm UQDECB_WPiI : sve_int_pred_pattern_b_u32<0b00011, "uqdecb">;
530534
defm SQINCB_XPiI : sve_int_pred_pattern_b_x64<0b00100, "sqincb">;
531535
defm UQINCB_XPiI : sve_int_pred_pattern_b_x64<0b00101, "uqincb">;
532536
defm SQDECB_XPiI : sve_int_pred_pattern_b_x64<0b00110, "sqdecb">;
533537
defm UQDECB_XPiI : sve_int_pred_pattern_b_x64<0b00111, "uqdecb">;
534538

539+
defm SQINCH_XPiWdI : sve_int_pred_pattern_b_s32<0b01000, "sqinch">;
540+
defm UQINCH_WPiI : sve_int_pred_pattern_b_u32<0b01001, "uqinch">;
541+
defm SQDECH_XPiWdI : sve_int_pred_pattern_b_s32<0b01010, "sqdech">;
542+
defm UQDECH_WPiI : sve_int_pred_pattern_b_u32<0b01011, "uqdech">;
535543
defm SQINCH_XPiI : sve_int_pred_pattern_b_x64<0b01100, "sqinch">;
536544
defm UQINCH_XPiI : sve_int_pred_pattern_b_x64<0b01101, "uqinch">;
537545
defm SQDECH_XPiI : sve_int_pred_pattern_b_x64<0b01110, "sqdech">;
538546
defm UQDECH_XPiI : sve_int_pred_pattern_b_x64<0b01111, "uqdech">;
539547

548+
defm SQINCW_XPiWdI : sve_int_pred_pattern_b_s32<0b10000, "sqincw">;
549+
defm UQINCW_WPiI : sve_int_pred_pattern_b_u32<0b10001, "uqincw">;
550+
defm SQDECW_XPiWdI : sve_int_pred_pattern_b_s32<0b10010, "sqdecw">;
551+
defm UQDECW_WPiI : sve_int_pred_pattern_b_u32<0b10011, "uqdecw">;
540552
defm SQINCW_XPiI : sve_int_pred_pattern_b_x64<0b10100, "sqincw">;
541553
defm UQINCW_XPiI : sve_int_pred_pattern_b_x64<0b10101, "uqincw">;
542554
defm SQDECW_XPiI : sve_int_pred_pattern_b_x64<0b10110, "sqdecw">;
543555
defm UQDECW_XPiI : sve_int_pred_pattern_b_x64<0b10111, "uqdecw">;
544556

557+
defm SQINCD_XPiWdI : sve_int_pred_pattern_b_s32<0b11000, "sqincd">;
558+
defm UQINCD_WPiI : sve_int_pred_pattern_b_u32<0b11001, "uqincd">;
559+
defm SQDECD_XPiWdI : sve_int_pred_pattern_b_s32<0b11010, "sqdecd">;
560+
defm UQDECD_WPiI : sve_int_pred_pattern_b_u32<0b11011, "uqdecd">;
545561
defm SQINCD_XPiI : sve_int_pred_pattern_b_x64<0b11100, "sqincd">;
546562
defm UQINCD_XPiI : sve_int_pred_pattern_b_x64<0b11101, "uqincd">;
547563
defm SQDECD_XPiI : sve_int_pred_pattern_b_x64<0b11110, "sqdecd">;

lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp

Lines changed: 88 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,12 @@ enum class RegKind {
6666
SVEPredicateVector
6767
};
6868

69+
enum RegConstraintEqualityTy {
70+
EqualsReg,
71+
EqualsSuperReg,
72+
EqualsSubReg
73+
};
74+
6975
class AArch64AsmParser : public MCTargetAsmParser {
7076
private:
7177
StringRef Mnemonic; ///< Instruction mnemonic.
@@ -92,7 +98,8 @@ class AArch64AsmParser : public MCTargetAsmParser {
9298
bool parseOperand(OperandVector &Operands, bool isCondCode,
9399
bool invertCondCode);
94100

95-
bool showMatchError(SMLoc Loc, unsigned ErrCode, OperandVector &Operands);
101+
bool showMatchError(SMLoc Loc, unsigned ErrCode, uint64_t ErrorInfo,
102+
OperandVector &Operands);
96103

97104
bool parseDirectiveArch(SMLoc L);
98105
bool parseDirectiveCPU(SMLoc L);
@@ -139,7 +146,8 @@ class AArch64AsmParser : public MCTargetAsmParser {
139146
bool tryParseNeonVectorRegister(OperandVector &Operands);
140147
OperandMatchResultTy tryParseVectorIndex(OperandVector &Operands);
141148
OperandMatchResultTy tryParseGPRSeqPair(OperandVector &Operands);
142-
template <bool ParseShiftExtend>
149+
template <bool ParseShiftExtend,
150+
RegConstraintEqualityTy EqTy = RegConstraintEqualityTy::EqualsReg>
143151
OperandMatchResultTy tryParseGPROperand(OperandVector &Operands);
144152
template <bool ParseShiftExtend, bool ParseSuffix>
145153
OperandMatchResultTy tryParseSVEDataVector(OperandVector &Operands);
@@ -177,6 +185,8 @@ class AArch64AsmParser : public MCTargetAsmParser {
177185
setAvailableFeatures(ComputeAvailableFeatures(getSTI().getFeatureBits()));
178186
}
179187

188+
bool regsEqual(const MCParsedAsmOperand &Op1,
189+
const MCParsedAsmOperand &Op2) const override;
180190
bool ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
181191
SMLoc NameLoc, OperandVector &Operands) override;
182192
bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
@@ -231,6 +241,10 @@ class AArch64Operand : public MCParsedAsmOperand {
231241
RegKind Kind;
232242
int ElementWidth;
233243

244+
// The register may be allowed as a different register class,
245+
// e.g. for GPR64as32 or GPR32as64.
246+
RegConstraintEqualityTy EqualityTy;
247+
234248
// In some cases the shift/extend needs to be explicitly parsed together
235249
// with the register, rather than as a separate operand. This is needed
236250
// for addressing modes where the instruction as a whole dictates the
@@ -446,6 +460,11 @@ class AArch64Operand : public MCParsedAsmOperand {
446460
return Reg.RegNum;
447461
}
448462

463+
RegConstraintEqualityTy getRegEqualityTy() const {
464+
assert(Kind == k_Register && "Invalid access!");
465+
return Reg.EqualityTy;
466+
}
467+
449468
unsigned getVectorListStart() const {
450469
assert(Kind == k_VectorList && "Invalid access!");
451470
return VectorList.RegNum;
@@ -1002,6 +1021,11 @@ class AArch64Operand : public MCParsedAsmOperand {
10021021
AArch64MCRegisterClasses[AArch64::GPR64RegClassID].contains(Reg.RegNum);
10031022
}
10041023

1024+
bool isGPR64as32() const {
1025+
return Kind == k_Register && Reg.Kind == RegKind::Scalar &&
1026+
AArch64MCRegisterClasses[AArch64::GPR32RegClassID].contains(Reg.RegNum);
1027+
}
1028+
10051029
bool isWSeqPair() const {
10061030
return Kind == k_Register && Reg.Kind == RegKind::Scalar &&
10071031
AArch64MCRegisterClasses[AArch64::WSeqPairsClassRegClassID].contains(
@@ -1318,6 +1342,18 @@ class AArch64Operand : public MCParsedAsmOperand {
13181342
Inst.addOperand(MCOperand::createReg(Reg));
13191343
}
13201344

1345+
void addGPR64as32Operands(MCInst &Inst, unsigned N) const {
1346+
assert(N == 1 && "Invalid number of operands!");
1347+
assert(
1348+
AArch64MCRegisterClasses[AArch64::GPR32RegClassID].contains(getReg()));
1349+
1350+
const MCRegisterInfo *RI = Ctx.getRegisterInfo();
1351+
uint32_t Reg = RI->getRegClass(AArch64::GPR64RegClassID).getRegister(
1352+
RI->getEncodingValue(getReg()));
1353+
1354+
Inst.addOperand(MCOperand::createReg(Reg));
1355+
}
1356+
13211357
template <int Width>
13221358
void addFPRasZPRRegOperands(MCInst &Inst, unsigned N) const {
13231359
unsigned Base;
@@ -1668,13 +1704,15 @@ class AArch64Operand : public MCParsedAsmOperand {
16681704

16691705
static std::unique_ptr<AArch64Operand>
16701706
CreateReg(unsigned RegNum, RegKind Kind, SMLoc S, SMLoc E, MCContext &Ctx,
1707+
RegConstraintEqualityTy EqTy = RegConstraintEqualityTy::EqualsReg,
16711708
AArch64_AM::ShiftExtendType ExtTy = AArch64_AM::LSL,
16721709
unsigned ShiftAmount = 0,
16731710
unsigned HasExplicitAmount = false) {
16741711
auto Op = make_unique<AArch64Operand>(k_Register, Ctx);
16751712
Op->Reg.RegNum = RegNum;
16761713
Op->Reg.Kind = Kind;
16771714
Op->Reg.ElementWidth = 0;
1715+
Op->Reg.EqualityTy = EqTy;
16781716
Op->Reg.ShiftExtend.Type = ExtTy;
16791717
Op->Reg.ShiftExtend.Amount = ShiftAmount;
16801718
Op->Reg.ShiftExtend.HasExplicitAmount = HasExplicitAmount;
@@ -1692,7 +1730,7 @@ class AArch64Operand : public MCParsedAsmOperand {
16921730
assert((Kind == RegKind::NeonVector || Kind == RegKind::SVEDataVector ||
16931731
Kind == RegKind::SVEPredicateVector) &&
16941732
"Invalid vector kind");
1695-
auto Op = CreateReg(RegNum, Kind, S, E, Ctx, ExtTy, ShiftAmount,
1733+
auto Op = CreateReg(RegNum, Kind, S, E, Ctx, EqualsReg, ExtTy, ShiftAmount,
16961734
HasExplicitAmount);
16971735
Op->Reg.ElementWidth = ElementWidth;
16981736
return Op;
@@ -3164,7 +3202,7 @@ AArch64AsmParser::tryParseGPR64sp0Operand(OperandVector &Operands) {
31643202
return MatchOperand_Success;
31653203
}
31663204

3167-
template <bool ParseShiftExtend>
3205+
template <bool ParseShiftExtend, RegConstraintEqualityTy EqTy>
31683206
OperandMatchResultTy
31693207
AArch64AsmParser::tryParseGPROperand(OperandVector &Operands) {
31703208
SMLoc StartLoc = getLoc();
@@ -3177,7 +3215,7 @@ AArch64AsmParser::tryParseGPROperand(OperandVector &Operands) {
31773215
// No shift/extend is the default.
31783216
if (!ParseShiftExtend || getParser().getTok().isNot(AsmToken::Comma)) {
31793217
Operands.push_back(AArch64Operand::CreateReg(
3180-
RegNum, RegKind::Scalar, StartLoc, getLoc(), getContext()));
3218+
RegNum, RegKind::Scalar, StartLoc, getLoc(), getContext(), EqTy));
31813219
return MatchOperand_Success;
31823220
}
31833221

@@ -3191,10 +3229,10 @@ AArch64AsmParser::tryParseGPROperand(OperandVector &Operands) {
31913229
return Res;
31923230

31933231
auto Ext = static_cast<AArch64Operand*>(ExtOpnd.back().get());
3194-
Operands.push_back(AArch64Operand::CreateReg(RegNum, RegKind::Scalar,
3195-
StartLoc, Ext->getEndLoc(), getContext(),
3196-
Ext->getShiftExtendType(), Ext->getShiftExtendAmount(),
3197-
Ext->hasShiftExtendAmount()));
3232+
Operands.push_back(AArch64Operand::CreateReg(
3233+
RegNum, RegKind::Scalar, StartLoc, Ext->getEndLoc(), getContext(), EqTy,
3234+
Ext->getShiftExtendType(), Ext->getShiftExtendAmount(),
3235+
Ext->hasShiftExtendAmount()));
31983236

31993237
return MatchOperand_Success;
32003238
}
@@ -3412,6 +3450,30 @@ bool AArch64AsmParser::parseOperand(OperandVector &Operands, bool isCondCode,
34123450
}
34133451
}
34143452

3453+
bool AArch64AsmParser::regsEqual(const MCParsedAsmOperand &Op1,
3454+
const MCParsedAsmOperand &Op2) const {
3455+
auto &AOp1 = static_cast<const AArch64Operand&>(Op1);
3456+
auto &AOp2 = static_cast<const AArch64Operand&>(Op2);
3457+
if (AOp1.getRegEqualityTy() == RegConstraintEqualityTy::EqualsReg &&
3458+
AOp2.getRegEqualityTy() == RegConstraintEqualityTy::EqualsReg)
3459+
return MCTargetAsmParser::regsEqual(Op1, Op2);
3460+
3461+
assert(AOp1.isScalarReg() && AOp2.isScalarReg() &&
3462+
"Testing equality of non-scalar registers not supported");
3463+
3464+
// Check if a registers match their sub/super register classes.
3465+
if (AOp1.getRegEqualityTy() == EqualsSuperReg)
3466+
return getXRegFromWReg(Op1.getReg()) == Op2.getReg();
3467+
if (AOp1.getRegEqualityTy() == EqualsSubReg)
3468+
return getWRegFromXReg(Op1.getReg()) == Op2.getReg();
3469+
if (AOp2.getRegEqualityTy() == EqualsSuperReg)
3470+
return getXRegFromWReg(Op2.getReg()) == Op1.getReg();
3471+
if (AOp2.getRegEqualityTy() == EqualsSubReg)
3472+
return getWRegFromXReg(Op2.getReg()) == Op1.getReg();
3473+
3474+
return false;
3475+
}
3476+
34153477
/// ParseInstruction - Parse an AArch64 instruction mnemonic followed by its
34163478
/// operands.
34173479
bool AArch64AsmParser::ParseInstruction(ParseInstructionInfo &Info,
@@ -3765,10 +3827,22 @@ static std::string AArch64MnemonicSpellCheck(StringRef S, uint64_t FBS,
37653827
unsigned VariantID = 0);
37663828

37673829
bool AArch64AsmParser::showMatchError(SMLoc Loc, unsigned ErrCode,
3830+
uint64_t ErrorInfo,
37683831
OperandVector &Operands) {
37693832
switch (ErrCode) {
3770-
case Match_InvalidTiedOperand:
3771-
return Error(Loc, "operand must match destination register");
3833+
case Match_InvalidTiedOperand: {
3834+
RegConstraintEqualityTy EqTy =
3835+
static_cast<const AArch64Operand &>(*Operands[ErrorInfo])
3836+
.getRegEqualityTy();
3837+
switch (EqTy) {
3838+
case RegConstraintEqualityTy::EqualsSubReg:
3839+
return Error(Loc, "operand must be 64-bit form of destination register");
3840+
case RegConstraintEqualityTy::EqualsSuperReg:
3841+
return Error(Loc, "operand must be 32-bit form of destination register");
3842+
case RegConstraintEqualityTy::EqualsReg:
3843+
return Error(Loc, "operand must match destination register");
3844+
}
3845+
}
37723846
case Match_MissingFeature:
37733847
return Error(Loc,
37743848
"instruction requires a CPU feature not currently enabled");
@@ -4389,7 +4463,7 @@ bool AArch64AsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
43894463
return Error(IDLoc, Msg);
43904464
}
43914465
case Match_MnemonicFail:
4392-
return showMatchError(IDLoc, MatchResult, Operands);
4466+
return showMatchError(IDLoc, MatchResult, ErrorInfo, Operands);
43934467
case Match_InvalidOperand: {
43944468
SMLoc ErrorLoc = IDLoc;
43954469

@@ -4408,7 +4482,7 @@ bool AArch64AsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
44084482
((AArch64Operand &)*Operands[ErrorInfo]).isTokenSuffix())
44094483
MatchResult = Match_InvalidSuffix;
44104484

4411-
return showMatchError(ErrorLoc, MatchResult, Operands);
4485+
return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands);
44124486
}
44134487
case Match_InvalidTiedOperand:
44144488
case Match_InvalidMemoryIndexed1:
@@ -4546,7 +4620,7 @@ bool AArch64AsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
45464620
SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc();
45474621
if (ErrorLoc == SMLoc())
45484622
ErrorLoc = IDLoc;
4549-
return showMatchError(ErrorLoc, MatchResult, Operands);
4623+
return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands);
45504624
}
45514625
}
45524626

lib/Target/AArch64/InstPrinter/AArch64InstPrinter.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,3 +1527,10 @@ void AArch64InstPrinter::printExactFPImm(const MCInst *MI, unsigned OpNum,
15271527
unsigned Val = MI->getOperand(OpNum).getImm();
15281528
O << "#" << (Val ? Imm1Desc->Repr : Imm0Desc->Repr);
15291529
}
1530+
1531+
void AArch64InstPrinter::printGPR64as32(const MCInst *MI, unsigned OpNum,
1532+
const MCSubtargetInfo &STI,
1533+
raw_ostream &O) {
1534+
unsigned Reg = MI->getOperand(OpNum).getReg();
1535+
O << getRegisterName(getWRegFromXReg(Reg));
1536+
}

lib/Target/AArch64/InstPrinter/AArch64InstPrinter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ class AArch64InstPrinter : public MCInstPrinter {
180180
template <char = 0>
181181
void printSVERegOp(const MCInst *MI, unsigned OpNum,
182182
const MCSubtargetInfo &STI, raw_ostream &O);
183+
void printGPR64as32(const MCInst *MI, unsigned OpNum,
184+
const MCSubtargetInfo &STI, raw_ostream &O);
183185
template <int Width>
184186
void printZPRasFPR(const MCInst *MI, unsigned OpNum,
185187
const MCSubtargetInfo &STI, raw_ostream &O);

lib/Target/AArch64/SVEInstrFormats.td

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,32 @@ class sve_int_pred_pattern_b<bits<5> opc, string asm, RegisterOperand dt,
333333
let Inst{9-5} = pattern;
334334
let Inst{4-0} = Rdn;
335335

336+
// Signed 32bit forms require their GPR operand printed.
337+
let AsmString = !if(!eq(opc{2,0}, 0b00),
338+
!strconcat(asm, "\t$Rdn, $_Rdn, $pattern, mul $imm4"),
339+
!strconcat(asm, "\t$Rdn, $pattern, mul $imm4"));
340+
336341
let Constraints = "$Rdn = $_Rdn";
337342
}
338343

344+
multiclass sve_int_pred_pattern_b_s32<bits<5> opc, string asm> {
345+
def NAME : sve_int_pred_pattern_b<opc, asm, GPR64z, GPR64as32>;
346+
347+
def : InstAlias<asm # "\t$Rd, $Rn, $pattern",
348+
(!cast<Instruction>(NAME) GPR64z:$Rd, GPR64as32:$Rn, sve_pred_enum:$pattern, 1), 1>;
349+
def : InstAlias<asm # "\t$Rd, $Rn",
350+
(!cast<Instruction>(NAME) GPR64z:$Rd, GPR64as32:$Rn, 0b11111, 1), 2>;
351+
}
352+
353+
multiclass sve_int_pred_pattern_b_u32<bits<5> opc, string asm> {
354+
def NAME : sve_int_pred_pattern_b<opc, asm, GPR32z, GPR32z>;
355+
356+
def : InstAlias<asm # "\t$Rdn, $pattern",
357+
(!cast<Instruction>(NAME) GPR32z:$Rdn, sve_pred_enum:$pattern, 1), 1>;
358+
def : InstAlias<asm # "\t$Rdn",
359+
(!cast<Instruction>(NAME) GPR32z:$Rdn, 0b11111, 1), 2>;
360+
}
361+
339362
multiclass sve_int_pred_pattern_b_x64<bits<5> opc, string asm> {
340363
def NAME : sve_int_pred_pattern_b<opc, asm, GPR64z, GPR64z>;
341364

test/MC/AArch64/SVE/sqdecb-diagnostics.s

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,20 @@ sqdecb sp
1919
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
2020

2121

22+
// ------------------------------------------------------------------------- //
23+
// Operands not matching up
24+
25+
sqdecb x0, w1
26+
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be 32-bit form of destination register
27+
// CHECK-NEXT: sqdecb x0, w1
28+
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
29+
30+
sqdecb x0, x1
31+
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
32+
// CHECK-NEXT: sqdecb x0, x1
33+
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
34+
35+
2236
// ------------------------------------------------------------------------- //
2337
// Immediate not compatible with encode/decode function.
2438

0 commit comments

Comments
 (0)