brintos

brintos / llvm-project-archived public Read only

0
0
Text · 967 B · 7caedca Raw
28 lines · plain
1# REQUIRES: x862# RUN: rm -rf %t; split-file %s %t3 4# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-darwin %t/x86_64-dtrace.s -o %t/x86_64-dtrace.o5# RUN: %lld -arch x86_64 -o %t/x86_64-dtrace %t/x86_64-dtrace.o6 7## If references of dtrace symbols are handled by lld, their relocation should be replaced with the following instructions8# RUN: llvm-objdump --macho -D %t/x86_64-dtrace | FileCheck %s --check-prefix=CHECK9 10# CHECK:      33 c0                   xorl    %eax, %eax11# CHECK-NEXT: 90                      nop12# CHECK-NEXT: 90                      nop13# CHECK-NEXT: 90                      nop14 15# CHECK:      90                      nop16# CHECK-NEXT: 0f 1f 40 00             nopl    (%rax)17 18#--- x86_64-dtrace.s19	.globl	_main20_main:21	callq	___dtrace_isenabled$Foo$added$v122	.reference	___dtrace_typedefs$Foo$v223	callq	___dtrace_probe$Foo$added$v1$696e7424	.reference	___dtrace_stability$Foo$v1$1_1_0_1_1_0_1_1_0_1_1_0_1_1_025	retq26 27.subsections_via_symbols28