forked from OSchip/llvm-project
[LoongArch] Add some missing comments. NFC
Add more comments /*Lower=*/ and /*Upper=*/ calling generateImmOutOfRangeError.
This commit is contained in:
parent
bdb98bd979
commit
c008a697ff
|
@ -443,22 +443,22 @@ bool LoongArchAsmParser::MatchAndEmitInstruction(SMLoc IDLoc, unsigned &Opcode,
|
||||||
return generateImmOutOfRangeError(Operands, ErrorInfo, /*Lower=*/0,
|
return generateImmOutOfRangeError(Operands, ErrorInfo, /*Lower=*/0,
|
||||||
/*Upper=*/(1 << 15) - 1);
|
/*Upper=*/(1 << 15) - 1);
|
||||||
case Match_InvalidSImm12:
|
case Match_InvalidSImm12:
|
||||||
return generateImmOutOfRangeError(Operands, ErrorInfo, -(1 << 11),
|
return generateImmOutOfRangeError(Operands, ErrorInfo, /*Lower=*/-(1 << 11),
|
||||||
(1 << 11) - 1);
|
/*Upper=*/(1 << 11) - 1);
|
||||||
case Match_InvalidSImm14lsl2:
|
case Match_InvalidSImm14lsl2:
|
||||||
return generateImmOutOfRangeError(
|
return generateImmOutOfRangeError(
|
||||||
Operands, ErrorInfo, /*Lower=*/-(1 << 15), /*Upper=*/(1 << 15) - 4,
|
Operands, ErrorInfo, /*Lower=*/-(1 << 15), /*Upper=*/(1 << 15) - 4,
|
||||||
"immediate must be a multiple of 4 in the range");
|
"immediate must be a multiple of 4 in the range");
|
||||||
case Match_InvalidSImm16:
|
case Match_InvalidSImm16:
|
||||||
return generateImmOutOfRangeError(Operands, ErrorInfo, -(1 << 15),
|
return generateImmOutOfRangeError(Operands, ErrorInfo, /*Lower=*/-(1 << 15),
|
||||||
(1 << 15) - 1);
|
/*Upper=*/(1 << 15) - 1);
|
||||||
case Match_InvalidSImm16lsl2:
|
case Match_InvalidSImm16lsl2:
|
||||||
return generateImmOutOfRangeError(
|
return generateImmOutOfRangeError(
|
||||||
Operands, ErrorInfo, /*Lower=*/-(1 << 17), /*Upper=*/(1 << 17) - 4,
|
Operands, ErrorInfo, /*Lower=*/-(1 << 17), /*Upper=*/(1 << 17) - 4,
|
||||||
"immediate must be a multiple of 4 in the range");
|
"immediate must be a multiple of 4 in the range");
|
||||||
case Match_InvalidSImm20:
|
case Match_InvalidSImm20:
|
||||||
return generateImmOutOfRangeError(Operands, ErrorInfo, -(1 << 19),
|
return generateImmOutOfRangeError(Operands, ErrorInfo, /*Lower=*/-(1 << 19),
|
||||||
(1 << 19) - 1);
|
/*Upper=*/(1 << 19) - 1);
|
||||||
case Match_InvalidSImm21lsl2:
|
case Match_InvalidSImm21lsl2:
|
||||||
return generateImmOutOfRangeError(
|
return generateImmOutOfRangeError(
|
||||||
Operands, ErrorInfo, /*Lower=*/-(1 << 22), /*Upper=*/(1 << 22) - 4,
|
Operands, ErrorInfo, /*Lower=*/-(1 << 22), /*Upper=*/(1 << 22) - 4,
|
||||||
|
|
Loading…
Reference in New Issue