[PATCH 0/3] bpf: Enable wN reg codegen for bug-fix and fun

Vineet Gupta vineet.gupta@linux.dev
Sun Mar 29 23:17:51 GMT 2026


Hi,

The function ABI change seems to be stable but is exposing existing
backend issues pertinent to wN regs. Hence this series to first address
those and then pursue ABI fixes.

 - Patch 1/3 is desirable, 2/3 is a bug fix and both can go in now.
 - Patch 3/3 needs more work but posting anyways due to same area.

Please take a look.

Thx,
-Vineet

Vineet Gupta (3):
  bpf: md: Enable zero_extend{hi,qi}di2 to generate wN regs ...
  bpf: md: fix "*movsi" to generate wN regs [PR124688]
  bpf: PROMOTE_MODE to SI not DI [PR124419] [not-for-merge]

 gcc/config/bpf/bpf.h                           |  7 +++----
 gcc/config/bpf/bpf.md                          | 18 +++++++++---------
 gcc/testsuite/gcc.target/bpf/btfext-lineinfo.c |  8 ++++----
 gcc/testsuite/gcc.target/bpf/ret-reuse-arg-1.c | 14 ++++++++++++++
 gcc/testsuite/gcc.target/bpf/zero-ext.c        | 16 ++++++++++++++++
 5 files changed, 46 insertions(+), 17 deletions(-)
 create mode 100644 gcc/testsuite/gcc.target/bpf/ret-reuse-arg-1.c

-- 
2.53.0



More information about the bpf mailing list