1# RUN: llvm-mc -triple=bpfel -filetype=obj -o %t %s
2# RUN: llvm-rtdyld -triple=bpfel -verify -check=%s %t
3
4# test R_BPF_64_64 and R_BPF_64_NODYLD32 relocations, both should be ignored.
5
6	.globl	_main
7	.p2align	3
8	.type	_main,@function
9_main:                                  # @_main
10	r1 = a ll
11
12# rtdyld-check: decode_operand(_main, 1)[31:0] = 0x0
13
14	r0 = *(u32 *)(r1 + 0)
15	exit
16.Lfunc_end0:
17	.size	_main, .Lfunc_end0-_main
18                                        # -- End function
19
20	.type	a,@object                       # @a
21	.section	.bss,"aw",@nobits
22	.globl	a
23	.p2align	2
24a:
25	.long	0                               # 0x0
26	.size	a, 4
27
28# rtdyld-check: *{4}a = 0
29
30	.section	.BTF,"",@progbits
31	.short	60319                           # 0xeb9f
32	.byte	1
33	.byte	0
34	.long	24
35	.long	0
36	.long	80
37	.long	80
38	.long	87
39	.long	0                               # BTF_KIND_FUNC_PROTO(id = 1)
40	.long	218103808                       # 0xd000000
41	.long	2
42	.long	1                               # BTF_KIND_INT(id = 2)
43	.long	16777216                        # 0x1000000
44	.long	4
45	.long	16777248                        # 0x1000020
46	.long	5                               # BTF_KIND_FUNC(id = 3)
47	.long	201326593                       # 0xc000001
48	.long	1
49	.long	80                              # BTF_KIND_VAR(id = 4)
50	.long	234881024                       # 0xe000000
51	.long	2
52	.long	1
53	.long	82                              # BTF_KIND_DATASEC(id = 5)
54	.long	251658241                       # 0xf000001
55	.long	0
56	.long	4
57btf_a:
58	.long	a
59
60# rtdyld-check: *{4}btf_a = 0
61
62	.long	4
63	.byte	0                               # string offset=0
64	.ascii	"int"                           # string offset=1
65	.byte	0
66	.ascii	"_main"                         # string offset=5
67	.byte	0
68	.ascii	".text"                         # string offset=11
69	.byte	0
70	.ascii	"/home/yhs/work/tests/llvm/rtdyld/t.c" # string offset=17
71	.byte	0
72	.ascii	"int _main() { return a; }"     # string offset=54
73	.byte	0
74	.byte	97                              # string offset=80
75	.byte	0
76	.ascii	".bss"                          # string offset=82
77	.byte	0
78