[v2 3/4] PR 34029: bpf: add %dR/%sR register format specifiers
Jose E. Marchesi
jemarch@gnu.org
Thu Apr 2 16:35:38 GMT 2026
> On 4/2/26 3:58 AM, Jose E. Marchesi wrote:
>> Hi Vineet.
>>
>>> These accept either r or w prefix registers during assembly
>>> (pseudoc dialect), while disassembling canonically as r registers.
>>>
>>> This eliminates the need for duplicate opcode table entries for
>>> instructions that accept both w and r register forms.
>> Nicely done. Thank you for the patch.
>
> Thx for the quick review.
>
>
>> I suppose this will be tested when the corresponding load/store
>> instructions get updated and their respective new tests.
>
> We decided to not update gcc to generate the new forms [1]
> But nonetheless since llvm supports these forms and user can
> technically specify them in asm/inline-asm, hence the patch.
I was referring to tests in GAS. Then I saw these were added in the
commit that adds the new entries in the opcodes table.
>
>> OK.
>
> I haven' pushed to sourceware in a while, can you commit them whenever
> you get a chance please !
Just pushed the series on your behalf.
Thanks.
>
> Thx,
> -Vineet
>
> [1] https://gcc.gnu.org/pipermail/bpf/2026-March/000085.html
More information about the Binutils
mailing list