xref: /llvm-project/compiler-rt/test/orc/TestCases/Darwin/x86-64/Inputs/ret_self.S (revision 93509b4462a74c3f96eb576f1bbaaa26328e63b2)
1// A function that returns its own address. Handy for testing whether JIT'd code
2// and JIT symbol tables agree on addresses.
3
4        .section	__TEXT,__text,regular,pure_instructions
5	.build_version macos, 14, 0
6	.globl	_ret_self
7	.p2align	4, 0x90
8_ret_self:
9	leaq	_ret_self(%rip), %rax
10	retq
11
12.subsections_via_symbols
13