Files
compiler-explorer/test/demangle-cases/bug-7521-pic-rust.asm.demangle
narpfel 98c91227fa Fix go-to label with position-independent code (#7522)
Resolves #7521.

With this PR, `@...` suffixes are included in the clickable area for
go-to label.

This also affects PowerPC, where `@...` suffixes are a bit more common
(`@ha` and `@l` will also be marked as clickable).

---------

Co-authored-by: Matt Godbolt <matt@godbolt.org>
2025-04-17 12:25:28 -05:00

31 lines
848 B
Plaintext
Generated

example::doesnt_work_with_mangled_name::hf9824bdcef81f607:
lea rax, [rdi + 1]
ret
works_with_no_mangling:
lea rax, [rdi + 2]
ret
example::non_public_function::hb49d2e80d343be8b:
lea rax, [rdi + 3]
ret
example::another_function::h50be9330a2452582:
push r15
push r14
push rbx
mov rbx, rdi
call qword ptr [rip + example::doesnt_work_with_mangled_name::hf9824bdcef81f607@GOTPCREL]
mov r14, rax
mov rdi, rbx
call qword ptr [rip + works_with_no_mangling@GOTPCREL]
mov r15, rax
add r15, r14
mov rdi, rbx
call example::non_public_function::hb49d2e80d343be8b
add rax, r15
pop rbx
pop r14
pop r15
ret