mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
[AArch64][AsmParser] Fix bug in operand printer
The switch in AArch64Operand::print was changed in D45688 so the shift can be printed after printing the register. This is implemented with LLVM_FALLTHROUGH and was broken in D52485 when BTIHint was put between the register and shift operands. Reviewed By: ostannard Differential Revision: https://reviews.llvm.org/D86535
This commit is contained in:
parent
1cc7555d8e
commit
20ef07fd10
@ -2071,14 +2071,14 @@ void AArch64Operand::print(raw_ostream &OS) const {
|
||||
case k_PSBHint:
|
||||
OS << getPSBHintName();
|
||||
break;
|
||||
case k_BTIHint:
|
||||
OS << getBTIHintName();
|
||||
break;
|
||||
case k_Register:
|
||||
OS << "<register " << getReg() << ">";
|
||||
if (!getShiftExtendAmount() && !hasShiftExtendAmount())
|
||||
break;
|
||||
LLVM_FALLTHROUGH;
|
||||
case k_BTIHint:
|
||||
OS << getBTIHintName();
|
||||
break;
|
||||
case k_ShiftExtend:
|
||||
OS << "<" << AArch64_AM::getShiftExtendName(getShiftExtendType()) << " #"
|
||||
<< getShiftExtendAmount();
|
||||
|
Loading…
Reference in New Issue
Block a user