bpf: sim: do not overflow instruction immediates in tests
authorJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 31 Jul 2023 09:08:32 +0000 (11:08 +0200)
committerJose E. Marchesi <jose.marchesi@oracle.com>
Mon, 31 Jul 2023 09:09:47 +0000 (11:09 +0200)
commit3b2ffd32d2104afba04288687ed381bd65a53b25
treec30f7bef358548101e1e91ed084076970575872c
parent71ddc1cc0b8683955f628bee76405686bc44ffc6
bpf: sim: do not overflow instruction immediates in tests

This patch fixes some instructions in the BPF tests that overflow the
signed immediates.  Note that this happened to work before by chance,
as GAS would silently truncate.

Tested in bpf-unknown-none.

Signed-off-by: Jose E. Marchesi <jose.marchesi@oracle.com>
sim/testsuite/bpf/alu.s
sim/testsuite/bpf/alu32.s
sim/testsuite/bpf/ldabs.s
sim/testsuite/bpf/mem.s
sim/testsuite/bpf/mov.s