[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAM1=_QQ6rUjANEKTPUadzMfP5zcxWimL8+YRjy=3eS0SZrwbpQ@mail.gmail.com>
Date: Thu, 29 Jul 2021 23:21:43 +0200
From: Johan Almbladh <johan.almbladh@...finetworks.com>
To: Yonghong Song <yhs@...com>
Cc: Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>,
Martin KaFai Lau <kafai@...com>,
Song Liu <songliubraving@...com>,
John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...nel.org>,
Tony Ambardar <Tony.Ambardar@...il.com>,
Networking <netdev@...r.kernel.org>, bpf <bpf@...r.kernel.org>
Subject: Re: [PATCH 07/14] bpf/tests: Add more ALU64 BPF_MUL tests
On Thu, Jul 29, 2021 at 1:32 AM Yonghong Song <yhs@...com> wrote:
> > @@ -3051,6 +3051,31 @@ static struct bpf_test tests[] = {
> > { },
> > { { 0, 2147483647 } },
> > },
> > + {
> > + "ALU64_MUL_X: 64x64 multiply, low word",
> > + .u.insns_int = {
> > + BPF_LD_IMM64(R0, 0x0fedcba987654321LL),
> > + BPF_LD_IMM64(R1, 0x123456789abcdef0LL),
> > + BPF_ALU64_REG(BPF_MUL, R0, R1),
> > + BPF_EXIT_INSN(),
> > + },
> > + INTERNAL,
> > + { },
> > + { { 0, 0xe5618cf0 } }
>
> Same here. Maybe capture the true 64-bit R0 value?
Same as the LSH/RSH/ARSH tests. Uses 32-bit shift to test high and low
words in two runs.
Powered by blists - more mailing lists