[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20250905060026.1285979-1-yangfeng59949@163.com>
Date: Fri, 5 Sep 2025 14:00:26 +0800
From: Feng Yang <yangfeng59949@....com>
To: eddyz87@...il.com
Cc: andrii@...nel.org,
ast@...nel.org,
bpf@...r.kernel.org,
daniel@...earbox.net,
haoluo@...gle.com,
john.fastabend@...il.com,
jolsa@...nel.org,
kpsingh@...nel.org,
linux-kernel@...r.kernel.org,
linux-kselftest@...r.kernel.org,
llvm@...ts.linux.dev,
martin.lau@...ux.dev,
sdf@...ichev.me,
song@...nel.org,
yangfeng59949@....com,
yonghong.song@...ux.dev
Subject: Re: [PATCH v2 bpf-next] selftests/bpf: Fix the invalid operand for instruction issue
On Thu, 04 Sep 2025 08:48:45 -0700 Eduard Zingerman wrote:
> On Thu, 2025-08-28 at 10:01 +0800, Feng Yang wrote:
> > From: Feng Yang <yangfeng@...inos.cn>
> >
> > The following issue occurs when compiling with clang version 17.0.6:
> > progs/compute_live_registers.c:251:3: error: invalid operand for instruction
> > 251 | "r0 = 1;"
> > | ^
> > <inline asm>:1:22: note: instantiated into assembly here
> > 1 | r0 = 1;r2 = 2;if r1 & 0x7 goto +1;exit;r0 = r2;exit;
> > | ^
> > 1 error generated.
> >
> > Use __imm_insn to fix this issue.
> >
> > Fixes: 4a4b84ba9e453 ("selftests/bpf: verify jset handling in CFG computation")
> > Signed-off-by: Feng Yang <yangfeng@...inos.cn>
> > ---
>
> Hi Feng,
>
> This message felt through cracks a bit. It's a minor thing, of
> course, but there is a legit question of how much backward we'd like
> to support clang versions for the test suite.
>
> Could you please provide some detail on your build environment,
> why do you want to run the tests with older clang?
Hi Eduard,
Actually, there is no specific reason to test with an older version of Clang.
It's just that the Clang downloaded from the source is this version,
and installing a newer version by myself would be rather troublesome.
clang version 17.0.6
GNU Make 4.4.1
gcc (GCC) 12.3.1
linux version: 6.6
arch: x86-64
Powered by blists - more mailing lists