Skip to content

Add tests to check we don't confuse LLVM and builtin intrinsics. - #166366

Open
veluca93 wants to merge 1 commit into
rust-lang:mainfrom
veluca93:better-rustc-llvm-tests
Open

veluca93 wants to merge 1 commit into
rust-lang:mainfrom
veluca93:better-rustc-llvm-tests

Conversation

@veluca93

@veluca93 veluca93 commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

r? RalfJung

@rustbot

rustbot commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

miri is developed in its own repository. If the Miri part of this change can be broken out, consider making this change to rust-lang/miri instead. However, if Miri needs adjusting for rustc changes, just ignore this message.

cc @rust-lang/miri

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Nov 22, 2026
@rustbot

rustbot commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

RalfJung is not on the review rotation at the moment.
They may take a while to respond.

@rust-log-analyzer

This comment has been minimized.

@veluca93
veluca93 force-pushed the better-rustc-llvm-tests branch from 85b6fe3 to 2fbe3a1 Compare November 22, 2026 22:45
@veluca93

Copy link
Copy Markdown
Contributor Author

Turns out the compiler assert-fails in debug mode on any LLVM intrinsic that is not llvm.*, so testing this on the backend seems problematic...

@rust-bors

This comment has been minimized.

@veluca93
veluca93 force-pushed the better-rustc-llvm-tests branch from 2fbe3a1 to 929b04f Compare November 23, 2026 00:08
@rustbot

rustbot commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@veluca93
veluca93 force-pushed the better-rustc-llvm-tests branch from 929b04f to e67fb1b Compare November 28, 2026 11:55
@veluca93
veluca93 force-pushed the better-rustc-llvm-tests branch from e67fb1b to 406d5c1 Compare November 28, 2026 13:01
@RalfJung

Copy link
Copy Markdown
Member

Thanks. :-)

@bors r+ rollup

@rust-bors

rust-bors Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 406d5c1 has been tentatively approved by RalfJung

It will be put into the queue for this repository once PR CI succeeds.

@rust-bors rust-bors Bot 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 Nov 28, 2026
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 28, 2026
…r=RalfJung

Add tests to check we don't confuse LLVM and builtin intrinsics.

r? RalfJung
rust-bors Bot pushed a commit that referenced this pull request Nov 28, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #166232 (Fix considering `[u8; 0]` to have trivial ABI in layout)
 - #166663 (optimize `ArrayWindows::nth`)
 - #166693 (Make function signatures a separate type in `rustc_codegen_llvm`)
 - #166699 (rustc_serialize: Remove unnecessary lifetime from `FileEncoder`)
 - #166366 (Add tests to check we don't confuse LLVM and builtin intrinsics.)
rust-bors Bot pushed a commit that referenced this pull request Nov 28, 2026
…uwer

Rollup of 5 pull requests

Successful merges:

 - #166232 (Fix considering `[u8; 0]` to have trivial ABI in layout)
 - #166663 (optimize `ArrayWindows::nth`)
 - #166693 (Make function signatures a separate type in `rustc_codegen_llvm`)
 - #166699 (rustc_serialize: Remove unnecessary lifetime from `FileEncoder`)
 - #166366 (Add tests to check we don't confuse LLVM and builtin intrinsics.)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

4 participants