> --- /dev/null > +++ b/tools/testing/selftests/bpf/verifier/atomic_load.c > @@ -0,0 +1,71 @@ > +{ > + "BPF_ATOMIC load-acquire, 8-bit", > + .insns = { > + BPF_MOV64_IMM(BPF_REG_0, 0), > + /* Write 1 to stack. */ ~ /* Write 0x12 to stack. */ ~~~~ > + BPF_ST_MEM(BPF_B, BPF_REG_10, -1, 0x12), > + /* Load-acquire it from stack to R1. */ > + BPF_ATOMIC_OP(BPF_B, BPF_LOAD_ACQ, BPF_REG_1, BPF_REG_10, -1), > + /* Check loaded value is 0x12. */ Will be fixed in the next version. Thanks, Peilin Ye