mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Reapply r334980 and r334983.
These patches were previously reverted as they led to buildbot time-outs caused by large switch statement in printAliasInstr when using UBSan and O3. The issue has been addressed with a workaround (r335525). llvm-svn: 336079
This commit is contained in:
parent
b1f4aecf8e
commit
703f486b92
@ -179,11 +179,23 @@ def CondCode : AsmOperandClass {
|
|||||||
// A 32-bit register pasrsed as 64-bit
|
// A 32-bit register pasrsed as 64-bit
|
||||||
def GPR32as64Operand : AsmOperandClass {
|
def GPR32as64Operand : AsmOperandClass {
|
||||||
let Name = "GPR32as64";
|
let Name = "GPR32as64";
|
||||||
|
let ParserMethod =
|
||||||
|
"tryParseGPROperand<false, RegConstraintEqualityTy::EqualsSubReg>";
|
||||||
}
|
}
|
||||||
def GPR32as64 : RegisterOperand<GPR32> {
|
def GPR32as64 : RegisterOperand<GPR32> {
|
||||||
let ParserMatchClass = GPR32as64Operand;
|
let ParserMatchClass = GPR32as64Operand;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// A 64-bit register pasrsed as 32-bit
|
||||||
|
def GPR64as32Operand : AsmOperandClass {
|
||||||
|
let Name = "GPR64as32";
|
||||||
|
let ParserMethod =
|
||||||
|
"tryParseGPROperand<false, RegConstraintEqualityTy::EqualsSuperReg>";
|
||||||
|
}
|
||||||
|
def GPR64as32 : RegisterOperand<GPR64, "printGPR64as32"> {
|
||||||
|
let ParserMatchClass = GPR64as32Operand;
|
||||||
|
}
|
||||||
|
|
||||||
// 8-bit immediate for AdvSIMD where 64-bit values of the form:
|
// 8-bit immediate for AdvSIMD where 64-bit values of the form:
|
||||||
// aaaaaaaa bbbbbbbb cccccccc dddddddd eeeeeeee ffffffff gggggggg hhhhhhhh
|
// aaaaaaaa bbbbbbbb cccccccc dddddddd eeeeeeee ffffffff gggggggg hhhhhhhh
|
||||||
// are encoded as the eight bit value 'abcdefgh'.
|
// are encoded as the eight bit value 'abcdefgh'.
|
||||||
|
@ -527,21 +527,37 @@ let Predicates = [HasSVE] in {
|
|||||||
defm CMPLO_WIDE_PPzZZ : sve_int_cmp_1_wide<0b110, "cmplo">;
|
defm CMPLO_WIDE_PPzZZ : sve_int_cmp_1_wide<0b110, "cmplo">;
|
||||||
defm CMPLS_WIDE_PPzZZ : sve_int_cmp_1_wide<0b111, "cmpls">;
|
defm CMPLS_WIDE_PPzZZ : sve_int_cmp_1_wide<0b111, "cmpls">;
|
||||||
|
|
||||||
|
defm SQINCB_XPiWdI : sve_int_pred_pattern_b_s32<0b00000, "sqincb">;
|
||||||
|
defm UQINCB_WPiI : sve_int_pred_pattern_b_u32<0b00001, "uqincb">;
|
||||||
|
defm SQDECB_XPiWdI : sve_int_pred_pattern_b_s32<0b00010, "sqdecb">;
|
||||||
|
defm UQDECB_WPiI : sve_int_pred_pattern_b_u32<0b00011, "uqdecb">;
|
||||||
defm SQINCB_XPiI : sve_int_pred_pattern_b_x64<0b00100, "sqincb">;
|
defm SQINCB_XPiI : sve_int_pred_pattern_b_x64<0b00100, "sqincb">;
|
||||||
defm UQINCB_XPiI : sve_int_pred_pattern_b_x64<0b00101, "uqincb">;
|
defm UQINCB_XPiI : sve_int_pred_pattern_b_x64<0b00101, "uqincb">;
|
||||||
defm SQDECB_XPiI : sve_int_pred_pattern_b_x64<0b00110, "sqdecb">;
|
defm SQDECB_XPiI : sve_int_pred_pattern_b_x64<0b00110, "sqdecb">;
|
||||||
defm UQDECB_XPiI : sve_int_pred_pattern_b_x64<0b00111, "uqdecb">;
|
defm UQDECB_XPiI : sve_int_pred_pattern_b_x64<0b00111, "uqdecb">;
|
||||||
|
|
||||||
|
defm SQINCH_XPiWdI : sve_int_pred_pattern_b_s32<0b01000, "sqinch">;
|
||||||
|
defm UQINCH_WPiI : sve_int_pred_pattern_b_u32<0b01001, "uqinch">;
|
||||||
|
defm SQDECH_XPiWdI : sve_int_pred_pattern_b_s32<0b01010, "sqdech">;
|
||||||
|
defm UQDECH_WPiI : sve_int_pred_pattern_b_u32<0b01011, "uqdech">;
|
||||||
defm SQINCH_XPiI : sve_int_pred_pattern_b_x64<0b01100, "sqinch">;
|
defm SQINCH_XPiI : sve_int_pred_pattern_b_x64<0b01100, "sqinch">;
|
||||||
defm UQINCH_XPiI : sve_int_pred_pattern_b_x64<0b01101, "uqinch">;
|
defm UQINCH_XPiI : sve_int_pred_pattern_b_x64<0b01101, "uqinch">;
|
||||||
defm SQDECH_XPiI : sve_int_pred_pattern_b_x64<0b01110, "sqdech">;
|
defm SQDECH_XPiI : sve_int_pred_pattern_b_x64<0b01110, "sqdech">;
|
||||||
defm UQDECH_XPiI : sve_int_pred_pattern_b_x64<0b01111, "uqdech">;
|
defm UQDECH_XPiI : sve_int_pred_pattern_b_x64<0b01111, "uqdech">;
|
||||||
|
|
||||||
|
defm SQINCW_XPiWdI : sve_int_pred_pattern_b_s32<0b10000, "sqincw">;
|
||||||
|
defm UQINCW_WPiI : sve_int_pred_pattern_b_u32<0b10001, "uqincw">;
|
||||||
|
defm SQDECW_XPiWdI : sve_int_pred_pattern_b_s32<0b10010, "sqdecw">;
|
||||||
|
defm UQDECW_WPiI : sve_int_pred_pattern_b_u32<0b10011, "uqdecw">;
|
||||||
defm SQINCW_XPiI : sve_int_pred_pattern_b_x64<0b10100, "sqincw">;
|
defm SQINCW_XPiI : sve_int_pred_pattern_b_x64<0b10100, "sqincw">;
|
||||||
defm UQINCW_XPiI : sve_int_pred_pattern_b_x64<0b10101, "uqincw">;
|
defm UQINCW_XPiI : sve_int_pred_pattern_b_x64<0b10101, "uqincw">;
|
||||||
defm SQDECW_XPiI : sve_int_pred_pattern_b_x64<0b10110, "sqdecw">;
|
defm SQDECW_XPiI : sve_int_pred_pattern_b_x64<0b10110, "sqdecw">;
|
||||||
defm UQDECW_XPiI : sve_int_pred_pattern_b_x64<0b10111, "uqdecw">;
|
defm UQDECW_XPiI : sve_int_pred_pattern_b_x64<0b10111, "uqdecw">;
|
||||||
|
|
||||||
|
defm SQINCD_XPiWdI : sve_int_pred_pattern_b_s32<0b11000, "sqincd">;
|
||||||
|
defm UQINCD_WPiI : sve_int_pred_pattern_b_u32<0b11001, "uqincd">;
|
||||||
|
defm SQDECD_XPiWdI : sve_int_pred_pattern_b_s32<0b11010, "sqdecd">;
|
||||||
|
defm UQDECD_WPiI : sve_int_pred_pattern_b_u32<0b11011, "uqdecd">;
|
||||||
defm SQINCD_XPiI : sve_int_pred_pattern_b_x64<0b11100, "sqincd">;
|
defm SQINCD_XPiI : sve_int_pred_pattern_b_x64<0b11100, "sqincd">;
|
||||||
defm UQINCD_XPiI : sve_int_pred_pattern_b_x64<0b11101, "uqincd">;
|
defm UQINCD_XPiI : sve_int_pred_pattern_b_x64<0b11101, "uqincd">;
|
||||||
defm SQDECD_XPiI : sve_int_pred_pattern_b_x64<0b11110, "sqdecd">;
|
defm SQDECD_XPiI : sve_int_pred_pattern_b_x64<0b11110, "sqdecd">;
|
||||||
|
@ -66,6 +66,12 @@ enum class RegKind {
|
|||||||
SVEPredicateVector
|
SVEPredicateVector
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum RegConstraintEqualityTy {
|
||||||
|
EqualsReg,
|
||||||
|
EqualsSuperReg,
|
||||||
|
EqualsSubReg
|
||||||
|
};
|
||||||
|
|
||||||
class AArch64AsmParser : public MCTargetAsmParser {
|
class AArch64AsmParser : public MCTargetAsmParser {
|
||||||
private:
|
private:
|
||||||
StringRef Mnemonic; ///< Instruction mnemonic.
|
StringRef Mnemonic; ///< Instruction mnemonic.
|
||||||
@ -92,7 +98,8 @@ private:
|
|||||||
bool parseOperand(OperandVector &Operands, bool isCondCode,
|
bool parseOperand(OperandVector &Operands, bool isCondCode,
|
||||||
bool invertCondCode);
|
bool invertCondCode);
|
||||||
|
|
||||||
bool showMatchError(SMLoc Loc, unsigned ErrCode, OperandVector &Operands);
|
bool showMatchError(SMLoc Loc, unsigned ErrCode, uint64_t ErrorInfo,
|
||||||
|
OperandVector &Operands);
|
||||||
|
|
||||||
bool parseDirectiveArch(SMLoc L);
|
bool parseDirectiveArch(SMLoc L);
|
||||||
bool parseDirectiveCPU(SMLoc L);
|
bool parseDirectiveCPU(SMLoc L);
|
||||||
@ -139,7 +146,8 @@ private:
|
|||||||
bool tryParseNeonVectorRegister(OperandVector &Operands);
|
bool tryParseNeonVectorRegister(OperandVector &Operands);
|
||||||
OperandMatchResultTy tryParseVectorIndex(OperandVector &Operands);
|
OperandMatchResultTy tryParseVectorIndex(OperandVector &Operands);
|
||||||
OperandMatchResultTy tryParseGPRSeqPair(OperandVector &Operands);
|
OperandMatchResultTy tryParseGPRSeqPair(OperandVector &Operands);
|
||||||
template <bool ParseShiftExtend>
|
template <bool ParseShiftExtend,
|
||||||
|
RegConstraintEqualityTy EqTy = RegConstraintEqualityTy::EqualsReg>
|
||||||
OperandMatchResultTy tryParseGPROperand(OperandVector &Operands);
|
OperandMatchResultTy tryParseGPROperand(OperandVector &Operands);
|
||||||
template <bool ParseShiftExtend, bool ParseSuffix>
|
template <bool ParseShiftExtend, bool ParseSuffix>
|
||||||
OperandMatchResultTy tryParseSVEDataVector(OperandVector &Operands);
|
OperandMatchResultTy tryParseSVEDataVector(OperandVector &Operands);
|
||||||
@ -177,6 +185,8 @@ public:
|
|||||||
setAvailableFeatures(ComputeAvailableFeatures(getSTI().getFeatureBits()));
|
setAvailableFeatures(ComputeAvailableFeatures(getSTI().getFeatureBits()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool regsEqual(const MCParsedAsmOperand &Op1,
|
||||||
|
const MCParsedAsmOperand &Op2) const override;
|
||||||
bool ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
|
bool ParseInstruction(ParseInstructionInfo &Info, StringRef Name,
|
||||||
SMLoc NameLoc, OperandVector &Operands) override;
|
SMLoc NameLoc, OperandVector &Operands) override;
|
||||||
bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
|
bool ParseRegister(unsigned &RegNo, SMLoc &StartLoc, SMLoc &EndLoc) override;
|
||||||
@ -231,6 +241,10 @@ private:
|
|||||||
RegKind Kind;
|
RegKind Kind;
|
||||||
int ElementWidth;
|
int ElementWidth;
|
||||||
|
|
||||||
|
// The register may be allowed as a different register class,
|
||||||
|
// e.g. for GPR64as32 or GPR32as64.
|
||||||
|
RegConstraintEqualityTy EqualityTy;
|
||||||
|
|
||||||
// In some cases the shift/extend needs to be explicitly parsed together
|
// In some cases the shift/extend needs to be explicitly parsed together
|
||||||
// with the register, rather than as a separate operand. This is needed
|
// with the register, rather than as a separate operand. This is needed
|
||||||
// for addressing modes where the instruction as a whole dictates the
|
// for addressing modes where the instruction as a whole dictates the
|
||||||
@ -446,6 +460,11 @@ public:
|
|||||||
return Reg.RegNum;
|
return Reg.RegNum;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
RegConstraintEqualityTy getRegEqualityTy() const {
|
||||||
|
assert(Kind == k_Register && "Invalid access!");
|
||||||
|
return Reg.EqualityTy;
|
||||||
|
}
|
||||||
|
|
||||||
unsigned getVectorListStart() const {
|
unsigned getVectorListStart() const {
|
||||||
assert(Kind == k_VectorList && "Invalid access!");
|
assert(Kind == k_VectorList && "Invalid access!");
|
||||||
return VectorList.RegNum;
|
return VectorList.RegNum;
|
||||||
@ -554,14 +573,16 @@ public:
|
|||||||
return DiagnosticPredicateTy::NearMatch;
|
return DiagnosticPredicateTy::NearMatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isSVEPattern() const {
|
DiagnosticPredicate isSVEPattern() const {
|
||||||
if (!isImm())
|
if (!isImm())
|
||||||
return false;
|
return DiagnosticPredicateTy::NoMatch;
|
||||||
auto *MCE = dyn_cast<MCConstantExpr>(getImm());
|
auto *MCE = dyn_cast<MCConstantExpr>(getImm());
|
||||||
if (!MCE)
|
if (!MCE)
|
||||||
return false;
|
return DiagnosticPredicateTy::NoMatch;
|
||||||
int64_t Val = MCE->getValue();
|
int64_t Val = MCE->getValue();
|
||||||
return Val >= 0 && Val < 32;
|
if (Val >= 0 && Val < 32)
|
||||||
|
return DiagnosticPredicateTy::Match;
|
||||||
|
return DiagnosticPredicateTy::NearMatch;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isSymbolicUImm12Offset(const MCExpr *Expr, unsigned Scale) const {
|
bool isSymbolicUImm12Offset(const MCExpr *Expr, unsigned Scale) const {
|
||||||
@ -1002,6 +1023,11 @@ public:
|
|||||||
AArch64MCRegisterClasses[AArch64::GPR64RegClassID].contains(Reg.RegNum);
|
AArch64MCRegisterClasses[AArch64::GPR64RegClassID].contains(Reg.RegNum);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool isGPR64as32() const {
|
||||||
|
return Kind == k_Register && Reg.Kind == RegKind::Scalar &&
|
||||||
|
AArch64MCRegisterClasses[AArch64::GPR32RegClassID].contains(Reg.RegNum);
|
||||||
|
}
|
||||||
|
|
||||||
bool isWSeqPair() const {
|
bool isWSeqPair() const {
|
||||||
return Kind == k_Register && Reg.Kind == RegKind::Scalar &&
|
return Kind == k_Register && Reg.Kind == RegKind::Scalar &&
|
||||||
AArch64MCRegisterClasses[AArch64::WSeqPairsClassRegClassID].contains(
|
AArch64MCRegisterClasses[AArch64::WSeqPairsClassRegClassID].contains(
|
||||||
@ -1318,6 +1344,18 @@ public:
|
|||||||
Inst.addOperand(MCOperand::createReg(Reg));
|
Inst.addOperand(MCOperand::createReg(Reg));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void addGPR64as32Operands(MCInst &Inst, unsigned N) const {
|
||||||
|
assert(N == 1 && "Invalid number of operands!");
|
||||||
|
assert(
|
||||||
|
AArch64MCRegisterClasses[AArch64::GPR32RegClassID].contains(getReg()));
|
||||||
|
|
||||||
|
const MCRegisterInfo *RI = Ctx.getRegisterInfo();
|
||||||
|
uint32_t Reg = RI->getRegClass(AArch64::GPR64RegClassID).getRegister(
|
||||||
|
RI->getEncodingValue(getReg()));
|
||||||
|
|
||||||
|
Inst.addOperand(MCOperand::createReg(Reg));
|
||||||
|
}
|
||||||
|
|
||||||
template <int Width>
|
template <int Width>
|
||||||
void addFPRasZPRRegOperands(MCInst &Inst, unsigned N) const {
|
void addFPRasZPRRegOperands(MCInst &Inst, unsigned N) const {
|
||||||
unsigned Base;
|
unsigned Base;
|
||||||
@ -1668,6 +1706,7 @@ public:
|
|||||||
|
|
||||||
static std::unique_ptr<AArch64Operand>
|
static std::unique_ptr<AArch64Operand>
|
||||||
CreateReg(unsigned RegNum, RegKind Kind, SMLoc S, SMLoc E, MCContext &Ctx,
|
CreateReg(unsigned RegNum, RegKind Kind, SMLoc S, SMLoc E, MCContext &Ctx,
|
||||||
|
RegConstraintEqualityTy EqTy = RegConstraintEqualityTy::EqualsReg,
|
||||||
AArch64_AM::ShiftExtendType ExtTy = AArch64_AM::LSL,
|
AArch64_AM::ShiftExtendType ExtTy = AArch64_AM::LSL,
|
||||||
unsigned ShiftAmount = 0,
|
unsigned ShiftAmount = 0,
|
||||||
unsigned HasExplicitAmount = false) {
|
unsigned HasExplicitAmount = false) {
|
||||||
@ -1675,6 +1714,7 @@ public:
|
|||||||
Op->Reg.RegNum = RegNum;
|
Op->Reg.RegNum = RegNum;
|
||||||
Op->Reg.Kind = Kind;
|
Op->Reg.Kind = Kind;
|
||||||
Op->Reg.ElementWidth = 0;
|
Op->Reg.ElementWidth = 0;
|
||||||
|
Op->Reg.EqualityTy = EqTy;
|
||||||
Op->Reg.ShiftExtend.Type = ExtTy;
|
Op->Reg.ShiftExtend.Type = ExtTy;
|
||||||
Op->Reg.ShiftExtend.Amount = ShiftAmount;
|
Op->Reg.ShiftExtend.Amount = ShiftAmount;
|
||||||
Op->Reg.ShiftExtend.HasExplicitAmount = HasExplicitAmount;
|
Op->Reg.ShiftExtend.HasExplicitAmount = HasExplicitAmount;
|
||||||
@ -1692,7 +1732,7 @@ public:
|
|||||||
assert((Kind == RegKind::NeonVector || Kind == RegKind::SVEDataVector ||
|
assert((Kind == RegKind::NeonVector || Kind == RegKind::SVEDataVector ||
|
||||||
Kind == RegKind::SVEPredicateVector) &&
|
Kind == RegKind::SVEPredicateVector) &&
|
||||||
"Invalid vector kind");
|
"Invalid vector kind");
|
||||||
auto Op = CreateReg(RegNum, Kind, S, E, Ctx, ExtTy, ShiftAmount,
|
auto Op = CreateReg(RegNum, Kind, S, E, Ctx, EqualsReg, ExtTy, ShiftAmount,
|
||||||
HasExplicitAmount);
|
HasExplicitAmount);
|
||||||
Op->Reg.ElementWidth = ElementWidth;
|
Op->Reg.ElementWidth = ElementWidth;
|
||||||
return Op;
|
return Op;
|
||||||
@ -3164,7 +3204,7 @@ AArch64AsmParser::tryParseGPR64sp0Operand(OperandVector &Operands) {
|
|||||||
return MatchOperand_Success;
|
return MatchOperand_Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
template <bool ParseShiftExtend>
|
template <bool ParseShiftExtend, RegConstraintEqualityTy EqTy>
|
||||||
OperandMatchResultTy
|
OperandMatchResultTy
|
||||||
AArch64AsmParser::tryParseGPROperand(OperandVector &Operands) {
|
AArch64AsmParser::tryParseGPROperand(OperandVector &Operands) {
|
||||||
SMLoc StartLoc = getLoc();
|
SMLoc StartLoc = getLoc();
|
||||||
@ -3177,7 +3217,7 @@ AArch64AsmParser::tryParseGPROperand(OperandVector &Operands) {
|
|||||||
// No shift/extend is the default.
|
// No shift/extend is the default.
|
||||||
if (!ParseShiftExtend || getParser().getTok().isNot(AsmToken::Comma)) {
|
if (!ParseShiftExtend || getParser().getTok().isNot(AsmToken::Comma)) {
|
||||||
Operands.push_back(AArch64Operand::CreateReg(
|
Operands.push_back(AArch64Operand::CreateReg(
|
||||||
RegNum, RegKind::Scalar, StartLoc, getLoc(), getContext()));
|
RegNum, RegKind::Scalar, StartLoc, getLoc(), getContext(), EqTy));
|
||||||
return MatchOperand_Success;
|
return MatchOperand_Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3191,10 +3231,10 @@ AArch64AsmParser::tryParseGPROperand(OperandVector &Operands) {
|
|||||||
return Res;
|
return Res;
|
||||||
|
|
||||||
auto Ext = static_cast<AArch64Operand*>(ExtOpnd.back().get());
|
auto Ext = static_cast<AArch64Operand*>(ExtOpnd.back().get());
|
||||||
Operands.push_back(AArch64Operand::CreateReg(RegNum, RegKind::Scalar,
|
Operands.push_back(AArch64Operand::CreateReg(
|
||||||
StartLoc, Ext->getEndLoc(), getContext(),
|
RegNum, RegKind::Scalar, StartLoc, Ext->getEndLoc(), getContext(), EqTy,
|
||||||
Ext->getShiftExtendType(), Ext->getShiftExtendAmount(),
|
Ext->getShiftExtendType(), Ext->getShiftExtendAmount(),
|
||||||
Ext->hasShiftExtendAmount()));
|
Ext->hasShiftExtendAmount()));
|
||||||
|
|
||||||
return MatchOperand_Success;
|
return MatchOperand_Success;
|
||||||
}
|
}
|
||||||
@ -3412,6 +3452,30 @@ bool AArch64AsmParser::parseOperand(OperandVector &Operands, bool isCondCode,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool AArch64AsmParser::regsEqual(const MCParsedAsmOperand &Op1,
|
||||||
|
const MCParsedAsmOperand &Op2) const {
|
||||||
|
auto &AOp1 = static_cast<const AArch64Operand&>(Op1);
|
||||||
|
auto &AOp2 = static_cast<const AArch64Operand&>(Op2);
|
||||||
|
if (AOp1.getRegEqualityTy() == RegConstraintEqualityTy::EqualsReg &&
|
||||||
|
AOp2.getRegEqualityTy() == RegConstraintEqualityTy::EqualsReg)
|
||||||
|
return MCTargetAsmParser::regsEqual(Op1, Op2);
|
||||||
|
|
||||||
|
assert(AOp1.isScalarReg() && AOp2.isScalarReg() &&
|
||||||
|
"Testing equality of non-scalar registers not supported");
|
||||||
|
|
||||||
|
// Check if a registers match their sub/super register classes.
|
||||||
|
if (AOp1.getRegEqualityTy() == EqualsSuperReg)
|
||||||
|
return getXRegFromWReg(Op1.getReg()) == Op2.getReg();
|
||||||
|
if (AOp1.getRegEqualityTy() == EqualsSubReg)
|
||||||
|
return getWRegFromXReg(Op1.getReg()) == Op2.getReg();
|
||||||
|
if (AOp2.getRegEqualityTy() == EqualsSuperReg)
|
||||||
|
return getXRegFromWReg(Op2.getReg()) == Op1.getReg();
|
||||||
|
if (AOp2.getRegEqualityTy() == EqualsSubReg)
|
||||||
|
return getWRegFromXReg(Op2.getReg()) == Op1.getReg();
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/// ParseInstruction - Parse an AArch64 instruction mnemonic followed by its
|
/// ParseInstruction - Parse an AArch64 instruction mnemonic followed by its
|
||||||
/// operands.
|
/// operands.
|
||||||
bool AArch64AsmParser::ParseInstruction(ParseInstructionInfo &Info,
|
bool AArch64AsmParser::ParseInstruction(ParseInstructionInfo &Info,
|
||||||
@ -3765,10 +3829,22 @@ static std::string AArch64MnemonicSpellCheck(StringRef S, uint64_t FBS,
|
|||||||
unsigned VariantID = 0);
|
unsigned VariantID = 0);
|
||||||
|
|
||||||
bool AArch64AsmParser::showMatchError(SMLoc Loc, unsigned ErrCode,
|
bool AArch64AsmParser::showMatchError(SMLoc Loc, unsigned ErrCode,
|
||||||
|
uint64_t ErrorInfo,
|
||||||
OperandVector &Operands) {
|
OperandVector &Operands) {
|
||||||
switch (ErrCode) {
|
switch (ErrCode) {
|
||||||
case Match_InvalidTiedOperand:
|
case Match_InvalidTiedOperand: {
|
||||||
return Error(Loc, "operand must match destination register");
|
RegConstraintEqualityTy EqTy =
|
||||||
|
static_cast<const AArch64Operand &>(*Operands[ErrorInfo])
|
||||||
|
.getRegEqualityTy();
|
||||||
|
switch (EqTy) {
|
||||||
|
case RegConstraintEqualityTy::EqualsSubReg:
|
||||||
|
return Error(Loc, "operand must be 64-bit form of destination register");
|
||||||
|
case RegConstraintEqualityTy::EqualsSuperReg:
|
||||||
|
return Error(Loc, "operand must be 32-bit form of destination register");
|
||||||
|
case RegConstraintEqualityTy::EqualsReg:
|
||||||
|
return Error(Loc, "operand must match destination register");
|
||||||
|
}
|
||||||
|
}
|
||||||
case Match_MissingFeature:
|
case Match_MissingFeature:
|
||||||
return Error(Loc,
|
return Error(Loc,
|
||||||
"instruction requires a CPU feature not currently enabled");
|
"instruction requires a CPU feature not currently enabled");
|
||||||
@ -4389,7 +4465,7 @@ bool AArch64AsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
|
|||||||
return Error(IDLoc, Msg);
|
return Error(IDLoc, Msg);
|
||||||
}
|
}
|
||||||
case Match_MnemonicFail:
|
case Match_MnemonicFail:
|
||||||
return showMatchError(IDLoc, MatchResult, Operands);
|
return showMatchError(IDLoc, MatchResult, ErrorInfo, Operands);
|
||||||
case Match_InvalidOperand: {
|
case Match_InvalidOperand: {
|
||||||
SMLoc ErrorLoc = IDLoc;
|
SMLoc ErrorLoc = IDLoc;
|
||||||
|
|
||||||
@ -4408,7 +4484,7 @@ bool AArch64AsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
|
|||||||
((AArch64Operand &)*Operands[ErrorInfo]).isTokenSuffix())
|
((AArch64Operand &)*Operands[ErrorInfo]).isTokenSuffix())
|
||||||
MatchResult = Match_InvalidSuffix;
|
MatchResult = Match_InvalidSuffix;
|
||||||
|
|
||||||
return showMatchError(ErrorLoc, MatchResult, Operands);
|
return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands);
|
||||||
}
|
}
|
||||||
case Match_InvalidTiedOperand:
|
case Match_InvalidTiedOperand:
|
||||||
case Match_InvalidMemoryIndexed1:
|
case Match_InvalidMemoryIndexed1:
|
||||||
@ -4546,7 +4622,7 @@ bool AArch64AsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
|
|||||||
SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc();
|
SMLoc ErrorLoc = ((AArch64Operand &)*Operands[ErrorInfo]).getStartLoc();
|
||||||
if (ErrorLoc == SMLoc())
|
if (ErrorLoc == SMLoc())
|
||||||
ErrorLoc = IDLoc;
|
ErrorLoc = IDLoc;
|
||||||
return showMatchError(ErrorLoc, MatchResult, Operands);
|
return showMatchError(ErrorLoc, MatchResult, ErrorInfo, Operands);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1527,3 +1527,10 @@ void AArch64InstPrinter::printExactFPImm(const MCInst *MI, unsigned OpNum,
|
|||||||
unsigned Val = MI->getOperand(OpNum).getImm();
|
unsigned Val = MI->getOperand(OpNum).getImm();
|
||||||
O << "#" << (Val ? Imm1Desc->Repr : Imm0Desc->Repr);
|
O << "#" << (Val ? Imm1Desc->Repr : Imm0Desc->Repr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AArch64InstPrinter::printGPR64as32(const MCInst *MI, unsigned OpNum,
|
||||||
|
const MCSubtargetInfo &STI,
|
||||||
|
raw_ostream &O) {
|
||||||
|
unsigned Reg = MI->getOperand(OpNum).getReg();
|
||||||
|
O << getRegisterName(getWRegFromXReg(Reg));
|
||||||
|
}
|
||||||
|
@ -180,6 +180,8 @@ protected:
|
|||||||
template <char = 0>
|
template <char = 0>
|
||||||
void printSVERegOp(const MCInst *MI, unsigned OpNum,
|
void printSVERegOp(const MCInst *MI, unsigned OpNum,
|
||||||
const MCSubtargetInfo &STI, raw_ostream &O);
|
const MCSubtargetInfo &STI, raw_ostream &O);
|
||||||
|
void printGPR64as32(const MCInst *MI, unsigned OpNum,
|
||||||
|
const MCSubtargetInfo &STI, raw_ostream &O);
|
||||||
template <int Width>
|
template <int Width>
|
||||||
void printZPRasFPR(const MCInst *MI, unsigned OpNum,
|
void printZPRasFPR(const MCInst *MI, unsigned OpNum,
|
||||||
const MCSubtargetInfo &STI, raw_ostream &O);
|
const MCSubtargetInfo &STI, raw_ostream &O);
|
||||||
|
@ -333,9 +333,32 @@ class sve_int_pred_pattern_b<bits<5> opc, string asm, RegisterOperand dt,
|
|||||||
let Inst{9-5} = pattern;
|
let Inst{9-5} = pattern;
|
||||||
let Inst{4-0} = Rdn;
|
let Inst{4-0} = Rdn;
|
||||||
|
|
||||||
|
// Signed 32bit forms require their GPR operand printed.
|
||||||
|
let AsmString = !if(!eq(opc{2,0}, 0b00),
|
||||||
|
!strconcat(asm, "\t$Rdn, $_Rdn, $pattern, mul $imm4"),
|
||||||
|
!strconcat(asm, "\t$Rdn, $pattern, mul $imm4"));
|
||||||
|
|
||||||
let Constraints = "$Rdn = $_Rdn";
|
let Constraints = "$Rdn = $_Rdn";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
multiclass sve_int_pred_pattern_b_s32<bits<5> opc, string asm> {
|
||||||
|
def NAME : sve_int_pred_pattern_b<opc, asm, GPR64z, GPR64as32>;
|
||||||
|
|
||||||
|
def : InstAlias<asm # "\t$Rd, $Rn, $pattern",
|
||||||
|
(!cast<Instruction>(NAME) GPR64z:$Rd, GPR64as32:$Rn, sve_pred_enum:$pattern, 1), 1>;
|
||||||
|
def : InstAlias<asm # "\t$Rd, $Rn",
|
||||||
|
(!cast<Instruction>(NAME) GPR64z:$Rd, GPR64as32:$Rn, 0b11111, 1), 2>;
|
||||||
|
}
|
||||||
|
|
||||||
|
multiclass sve_int_pred_pattern_b_u32<bits<5> opc, string asm> {
|
||||||
|
def NAME : sve_int_pred_pattern_b<opc, asm, GPR32z, GPR32z>;
|
||||||
|
|
||||||
|
def : InstAlias<asm # "\t$Rdn, $pattern",
|
||||||
|
(!cast<Instruction>(NAME) GPR32z:$Rdn, sve_pred_enum:$pattern, 1), 1>;
|
||||||
|
def : InstAlias<asm # "\t$Rdn",
|
||||||
|
(!cast<Instruction>(NAME) GPR32z:$Rdn, 0b11111, 1), 2>;
|
||||||
|
}
|
||||||
|
|
||||||
multiclass sve_int_pred_pattern_b_x64<bits<5> opc, string asm> {
|
multiclass sve_int_pred_pattern_b_x64<bits<5> opc, string asm> {
|
||||||
def NAME : sve_int_pred_pattern_b<opc, asm, GPR64z, GPR64z>;
|
def NAME : sve_int_pred_pattern_b<opc, asm, GPR64z, GPR64z>;
|
||||||
|
|
||||||
|
@ -37,12 +37,12 @@ decb x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
decb x0, vl512
|
decb x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: decb x0, vl512
|
// CHECK-NEXT: decb x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
decb x0, vl9
|
decb x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: decb x0, vl9
|
// CHECK-NEXT: decb x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -37,12 +37,12 @@ decd x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
decd x0, vl512
|
decd x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: decd x0, vl512
|
// CHECK-NEXT: decd x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
decd x0, vl9
|
decd x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: decd x0, vl9
|
// CHECK-NEXT: decd x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -37,12 +37,12 @@ dech x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
dech x0, vl512
|
dech x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: dech x0, vl512
|
// CHECK-NEXT: dech x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
dech x0, vl9
|
dech x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: dech x0, vl9
|
// CHECK-NEXT: dech x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -37,12 +37,12 @@ decw x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
decw x0, vl512
|
decw x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: decw x0, vl512
|
// CHECK-NEXT: decw x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
decw x0, vl9
|
decw x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: decw x0, vl9
|
// CHECK-NEXT: decw x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -37,12 +37,12 @@ incb x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
incb x0, vl512
|
incb x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: incb x0, vl512
|
// CHECK-NEXT: incb x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
incb x0, vl9
|
incb x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: incb x0, vl9
|
// CHECK-NEXT: incb x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -37,12 +37,12 @@ incd x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
incd x0, vl512
|
incd x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: incd x0, vl512
|
// CHECK-NEXT: incd x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
incd x0, vl9
|
incd x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: incd x0, vl9
|
// CHECK-NEXT: incd x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -37,12 +37,12 @@ inch x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
inch x0, vl512
|
inch x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: inch x0, vl512
|
// CHECK-NEXT: inch x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
inch x0, vl9
|
inch x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: inch x0, vl9
|
// CHECK-NEXT: inch x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -37,12 +37,12 @@ incw x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
incw x0, vl512
|
incw x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: incw x0, vl512
|
// CHECK-NEXT: incw x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
incw x0, vl9
|
incw x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: incw x0, vl9
|
// CHECK-NEXT: incw x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -5,12 +5,12 @@
|
|||||||
// --------------------------------------------------------------------------//
|
// --------------------------------------------------------------------------//
|
||||||
|
|
||||||
ptrue p0.s, vl512
|
ptrue p0.s, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: ptrue p0.s, vl512
|
// CHECK-NEXT: ptrue p0.s, vl512
|
||||||
// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
|
||||||
|
|
||||||
ptrue p0.s, vl9
|
ptrue p0.s, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: ptrue p0.s, vl9
|
// CHECK-NEXT: ptrue p0.s, vl9
|
||||||
// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -5,12 +5,12 @@
|
|||||||
// --------------------------------------------------------------------------//
|
// --------------------------------------------------------------------------//
|
||||||
|
|
||||||
ptrues p0.s, vl512
|
ptrues p0.s, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: ptrues p0.s, vl512
|
// CHECK-NEXT: ptrues p0.s, vl512
|
||||||
// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
|
||||||
|
|
||||||
ptrues p0.s, vl9
|
ptrues p0.s, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: ptrues p0.s, vl9
|
// CHECK-NEXT: ptrues p0.s, vl9
|
||||||
// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-3]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -19,6 +19,20 @@ sqdecb sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up
|
||||||
|
|
||||||
|
sqdecb x0, w1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be 32-bit form of destination register
|
||||||
|
// CHECK-NEXT: sqdecb x0, w1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
sqdecb x0, x1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: sqdecb x0, x1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ sqdecb x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
sqdecb x0, vl512
|
sqdecb x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqdecb x0, vl512
|
// CHECK-NEXT: sqdecb x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
sqdecb x0, vl9
|
sqdecb x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqdecb x0, vl9
|
// CHECK-NEXT: sqdecb x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ sqdecb x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 fb 3f 04 <unknown>
|
// CHECK-UNKNOWN: e0 fb 3f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (x0, w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
sqdecb x0, w0
|
||||||
|
// CHECK-INST: sqdecb x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb 20 04 <unknown>
|
||||||
|
|
||||||
|
sqdecb x0, w0, all
|
||||||
|
// CHECK-INST: sqdecb x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb 20 04 <unknown>
|
||||||
|
|
||||||
|
sqdecb x0, w0, all, mul #1
|
||||||
|
// CHECK-INST: sqdecb x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb 20 04 <unknown>
|
||||||
|
|
||||||
|
sqdecb x0, w0, all, mul #16
|
||||||
|
// CHECK-INST: sqdecb x0, w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0x2f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb 2f 04 <unknown>
|
||||||
|
|
||||||
|
sqdecb x0, w0, pow2
|
||||||
|
// CHECK-INST: sqdecb x0, w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf8,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f8 20 04 <unknown>
|
||||||
|
|
||||||
|
sqdecb x0, w0, pow2, mul #16
|
||||||
|
// CHECK-INST: sqdecb x0, w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf8,0x2f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f8 2f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -19,6 +19,20 @@ sqdecd sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up
|
||||||
|
|
||||||
|
sqdecd x0, w1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be 32-bit form of destination register
|
||||||
|
// CHECK-NEXT: sqdecd x0, w1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
sqdecd x0, x1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: sqdecd x0, x1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ sqdecd x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
sqdecd x0, vl512
|
sqdecd x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqdecd x0, vl512
|
// CHECK-NEXT: sqdecd x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
sqdecd x0, vl9
|
sqdecd x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqdecd x0, vl9
|
// CHECK-NEXT: sqdecd x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ sqdecd x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 fb ff 04 <unknown>
|
// CHECK-UNKNOWN: e0 fb ff 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (x0, w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
sqdecd x0, w0
|
||||||
|
// CHECK-INST: sqdecd x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb e0 04 <unknown>
|
||||||
|
|
||||||
|
sqdecd x0, w0, all
|
||||||
|
// CHECK-INST: sqdecd x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb e0 04 <unknown>
|
||||||
|
|
||||||
|
sqdecd x0, w0, all, mul #1
|
||||||
|
// CHECK-INST: sqdecd x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb e0 04 <unknown>
|
||||||
|
|
||||||
|
sqdecd x0, w0, all, mul #16
|
||||||
|
// CHECK-INST: sqdecd x0, w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0xef,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb ef 04 <unknown>
|
||||||
|
|
||||||
|
sqdecd x0, w0, pow2
|
||||||
|
// CHECK-INST: sqdecd x0, w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf8,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f8 e0 04 <unknown>
|
||||||
|
|
||||||
|
sqdecd x0, w0, pow2, mul #16
|
||||||
|
// CHECK-INST: sqdecd x0, w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf8,0xef,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f8 ef 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -19,6 +19,20 @@ sqdech sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up
|
||||||
|
|
||||||
|
sqdech x0, w1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be 32-bit form of destination register
|
||||||
|
// CHECK-NEXT: sqdech x0, w1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
sqdech x0, x1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: sqdech x0, x1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ sqdech x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
sqdech x0, vl512
|
sqdech x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqdech x0, vl512
|
// CHECK-NEXT: sqdech x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
sqdech x0, vl9
|
sqdech x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqdech x0, vl9
|
// CHECK-NEXT: sqdech x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ sqdech x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 fb 7f 04 <unknown>
|
// CHECK-UNKNOWN: e0 fb 7f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (x0, w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
sqdech x0, w0
|
||||||
|
// CHECK-INST: sqdech x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb 60 04 <unknown>
|
||||||
|
|
||||||
|
sqdech x0, w0, all
|
||||||
|
// CHECK-INST: sqdech x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb 60 04 <unknown>
|
||||||
|
|
||||||
|
sqdech x0, w0, all, mul #1
|
||||||
|
// CHECK-INST: sqdech x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb 60 04 <unknown>
|
||||||
|
|
||||||
|
sqdech x0, w0, all, mul #16
|
||||||
|
// CHECK-INST: sqdech x0, w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0x6f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb 6f 04 <unknown>
|
||||||
|
|
||||||
|
sqdech x0, w0, pow2
|
||||||
|
// CHECK-INST: sqdech x0, w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf8,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f8 60 04 <unknown>
|
||||||
|
|
||||||
|
sqdech x0, w0, pow2, mul #16
|
||||||
|
// CHECK-INST: sqdech x0, w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf8,0x6f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f8 6f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -19,6 +19,20 @@ sqdecw sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up
|
||||||
|
|
||||||
|
sqdecw x0, w1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be 32-bit form of destination register
|
||||||
|
// CHECK-NEXT: sqdecw x0, w1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
sqdecw x0, x1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: sqdecw x0, x1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ sqdecw x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
sqdecw x0, vl512
|
sqdecw x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqdecw x0, vl512
|
// CHECK-NEXT: sqdecw x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
sqdecw x0, vl9
|
sqdecw x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqdecw x0, vl9
|
// CHECK-NEXT: sqdecw x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ sqdecw x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 fb bf 04 <unknown>
|
// CHECK-UNKNOWN: e0 fb bf 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (x0, w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
sqdecw x0, w0
|
||||||
|
// CHECK-INST: sqdecw x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb a0 04 <unknown>
|
||||||
|
|
||||||
|
sqdecw x0, w0, all
|
||||||
|
// CHECK-INST: sqdecw x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb a0 04 <unknown>
|
||||||
|
|
||||||
|
sqdecw x0, w0, all, mul #1
|
||||||
|
// CHECK-INST: sqdecw x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb a0 04 <unknown>
|
||||||
|
|
||||||
|
sqdecw x0, w0, all, mul #16
|
||||||
|
// CHECK-INST: sqdecw x0, w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xfb,0xaf,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 fb af 04 <unknown>
|
||||||
|
|
||||||
|
sqdecw x0, w0, pow2
|
||||||
|
// CHECK-INST: sqdecw x0, w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf8,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f8 a0 04 <unknown>
|
||||||
|
|
||||||
|
sqdecw x0, w0, pow2, mul #16
|
||||||
|
// CHECK-INST: sqdecw x0, w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf8,0xaf,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f8 af 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -19,6 +19,20 @@ sqincb sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up
|
||||||
|
|
||||||
|
sqincb x0, w1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be 32-bit form of destination register
|
||||||
|
// CHECK-NEXT: sqincb x0, w1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
sqincb x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: sqincb x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ sqincb x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
sqincb x0, vl512
|
sqincb x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqincb x0, vl512
|
// CHECK-NEXT: sqincb x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
sqincb x0, vl9
|
sqincb x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqincb x0, vl9
|
// CHECK-NEXT: sqincb x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ sqincb x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 f3 3f 04 <unknown>
|
// CHECK-UNKNOWN: e0 f3 3f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (x0, w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
sqincb x0, w0
|
||||||
|
// CHECK-INST: sqincb x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 20 04 <unknown>
|
||||||
|
|
||||||
|
sqincb x0, w0, all
|
||||||
|
// CHECK-INST: sqincb x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 20 04 <unknown>
|
||||||
|
|
||||||
|
sqincb x0, w0, all, mul #1
|
||||||
|
// CHECK-INST: sqincb x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 20 04 <unknown>
|
||||||
|
|
||||||
|
sqincb x0, w0, all, mul #16
|
||||||
|
// CHECK-INST: sqincb x0, w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0x2f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 2f 04 <unknown>
|
||||||
|
|
||||||
|
sqincb x0, w0, pow2
|
||||||
|
// CHECK-INST: sqincb x0, w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf0,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f0 20 04 <unknown>
|
||||||
|
|
||||||
|
sqincb x0, w0, pow2, mul #16
|
||||||
|
// CHECK-INST: sqincb x0, w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf0,0x2f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f0 2f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -19,6 +19,20 @@ sqincd sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up
|
||||||
|
|
||||||
|
sqincd x0, w1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be 32-bit form of destination register
|
||||||
|
// CHECK-NEXT: sqincd x0, w1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
sqincd x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: sqincd x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ sqincd x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
sqincd x0, vl512
|
sqincd x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqincd x0, vl512
|
// CHECK-NEXT: sqincd x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
sqincd x0, vl9
|
sqincd x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqincd x0, vl9
|
// CHECK-NEXT: sqincd x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ sqincd x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 f3 ff 04 <unknown>
|
// CHECK-UNKNOWN: e0 f3 ff 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (x0, w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
sqincd x0, w0
|
||||||
|
// CHECK-INST: sqincd x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 e0 04 <unknown>
|
||||||
|
|
||||||
|
sqincd x0, w0, all
|
||||||
|
// CHECK-INST: sqincd x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 e0 04 <unknown>
|
||||||
|
|
||||||
|
sqincd x0, w0, all, mul #1
|
||||||
|
// CHECK-INST: sqincd x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 e0 04 <unknown>
|
||||||
|
|
||||||
|
sqincd x0, w0, all, mul #16
|
||||||
|
// CHECK-INST: sqincd x0, w0, all
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0xef,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 ef 04 <unknown>
|
||||||
|
|
||||||
|
sqincd x0, w0, pow2
|
||||||
|
// CHECK-INST: sqincd x0, w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf0,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f0 e0 04 <unknown>
|
||||||
|
|
||||||
|
sqincd x0, w0, pow2, mul #16
|
||||||
|
// CHECK-INST: sqincd x0, w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf0,0xef,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f0 ef 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -19,6 +19,20 @@ sqinch sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up
|
||||||
|
|
||||||
|
sqinch x0, w1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be 32-bit form of destination register
|
||||||
|
// CHECK-NEXT: sqinch x0, w1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
sqinch x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: sqinch x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ sqinch x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
sqinch x0, vl512
|
sqinch x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqinch x0, vl512
|
// CHECK-NEXT: sqinch x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
sqinch x0, vl9
|
sqinch x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqinch x0, vl9
|
// CHECK-NEXT: sqinch x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ sqinch x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 f3 7f 04 <unknown>
|
// CHECK-UNKNOWN: e0 f3 7f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (x0, w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
sqinch x0, w0
|
||||||
|
// CHECK-INST: sqinch x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 60 04 <unknown>
|
||||||
|
|
||||||
|
sqinch x0, w0, all
|
||||||
|
// CHECK-INST: sqinch x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 60 04 <unknown>
|
||||||
|
|
||||||
|
sqinch x0, w0, all, mul #1
|
||||||
|
// CHECK-INST: sqinch x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 60 04 <unknown>
|
||||||
|
|
||||||
|
sqinch x0, w0, all, mul #16
|
||||||
|
// CHECK-INST: sqinch x0, w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0x6f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 6f 04 <unknown>
|
||||||
|
|
||||||
|
sqinch x0, w0, pow2
|
||||||
|
// CHECK-INST: sqinch x0, w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf0,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f0 60 04 <unknown>
|
||||||
|
|
||||||
|
sqinch x0, w0, pow2, mul #16
|
||||||
|
// CHECK-INST: sqinch x0, w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf0,0x6f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f0 6f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -19,6 +19,20 @@ sqincw sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up
|
||||||
|
|
||||||
|
sqincw x0, w1
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: operand must be 32-bit form of destination register
|
||||||
|
// CHECK-NEXT: sqincw x0, w1
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
sqincw x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: sqincw x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ sqincw x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
sqincw x0, vl512
|
sqincw x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqincw x0, vl512
|
// CHECK-NEXT: sqincw x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
sqincw x0, vl9
|
sqincw x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: sqincw x0, vl9
|
// CHECK-NEXT: sqincw x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ sqincw x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 f3 bf 04 <unknown>
|
// CHECK-UNKNOWN: e0 f3 bf 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (x0, w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
sqincw x0, w0
|
||||||
|
// CHECK-INST: sqincw x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 a0 04 <unknown>
|
||||||
|
|
||||||
|
sqincw x0, w0, all
|
||||||
|
// CHECK-INST: sqincw x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 a0 04 <unknown>
|
||||||
|
|
||||||
|
sqincw x0, w0, all, mul #1
|
||||||
|
// CHECK-INST: sqincw x0, w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 a0 04 <unknown>
|
||||||
|
|
||||||
|
sqincw x0, w0, all, mul #16
|
||||||
|
// CHECK-INST: sqincw x0, w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf3,0xaf,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f3 af 04 <unknown>
|
||||||
|
|
||||||
|
sqincw x0, w0, pow2
|
||||||
|
// CHECK-INST: sqincw x0, w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf0,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f0 a0 04 <unknown>
|
||||||
|
|
||||||
|
sqincw x0, w0, pow2, mul #16
|
||||||
|
// CHECK-INST: sqincw x0, w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf0,0xaf,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f0 af 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Invalid result register
|
// Invalid result register
|
||||||
|
|
||||||
uqdecb w0
|
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
|
||||||
// CHECK-NEXT: uqdecb w0
|
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
||||||
|
|
||||||
uqdecb wsp
|
uqdecb wsp
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdecb wsp
|
// CHECK-NEXT: uqdecb wsp
|
||||||
@ -19,6 +14,25 @@ uqdecb sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up (unsigned dec only has one register operand)
|
||||||
|
|
||||||
|
uqdecb x0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdecb x0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqdecb w0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdecb w0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqdecb x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdecb x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ uqdecb x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
uqdecb x0, vl512
|
uqdecb x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdecb x0, vl512
|
// CHECK-NEXT: uqdecb x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
uqdecb x0, vl9
|
uqdecb x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdecb x0, vl9
|
// CHECK-NEXT: uqdecb x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ uqdecb x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 ff 3f 04 <unknown>
|
// CHECK-UNKNOWN: e0 ff 3f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
uqdecb w0
|
||||||
|
// CHECK-INST: uqdecb w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff 20 04 <unknown>
|
||||||
|
|
||||||
|
uqdecb w0, all
|
||||||
|
// CHECK-INST: uqdecb w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff 20 04 <unknown>
|
||||||
|
|
||||||
|
uqdecb w0, all, mul #1
|
||||||
|
// CHECK-INST: uqdecb w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff 20 04 <unknown>
|
||||||
|
|
||||||
|
uqdecb w0, all, mul #16
|
||||||
|
// CHECK-INST: uqdecb w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0x2f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff 2f 04 <unknown>
|
||||||
|
|
||||||
|
uqdecb w0, pow2
|
||||||
|
// CHECK-INST: uqdecb w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xfc,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 fc 20 04 <unknown>
|
||||||
|
|
||||||
|
uqdecb w0, pow2, mul #16
|
||||||
|
// CHECK-INST: uqdecb w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xfc,0x2f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 fc 2f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Invalid result register
|
// Invalid result register
|
||||||
|
|
||||||
uqdecd w0
|
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
|
||||||
// CHECK-NEXT: uqdecd w0
|
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
||||||
|
|
||||||
uqdecd wsp
|
uqdecd wsp
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdecd wsp
|
// CHECK-NEXT: uqdecd wsp
|
||||||
@ -19,6 +14,25 @@ uqdecd sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up (unsigned dec only has one register operand)
|
||||||
|
|
||||||
|
uqdecd x0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdecd x0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqdecd w0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdecd w0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqdecd x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdecd x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ uqdecd x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
uqdecd x0, vl512
|
uqdecd x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdecd x0, vl512
|
// CHECK-NEXT: uqdecd x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
uqdecd x0, vl9
|
uqdecd x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdecd x0, vl9
|
// CHECK-NEXT: uqdecd x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ uqdecd x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 ff ff 04 <unknown>
|
// CHECK-UNKNOWN: e0 ff ff 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
uqdecd w0
|
||||||
|
// CHECK-INST: uqdecd w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff e0 04 <unknown>
|
||||||
|
|
||||||
|
uqdecd w0, all
|
||||||
|
// CHECK-INST: uqdecd w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff e0 04 <unknown>
|
||||||
|
|
||||||
|
uqdecd w0, all, mul #1
|
||||||
|
// CHECK-INST: uqdecd w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff e0 04 <unknown>
|
||||||
|
|
||||||
|
uqdecd w0, all, mul #16
|
||||||
|
// CHECK-INST: uqdecd w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0xef,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff ef 04 <unknown>
|
||||||
|
|
||||||
|
uqdecd w0, pow2
|
||||||
|
// CHECK-INST: uqdecd w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xfc,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 fc e0 04 <unknown>
|
||||||
|
|
||||||
|
uqdecd w0, pow2, mul #16
|
||||||
|
// CHECK-INST: uqdecd w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xfc,0xef,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 fc ef 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Invalid result register
|
// Invalid result register
|
||||||
|
|
||||||
uqdech w0
|
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
|
||||||
// CHECK-NEXT: uqdech w0
|
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
||||||
|
|
||||||
uqdech wsp
|
uqdech wsp
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdech wsp
|
// CHECK-NEXT: uqdech wsp
|
||||||
@ -19,6 +14,25 @@ uqdech sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up (unsigned dec only has one register operand)
|
||||||
|
|
||||||
|
uqdech x0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdech x0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqdech w0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdech w0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqdech x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdech x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ uqdech x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
uqdech x0, vl512
|
uqdech x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdech x0, vl512
|
// CHECK-NEXT: uqdech x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
uqdech x0, vl9
|
uqdech x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdech x0, vl9
|
// CHECK-NEXT: uqdech x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ uqdech x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 ff 7f 04 <unknown>
|
// CHECK-UNKNOWN: e0 ff 7f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
uqdech w0
|
||||||
|
// CHECK-INST: uqdech w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff 60 04 <unknown>
|
||||||
|
|
||||||
|
uqdech w0, all
|
||||||
|
// CHECK-INST: uqdech w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff 60 04 <unknown>
|
||||||
|
|
||||||
|
uqdech w0, all, mul #1
|
||||||
|
// CHECK-INST: uqdech w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff 60 04 <unknown>
|
||||||
|
|
||||||
|
uqdech w0, all, mul #16
|
||||||
|
// CHECK-INST: uqdech w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0x6f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff 6f 04 <unknown>
|
||||||
|
|
||||||
|
uqdech w0, pow2
|
||||||
|
// CHECK-INST: uqdech w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xfc,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 fc 60 04 <unknown>
|
||||||
|
|
||||||
|
uqdech w0, pow2, mul #16
|
||||||
|
// CHECK-INST: uqdech w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xfc,0x6f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 fc 6f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Invalid result register
|
// Invalid result register
|
||||||
|
|
||||||
uqdecw w0
|
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
|
||||||
// CHECK-NEXT: uqdecw w0
|
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
||||||
|
|
||||||
uqdecw wsp
|
uqdecw wsp
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdecw wsp
|
// CHECK-NEXT: uqdecw wsp
|
||||||
@ -19,6 +14,25 @@ uqdecw sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up (unsigned dec only has one register operand)
|
||||||
|
|
||||||
|
uqdecw x0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdecw x0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqdecw w0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdecw w0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqdecw x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqdecw x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ uqdecw x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
uqdecw x0, vl512
|
uqdecw x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdecw x0, vl512
|
// CHECK-NEXT: uqdecw x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
uqdecw x0, vl9
|
uqdecw x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqdecw x0, vl9
|
// CHECK-NEXT: uqdecw x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ uqdecw x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 ff bf 04 <unknown>
|
// CHECK-UNKNOWN: e0 ff bf 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
uqdecw w0
|
||||||
|
// CHECK-INST: uqdecw w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff a0 04 <unknown>
|
||||||
|
|
||||||
|
uqdecw w0, all
|
||||||
|
// CHECK-INST: uqdecw w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff a0 04 <unknown>
|
||||||
|
|
||||||
|
uqdecw w0, all, mul #1
|
||||||
|
// CHECK-INST: uqdecw w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff a0 04 <unknown>
|
||||||
|
|
||||||
|
uqdecw w0, all, mul #16
|
||||||
|
// CHECK-INST: uqdecw w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xff,0xaf,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 ff af 04 <unknown>
|
||||||
|
|
||||||
|
uqdecw w0, pow2
|
||||||
|
// CHECK-INST: uqdecw w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xfc,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 fc a0 04 <unknown>
|
||||||
|
|
||||||
|
uqdecw w0, pow2, mul #16
|
||||||
|
// CHECK-INST: uqdecw w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xfc,0xaf,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 fc af 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Invalid result register
|
// Invalid result register
|
||||||
|
|
||||||
uqincb w0
|
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
|
||||||
// CHECK-NEXT: uqincb w0
|
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
||||||
|
|
||||||
uqincb wsp
|
uqincb wsp
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqincb wsp
|
// CHECK-NEXT: uqincb wsp
|
||||||
@ -19,6 +14,25 @@ uqincb sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up (unsigned inc only has one register operand)
|
||||||
|
|
||||||
|
uqincb x0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqincb x0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqincb w0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqincb w0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqincb x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqincb x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ uqincb x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
uqincb x0, vl512
|
uqincb x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqincb x0, vl512
|
// CHECK-NEXT: uqincb x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
uqincb x0, vl9
|
uqincb x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqincb x0, vl9
|
// CHECK-NEXT: uqincb x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ uqincb x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 f7 3f 04 <unknown>
|
// CHECK-UNKNOWN: e0 f7 3f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
uqincb w0
|
||||||
|
// CHECK-INST: uqincb w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 20 04 <unknown>
|
||||||
|
|
||||||
|
uqincb w0, all
|
||||||
|
// CHECK-INST: uqincb w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 20 04 <unknown>
|
||||||
|
|
||||||
|
uqincb w0, all, mul #1
|
||||||
|
// CHECK-INST: uqincb w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 20 04 <unknown>
|
||||||
|
|
||||||
|
uqincb w0, all, mul #16
|
||||||
|
// CHECK-INST: uqincb w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0x2f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 2f 04 <unknown>
|
||||||
|
|
||||||
|
uqincb w0, pow2
|
||||||
|
// CHECK-INST: uqincb w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf4,0x20,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f4 20 04 <unknown>
|
||||||
|
|
||||||
|
uqincb w0, pow2, mul #16
|
||||||
|
// CHECK-INST: uqincb w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf4,0x2f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f4 2f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Invalid result register
|
// Invalid result register
|
||||||
|
|
||||||
uqincd w0
|
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
|
||||||
// CHECK-NEXT: uqincd w0
|
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
||||||
|
|
||||||
uqincd wsp
|
uqincd wsp
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqincd wsp
|
// CHECK-NEXT: uqincd wsp
|
||||||
@ -19,6 +14,25 @@ uqincd sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up (unsigned inc only has one register operand)
|
||||||
|
|
||||||
|
uqincd x0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqincd x0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqincd w0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqincd w0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqincd x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqincd x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ uqincd x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
uqincd x0, vl512
|
uqincd x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqincd x0, vl512
|
// CHECK-NEXT: uqincd x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
uqincd x0, vl9
|
uqincd x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqincd x0, vl9
|
// CHECK-NEXT: uqincd x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ uqincd x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 f7 ff 04 <unknown>
|
// CHECK-UNKNOWN: e0 f7 ff 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
uqincd w0
|
||||||
|
// CHECK-INST: uqincd w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 e0 04 <unknown>
|
||||||
|
|
||||||
|
uqincd w0, all
|
||||||
|
// CHECK-INST: uqincd w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 e0 04 <unknown>
|
||||||
|
|
||||||
|
uqincd w0, all, mul #1
|
||||||
|
// CHECK-INST: uqincd w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 e0 04 <unknown>
|
||||||
|
|
||||||
|
uqincd w0, all, mul #16
|
||||||
|
// CHECK-INST: uqincd w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0xef,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 ef 04 <unknown>
|
||||||
|
|
||||||
|
uqincd w0, pow2
|
||||||
|
// CHECK-INST: uqincd w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf4,0xe0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f4 e0 04 <unknown>
|
||||||
|
|
||||||
|
uqincd w0, pow2, mul #16
|
||||||
|
// CHECK-INST: uqincd w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf4,0xef,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f4 ef 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Invalid result register
|
// Invalid result register
|
||||||
|
|
||||||
uqinch w0
|
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
|
||||||
// CHECK-NEXT: uqinch w0
|
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
||||||
|
|
||||||
uqinch wsp
|
uqinch wsp
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqinch wsp
|
// CHECK-NEXT: uqinch wsp
|
||||||
@ -19,6 +14,25 @@ uqinch sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up (unsigned inc only has one register operand)
|
||||||
|
|
||||||
|
uqinch x0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqinch x0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqinch w0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqinch w0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqinch x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqinch x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ uqinch x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
uqinch x0, vl512
|
uqinch x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqinch x0, vl512
|
// CHECK-NEXT: uqinch x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
uqinch x0, vl9
|
uqinch x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqinch x0, vl9
|
// CHECK-NEXT: uqinch x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ uqinch x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 f7 7f 04 <unknown>
|
// CHECK-UNKNOWN: e0 f7 7f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
uqinch w0
|
||||||
|
// CHECK-INST: uqinch w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 60 04 <unknown>
|
||||||
|
|
||||||
|
uqinch w0, all
|
||||||
|
// CHECK-INST: uqinch w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 60 04 <unknown>
|
||||||
|
|
||||||
|
uqinch w0, all, mul #1
|
||||||
|
// CHECK-INST: uqinch w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 60 04 <unknown>
|
||||||
|
|
||||||
|
uqinch w0, all, mul #16
|
||||||
|
// CHECK-INST: uqinch w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0x6f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 6f 04 <unknown>
|
||||||
|
|
||||||
|
uqinch w0, pow2
|
||||||
|
// CHECK-INST: uqinch w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf4,0x60,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f4 60 04 <unknown>
|
||||||
|
|
||||||
|
uqinch w0, pow2, mul #16
|
||||||
|
// CHECK-INST: uqinch w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf4,0x6f,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f4 6f 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
@ -3,11 +3,6 @@
|
|||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Invalid result register
|
// Invalid result register
|
||||||
|
|
||||||
uqincw w0
|
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
|
||||||
// CHECK-NEXT: uqincw w0
|
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
|
||||||
|
|
||||||
uqincw wsp
|
uqincw wsp
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqincw wsp
|
// CHECK-NEXT: uqincw wsp
|
||||||
@ -19,6 +14,25 @@ uqincw sp
|
|||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
|
// ------------------------------------------------------------------------- //
|
||||||
|
// Operands not matching up (unsigned inc only has one register operand)
|
||||||
|
|
||||||
|
uqincw x0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqincw x0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqincw w0, w0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqincw w0, w0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
uqincw x0, x0
|
||||||
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
|
// CHECK-NEXT: uqincw x0, x0
|
||||||
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
|
||||||
// ------------------------------------------------------------------------- //
|
// ------------------------------------------------------------------------- //
|
||||||
// Immediate not compatible with encode/decode function.
|
// Immediate not compatible with encode/decode function.
|
||||||
|
|
||||||
@ -42,12 +56,12 @@ uqincw x0, all, mul #17
|
|||||||
// Invalid predicate patterns
|
// Invalid predicate patterns
|
||||||
|
|
||||||
uqincw x0, vl512
|
uqincw x0, vl512
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqincw x0, vl512
|
// CHECK-NEXT: uqincw x0, vl512
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
uqincw x0, vl9
|
uqincw x0, vl9
|
||||||
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid predicate pattern
|
// CHECK: [[@LINE-1]]:{{[0-9]+}}: error: invalid operand
|
||||||
// CHECK-NEXT: uqincw x0, vl9
|
// CHECK-NEXT: uqincw x0, vl9
|
||||||
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
// CHECK-NOT: [[@LINE-1]]:{{[0-9]+}}:
|
||||||
|
|
||||||
|
@ -36,6 +36,47 @@ uqincw x0, all, mul #16
|
|||||||
// CHECK-UNKNOWN: e0 f7 bf 04 <unknown>
|
// CHECK-UNKNOWN: e0 f7 bf 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
// Test 32-bit form (w0) and its aliases
|
||||||
|
// ---------------------------------------------------------------------------//
|
||||||
|
|
||||||
|
uqincw w0
|
||||||
|
// CHECK-INST: uqincw w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 a0 04 <unknown>
|
||||||
|
|
||||||
|
uqincw w0, all
|
||||||
|
// CHECK-INST: uqincw w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 a0 04 <unknown>
|
||||||
|
|
||||||
|
uqincw w0, all, mul #1
|
||||||
|
// CHECK-INST: uqincw w0
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 a0 04 <unknown>
|
||||||
|
|
||||||
|
uqincw w0, all, mul #16
|
||||||
|
// CHECK-INST: uqincw w0, all, mul #16
|
||||||
|
// CHECK-ENCODING: [0xe0,0xf7,0xaf,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: e0 f7 af 04 <unknown>
|
||||||
|
|
||||||
|
uqincw w0, pow2
|
||||||
|
// CHECK-INST: uqincw w0, pow2
|
||||||
|
// CHECK-ENCODING: [0x00,0xf4,0xa0,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f4 a0 04 <unknown>
|
||||||
|
|
||||||
|
uqincw w0, pow2, mul #16
|
||||||
|
// CHECK-INST: uqincw w0, pow2, mul #16
|
||||||
|
// CHECK-ENCODING: [0x00,0xf4,0xaf,0x04]
|
||||||
|
// CHECK-ERROR: instruction requires: sve
|
||||||
|
// CHECK-UNKNOWN: 00 f4 af 04 <unknown>
|
||||||
|
|
||||||
|
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
// Test all patterns for 64-bit form
|
// Test all patterns for 64-bit form
|
||||||
// ---------------------------------------------------------------------------//
|
// ---------------------------------------------------------------------------//
|
||||||
|
Loading…
Reference in New Issue
Block a user