[X86][MC,LLD][NFC] Rename R_X86_64_REX2_GOTPCRELX (#116737)
[llvm-project.git] / lld / test / MachO / arm64-dtrace.s
blob36854195e3142b73239f782f54e19d26ec78373d
1 # REQUIRES: aarch64
2 # RUN: rm -rf %t; split-file %s %t
4 # RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %t/arm64-dtrace.s -o %t/arm64-dtrace.o
5 # RUN: %lld -arch arm64 -o %t/arm64-dtrace %t/arm64-dtrace.o
7 ## If references of dtrace symbols are handled by lld, their relocation should be replaced with the following instructions
8 # RUN: llvm-objdump --macho -D %t/arm64-dtrace | FileCheck %s --check-prefix=CHECK
10 # CHECK: 00 00 80 d2 mov x0, #0
12 # CHECK: 1f 20 03 d5 nop
14 #--- arm64-dtrace.s
15 .globl _main
16 _main:
17 bl ___dtrace_isenabled$Foo$added$v1
18 .reference ___dtrace_typedefs$Foo$v2
19 bl ___dtrace_probe$Foo$added$v1$696e74
20 .reference ___dtrace_stability$Foo$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_0
21 ret
23 .subsections_via_symbols