llvm-project/llvm/test/ExecutionEngine/JITLink/x86-64/MachO_foo-in-weak-dylib.s
Aiden Grossman 6ba25c1a56
[llvm] Remove uses of %T in tests (#151621)
This patch removes all uses of %T from within LLVM tests. %T has been
deprecated for about seven years and use is not advised given it is not
unique per test and can thus lead to races. The goal of this is to
eventually remove support for %T from lit.
2025-08-01 08:24:56 -07:00

26 lines
621 B
ArmAsm

# RUN: yaml2obj -o %t.libfoo.dylib %S/Inputs/libFooUniversalDylib.yaml
# RUN: llvm-mc -triple=x86_64-apple-macosx10.9 -filetype=obj \
# RUN: -o %t.MachO_foo-in-weak-dylib.o %s
# RUN: llvm-jitlink -noexec %t.MachO_foo-in-weak-dylib.o \
# RUN: -weak_library %t.libfoo.dylib
#
# Check that -weak_library supports universal binaries.
.section __TEXT,__text,regular,pure_instructions
.build_version macos, 15, 0 sdk_version 15, 4
.globl _main
.p2align 4, 0x90
_main:
pushq %rbp
movq %rsp, %rbp
cmpl $101, %edi
jl LBB0_1
popq %rbp
jmp _foo
LBB0_1:
xorl %eax, %eax
popq %rbp
retq
.subsections_via_symbols