[Instrumentation] Fix a warning
[llvm-project.git] / llvm / test / ExecutionEngine / JITLink / AArch64 / ELF_section_start_and_stop_symbols.s
blobf8e7ba96f006847e813f316a73da5b5c15dc66dd
1 # RUN: llvm-mc -triple=aarch64-unknown-linux-gnu -position-independent \
2 # RUN: -filetype=obj -o %t.o %s
3 # RUN: llvm-jitlink -noexec -check %s %t.o
5 .text
6 .file "elf_section_start_stop.c"
7 .globl main
8 .p2align 2
9 .type main,@function
10 main:
11 adrp x8, z
12 adrp x9, y
13 ldr w8, [x8, :lo12:z]
14 ldr w9, [x9, :lo12:y]
15 sub w0, w8, w9
16 ret
17 .Lfunc_end0:
18 .size main, .Lfunc_end0-main
20 .type x,@object
21 .section custom_section,"aw",@progbits
22 .globl x
23 .p2align 2
25 .word 42
26 .size x, 4
28 # jitlink-check: *{8}z = (*{8}y) + 4
30 .type y,@object
31 .data
32 .globl y
33 .p2align 3, 0x0
35 .xword __start_custom_section
36 .size y, 8
38 .type z,@object
39 .globl z
40 .p2align 3, 0x0
42 .xword __stop_custom_section
43 .size z, 8