From: George Guo <dongtai.guo@linux.dev>
To: yangtiezhu@loongson.cn
Cc: chenhuacai@kernel.org, hengqi.chen@gmail.com,
loongarch@lists.linux.dev, bpf@vger.kernel.org,
linux-kernel@vger.kernel.org, George Guo <guodongtai@kylinos.cn>
Subject: Re: [PATCH] LoongArch: BPF: Optimize doubleword loads with ld.d and ldptr.d
Date: Thu, 3 Dec 2026 23:11:02 -0800 [thread overview]
Message-ID: <20261204071102.14309-1-dongtai.guo@linux.dev> (raw)
In-Reply-To: <20261118081201.10498-1-yangtiezhu@loongson.cn>
On 2026/11/18 16:12, Tiezhu Yang wrote:
> Optimize these loads by emitting ld.d for signed 12-bit offsets and
> ldptr.d for 4-byte aligned signed 16-bit offsets, or falling back to
> move_imm() + ldx.d when necessary.
Tested on Loongson-3C6000, together with "LoongArch: BPF: Fix the offset
of stptr.w and stptr.d stores". The jit_insns tests passed, including
the ldst_offsets subtests:
$ sudo ./test_progs -t jit_insns,jit_insns_blinded
...
#196/26 jit_insns/ldst_offsets:OK
...
#196 jit_insns:OK
...
#197/11 jit_insns_blinded/ldst_offsets:OK
...
#197 jit_insns_blinded:OK
Summary: 2/47 PASSED, 0 SKIPPED, 0/0 FAILED
Reviewed-by: George Guo <guodongtai@kylinos.cn>
Tested-by: George Guo <guodongtai@kylinos.cn>
Thanks,
George
prev parent reply other threads:[~2026-12-04 7:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-18 8:12 Tiezhu Yang
2026-12-04 7:11 ` George Guo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204071102.14309-1-dongtai.guo@linux.dev \
--to=dongtai.guo@linux.dev \
--cc=bpf@vger.kernel.org \
--cc=chenhuacai@kernel.org \
--cc=guodongtai@kylinos.cn \
--cc=hengqi.chen@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=loongarch@lists.linux.dev \
--cc=yangtiezhu@loongson.cn \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®