[PATCH] D140777: [AVR] Fix ambiguous cases in AsmParser

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 30 04:14:18 PST 2022


benshi001 created this revision.
benshi001 added reviewers: aykevl, dylanmckay.
Herald added subscribers: Jim, hiraditya.
Herald added a project: All.
benshi001 requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan.
Herald added a project: LLVM.

The first operand of 'sts' and the second operand of 'lds' should be
a variable/address/expression other than a register. And this patch
fix some ambiguous cases, such as "lds r25, r24", which means loading
the value inside symbol 'r24' into register 'r25'.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140777

Files:
  llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp
  llvm/test/MC/AVR/inst-lds-tiny.s
  llvm/test/MC/AVR/inst-lds.s
  llvm/test/MC/AVR/inst-sts-tiny.s
  llvm/test/MC/AVR/inst-sts.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140777.485685.patch
Type: text/x-patch
Size: 7905 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221230/6714186e/attachment-0001.bin>


More information about the llvm-commits mailing list