Files
compiler-explorer/test/demangle-cases/bug-7521-powerpc.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

35 lines
749 B
Plaintext
Generated

some_namespace::function():
.quad .Lfunc_begin0
.quad .TOC.@tocbase
.quad 0
.Lfunc_begin0:
blr
main:
.quad .Lfunc_begin1
.quad .TOC.@tocbase
.quad 0
.Lfunc_begin1:
mflr 0
std 31, -8(1)
stdu 1, -144(1)
std 0, 160(1)
mr 31, 1
stw 3, 132(31)
std 4, 120(31)
addis 3, 2, .L.str@toc@ha
addi 3, 3, .L.str@toc@l
addis 4, 2, some_namespace::function()@toc@ha
addi 4, 4, some_namespace::function()@toc@l
bl std::printf(char const*, ...)
nop
li 3, 0
addi 1, 1, 144
ld 0, 16(1)
ld 31, -8(1)
mtlr 0
blr
.L.str:
.asciz "%zu\n"