[all-commits] [llvm/llvm-project] c43ad6: BPF: Change callx insn encoding (#81546)

yonghong-song via All-commits all-commits at lists.llvm.org
Mon Feb 12 20:08:13 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c43ad6c0fddac0bbed5e881801dd2bc2f9eeba2d
      https://github.com/llvm/llvm-project/commit/c43ad6c0fddac0bbed5e881801dd2bc2f9eeba2d
  Author: yonghong-song <ys114321 at gmail.com>
  Date:   2024-02-12 (Mon, 12 Feb 2024)

  Changed paths:
    M llvm/lib/Target/BPF/AsmParser/BPFAsmParser.cpp
    M llvm/lib/Target/BPF/BPFInstrInfo.td
    M llvm/test/MC/BPF/insn-unit.s

  Log Message:
  -----------
  BPF: Change callx insn encoding (#81546)

Currently, the kernel verifier unsupported callx insn used the 32-bit
imm field to store the target register. On the other hand, gcc used the
dst_reg field to store the target register. The gcc encoding is better.
This patch adjusted the coding to be the same as gcc.

Signed-off-by: Yonghong Song <yonghong.song at linux.dev>




More information about the All-commits mailing list