aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-bpf/reloc-insn32.s
blob: a53a0dc43f86b36031cbecd51131c94cb1b168f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
    .data
foo:
    .string "foo"
bar:
    .string "bar"
d64:
    .dword bar
d32:
    .word d64

    .text
main:
    mov %r1, bar
    jeq32 %r1, bar, baz
    ldabsdw d32
    exit

baz:
    add %r1, foo
    stw [%r2 + 8], d64