[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / bolt / test / AArch64 / update-weak-reference-symbol.s
blob46819e888b08e496fa49f524aa8ef32ce4879bdb
1 // This test checks whether BOLT can correctly handle relocations against weak symbols.
3 // RUN: %clang %cflags -Wl,-z,notext -shared -Wl,-q %s -o %t.so
4 // RUN: llvm-bolt %t.so -o %t.so.bolt
5 // RUN: llvm-nm -n %t.so.bolt > %t.out.txt
6 // RUN: llvm-objdump -z -dj .rodata %t.so.bolt >> %t.out.txt
7 // RUN: FileCheck %s --input-file=%t.out.txt
9 # CHECK: w func_1
10 # CHECK: {{0+}}[[#%x,ADDR:]] W func_2
12 # CHECK: {{.*}} <.rodata>:
13 # CHECK-NEXT: {{.*}} .word 0x00000000
14 # CHECK-NEXT: {{.*}} .word 0x00000000
15 # CHECK-NEXT: {{.*}} .word 0x{{[0]+}}[[#ADDR]]
16 # CHECK-NEXT: {{.*}} .word 0x00000000
18 .text
19 .weak func_2
20 .weak func_1
21 .global wow
22 .type wow, %function
23 wow:
24 bl func_1
25 bl func_2
26 ret
27 .type func_2, %function
28 func_2:
29 ret
30 .section .rodata
31 .LC0:
32 .xword func_1
33 .LC1:
34 .xword func_2