blob: af6f41b0db005b1f7323268380b7ab38909b26d3 [file] [log] [blame]
# eBPF tests for MEM instructions, modulus lddw.
.text
ldabsw 0xbeef
ldabsh 0xbeef
ldabsb 0xbeef
ldabsdw 0xbeef
ldindw %r3, 0xbeef
ldindh %r5, 0xbeef
ldindb %r7, 0xbeef
ldinddw %r9, 0xbeef
ldxw %r2, [%r1+0x7eef]
ldxh %r2, [%r1+0x7eef]
ldxb %r2, [%r1+0x7eef]
ldxdw %r2, [%r1+-2]
stxw [%r1+0x7eef], %r2
stxh [%r1+0x7eef], %r2
stxb [%r1+0x7eef], %r2
stxdw [%r1+-2], %r2
stb [%r1+0x7eef], 0x11223344
sth [%r1+0x7eef], 0x11223344
stw [%r1+0x7eef], 0x11223344
stdw [%r1+-2], 0x11223344