cpu,opcodes,gas: fix arguments to ldabs and ldind eBPF instructions
[external/binutils.git] / gas / testsuite / gas / bpf / mem.s
1 # eBPF tests for MEM instructions, modulus lddw.
2
3         .text
4
5         ldabsw %r3, 0xbeef
6         ldabsh %r5, 0xbeef
7         ldabsb %r7, 0xbeef
8         ldabsdw %r9, 0xbeef
9         ldindw %r3, 0xbeef
10         ldindh %r5, 0xbeef
11         ldindb %r7, 0xbeef
12         ldinddw %r9, 0xbeef
13         ldxw %r2, [%r1+0x7eef]
14         ldxh %r2, [%r1+0x7eef]
15         ldxb %r2, [%r1+0x7eef]
16         ldxdw %r2, [%r1+-2]
17         stxw [%r1+0x7eef], %r2
18         stxh [%r1+0x7eef], %r2
19         stxb [%r1+0x7eef], %r2
20         stxdw [%r1+-2], %r2
21         stb [%r1+0x7eef], 0x11223344
22         sth [%r1+0x7eef], 0x11223344
23         stw [%r1+0x7eef], 0x11223344
24         stdw [%r1+-2], 0x11223344