Skip to content

regression test for intrinsics may not inline properly on pclmulqdq #145001

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lucarlig
Copy link
Contributor

@lucarlig lucarlig commented Aug 6, 2025

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Aug 6, 2025
@lucarlig lucarlig marked this pull request as ready for review August 6, 2025 15:02
@rustbot
Copy link
Collaborator

rustbot commented Aug 6, 2025

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.

Use r? to explicitly pick a reviewer

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 6, 2025
@tgross35
Copy link
Contributor

tgross35 commented Aug 6, 2025

Since Nikita requested the test
r? @nikic

@rustbot rustbot assigned nikic and unassigned Mark-Simulacrum Aug 6, 2025
@nikic
Copy link
Contributor

nikic commented Aug 8, 2025

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 8, 2025

📌 Commit 988fc57 has been approved by nikic

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 8, 2025
tgross35 added a commit to tgross35/rust that referenced this pull request Aug 8, 2025
regression test for intrinsics may not inline properly on pclmulqdq

https://rust.godbolt.org/z/dWsa9ET99

Fixes rust-lang#139029
tgross35 added a commit to tgross35/rust that referenced this pull request Aug 8, 2025
regression test for intrinsics may not inline properly on pclmulqdq

https://rust.godbolt.org/z/dWsa9ET99

Fixes rust-lang#139029
bors added a commit that referenced this pull request Aug 8, 2025
Rollup of 7 pull requests

Successful merges:

 - #144039 (Use `tcx.short_string()` in more diagnostics)
 - #144192 (atomicrmw on pointers: move integer-pointer cast hacks into backend)
 - #144823 (coverage: Extract HIR-related helper code out of the main module)
 - #144987 (Enable f16 and f128 on targets that were fixed in LLVM21)
 - #145001 (regression test for intrinsics may not inline properly on pclmulqdq)
 - #145080 (Escape diff strings in MIR dataflow graphviz)
 - #145083 (Fix cross-compilation of Cargo)

r? `@ghost`
`@rustbot` modify labels: rollup
@tgross35
Copy link
Contributor

tgross35 commented Aug 8, 2025

@bors r-

Failed in #145090 (comment)

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 8, 2025
@tgross35
Copy link
Contributor

tgross35 commented Aug 8, 2025

Maybe this needs a //@ min-llvm-version: 20 directive? Not sure if there are possible changes to the relevant codegen between 19 and 20.

@Zalathar
Copy link
Contributor

Zalathar commented Aug 8, 2025

The problem here appears to be an open-ended // CHECK-NOT: call that gets triggered by an unrelated line after the end of the function being inspected.

// CHECK-NOT: call
// CHECK: call <2 x i64> @llvm.x86.pclmulqdq
// CHECK: call <2 x i64> @llvm.x86.pclmulqdq
// CHECK-NOT: call
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that this can match the nocallback attribute. I think we can avoid it by adding an extra // CHECK: ret after it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pclmulqdq intrinsics don't inline well across target_feature changes anymore
7 participants