Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

tests: assembly: cstring-merging: Disable GlobalMerge pass#144150

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Gelbpunkt wants to merge1 commit intorust-lang:master
base:master
Choose a base branch
Loading
fromGelbpunkt:globalmerge

Conversation

Gelbpunkt
Copy link
Contributor

The test relies on LLVM not merging all the globals into one and would currently otherwise fail on powerpc64le.

Seehttps://github.com/llvm/llvm-project/blob/release/20.x/llvm/lib/CodeGen/GlobalMerge.cpp and here's the assembly generated prior to disabling the pass:

Expand me
.abiversion2.file"cstring_merging.5aa81ea7b99b31fe-cgu.0".section.text.cstr,"ax",@progbits.globlcstr.p2align4.typecstr,@functioncstr:.Lfunc_begin0:.cfi_startproc.Lfunc_gep0:addis2,12, .TOC.-.Lfunc_gep0@haaddi2,2, .TOC.-.Lfunc_gep0@l.Lfunc_lep0:.localentrycstr, .Lfunc_lep0-.Lfunc_gep0addis3,2, .L_MergedGlobals@toc@hali4,4addi3,3, .L_MergedGlobals@toc@laddi3,3,4blr.long0.quad0.Lfunc_end0:.sizecstr, .Lfunc_end0-.Lfunc_begin0.cfi_endproc.section.text.manual_cstr,"ax",@progbits.globlmanual_cstr.p2align4.typemanual_cstr,@functionmanual_cstr:.Lfunc_begin1:.cfi_startproc.Lfunc_gep1:addis2,12, .TOC.-.Lfunc_gep1@haaddi2,2, .TOC.-.Lfunc_gep1@l.Lfunc_lep1:.localentrymanual_cstr, .Lfunc_lep1-.Lfunc_gep1addis3,2, .L_MergedGlobals@toc@hali4,4addi3,3, .L_MergedGlobals@toc@laddi3,3,8blr.long0.quad0.Lfunc_end1:.sizemanual_cstr, .Lfunc_end1-.Lfunc_begin1.cfi_endproc.typeCSTR,@object.section.data.rel.ro.CSTR,"aw",@progbits.globlCSTR.p2align3,0x0CSTR:.quad.L_MergedGlobals.sizeCSTR,8.type.L_MergedGlobals,@object.section.rodata..L_MergedGlobals,"a",@progbits.L_MergedGlobals:.asciz"foo".asciz"bar".asciz"baz".size.L_MergedGlobals,12.set .Lanon.a643e9a6bba67b7953be2b5f96e0e802.0, .L_MergedGlobals.size.Lanon.a643e9a6bba67b7953be2b5f96e0e802.0,4.set .Lanon.a643e9a6bba67b7953be2b5f96e0e802.1, .L_MergedGlobals+4.size.Lanon.a643e9a6bba67b7953be2b5f96e0e802.1,4.set .Lanon.a643e9a6bba67b7953be2b5f96e0e802.2, .L_MergedGlobals+8.size.Lanon.a643e9a6bba67b7953be2b5f96e0e802.2,4.ident"rustc version 1.90.0-dev".section".note.GNU-stack","",@progbits

The test relies on LLVM not merging all the globals into one and wouldcurrently otherwise fail on powerpc64le.Signed-off-by: Jens Reidel <adrian@travitia.xyz>
@rustbot
Copy link
Collaborator

r?@Mark-Simulacrum

rustbot has assigned@Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

User? to explicitly pick a reviewer

@rustbotrustbot added S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties. T-compilerRelevant to the compiler team, which will review and decide on the PR/issue. labelsJul 18, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees

@Mark-SimulacrumMark-Simulacrum

Labels
S-waiting-on-reviewStatus: Awaiting review from the assignee but also interested parties.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@Gelbpunkt@rustbot@Mark-Simulacrum

[8]ページ先頭

©2009-2025 Movatter.jp