[libc] Switch to using the generic `<gpuintrin.h>` implementations (#121810)
[llvm-project.git] / lld / test / MachO / link-search-at-rpath.s
blob71d27fc5033bba8f40d1275fe9c0fc88bb573dbb
1 # REQUIRES: x86
3 # RUN: rm -rf %t; split-file %s %t
4 # RUN: mkdir %t/subdir
5 # RUN: mkdir %t/subdir2
7 # RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/foo.s -o %t/foo.o
8 # RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/bar.s -o %t/bar.o
9 # RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %t/main.s -o %t/main.o
11 # RUN: %lld -dylib -install_name @rpath/libfoo.dylib %t/foo.o -o %t/subdir/libfoo.dylib
13 # RUN: %lld -dylib -reexport_library %t/subdir/libfoo.dylib \
14 # RUN: -rpath @loader_path/../foo \
15 # RUN: -rpath @loader_path/../subdir \
16 # RUN: -rpath @loader_path/../foo \
17 # RUN: --no-warn-duplicate-rpath \
18 # RUN: %t/bar.o -o %t/subdir2/libbar.dylib
20 # RUN: %lld -lSystem %t/main.o %t/subdir2/libbar.dylib -o %t/test
21 # RUN: %lld -dylib -lSystem %t/main.o %t/subdir2/libbar.dylib -o %t/libtest.dylib
23 #--- foo.s
24 .globl _foo
25 _foo:
26 retq
28 #--- bar.s
29 .globl _bar
30 _bar:
31 retq
33 #--- main.s
34 .section __TEXT,__text
35 .global _main
36 _main:
37 callq _foo
38 callq _bar
39 ret