[PATCH] D86535: [AArch64][AsmParser] Fix bug in operand printer
Cullen Rhodes via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 25 06:02:39 PDT 2020
c-rhodes created this revision.
c-rhodes added reviewers: sdesmalen, pbarrio, olista01, david-arm.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
c-rhodes requested review of this revision.
The switch in AArch64Operand::print was changed in D45688 <https://reviews.llvm.org/D45688> so the shift
can be printed after printing the register. This is implemented with
LLVM_FALLTHROUGH and was broken in D52485 <https://reviews.llvm.org/D52485> when BTIHint was put between
the register and shift operands.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D86535
Files:
llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
Index: llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
===================================================================
--- llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+++ llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
@@ -2071,14 +2071,14 @@
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();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86535.287646.patch
Type: text/x-patch
Size: 751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200825/12af45bb/attachment.bin>
More information about the llvm-commits
mailing list