mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 01:30:24 +08:00
[RISCV] Remove unused MCOperandPredicate from simm12_lsb00000. NFC
I don't think the use of isBareSymbolRef() was correct since we don't have any relocations associated with this instruction type.
This commit is contained in:
@@ -21,12 +21,6 @@ def simm12_lsb00000 : RISCVOp,
|
||||
let ParserMatchClass = SImmAsmOperand<12, "Lsb00000">;
|
||||
let EncoderMethod = "getImmOpValue";
|
||||
let DecoderMethod = "decodeSImmOperand<12>";
|
||||
let MCOperandPredicate = [{
|
||||
int64_t Imm;
|
||||
if (MCOp.evaluateAsConstantImm(Imm))
|
||||
return isShiftedInt<7, 5>(Imm);
|
||||
return MCOp.isBareSymbolRef();
|
||||
}];
|
||||
let OperandType = "OPERAND_SIMM12_LSB00000";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user