[PATCH] D142980: [ARM] Accept .w suffixes for ldrb/strb (immediate) T3

Jirui Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 06:39:54 PST 2023


JiruiWu created this revision.
JiruiWu added reviewers: olista01, lenary, chill, nickdesaulniers.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
JiruiWu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The T3 variants of the instructions in the follow sections of the
Armv7-M ARM allow the .w mnemonic suffix, even though the preferred
disassembly is without the suffix.
A7.7.46 LDRB (immediate)
A7.7.163 STRB (immediate)
This patch accepts the .w suffixes for theses instructions.
Pseudo-instructions and custom parsing logic are used instead of simple
aliases. More discussions are in these relevant patches:
https://reviews.llvm.org/D68916
https://reviews.llvm.org/D96632


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D142980

Files:
  llvm/lib/Target/ARM/ARMInstrThumb2.td
  llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp
  llvm/test/MC/ARM/basic-thumb2-instructions.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D142980.493595.patch
Type: text/x-patch
Size: 7836 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230131/a03d4856/attachment.bin>


More information about the llvm-commits mailing list