[PATCH] D140815: [AVR] Fix incorrect decoding of RJMP and RCALL

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 6 18:54:35 PST 2023


benshi001 added a comment.

In D140815#4032392 <https://reviews.llvm.org/D140815#4032392>, @aykevl wrote:

> In D140815#4021441 <https://reviews.llvm.org/D140815#4021441>, @benshi001 wrote:
>
>> Since llvm-objdump decodes all address offsets of `rjmp`/`rcall` (before linking) to 0, so you can see those zeros in `llvm/test/MC/AVR/inst-rjmp.s`, which are not affected.
>>
>> llvm-objdump only affects address offsets of `rjmp`/`rcall` that are after linking, so we have to test them in the lld tests.
>
> Hmm, yeah that's a problem.
> @MaskRay do you have an idea how to properly test this? I don't like moving these tests into lld (it's a separate subproject), but the alternative seems to be to use a binary file to test against which isn't great either.

I do see many `.o` files in `clang/test/`, but none in `llvm/test/MC/` .


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D140815/new/

https://reviews.llvm.org/D140815



More information about the llvm-commits mailing list