[v2 3/4] PR 34029: bpf: add %dR/%sR register format specifiers

Vineet Gupta vineet.gupta@linux.dev
Thu Apr 2 15:45:59 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.


> OK.

I haven' pushed to sourceware in a while, can you commit them whenever 
you get a chance please !

Thx,
-Vineet

[1] https://gcc.gnu.org/pipermail/bpf/2026-March/000085.html


More information about the Binutils mailing list