Skip to content

loongarch: Avoid constant folding in tests to ensure SIMD coverage#2075

Open
heiher wants to merge 1 commit intorust-lang:mainfrom
heiher:loong64-tests-avoid-const-folding
Open

loongarch: Avoid constant folding in tests to ensure SIMD coverage#2075
heiher wants to merge 1 commit intorust-lang:mainfrom
heiher:loong64-tests-avoid-const-folding

Conversation

@heiher
Copy link
Copy Markdown
Contributor

@heiher heiher commented Apr 9, 2026

Use black_box on SIMD intrinsic inputs to prevent the compiler from constant folding SIMD operations, ensuring the corresponding SIMD instructions are actually emitted and covered by tests.

Use `black_box` on SIMD intrinsic inputs to prevent the compiler from
constant folding SIMD operations, ensuring the corresponding SIMD
instructions are actually emitted and covered by tests.
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 9, 2026

r? @sayantn

rustbot has assigned @sayantn.
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

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @Amanieu, @folkertdev, @sayantn
  • @Amanieu, @folkertdev, @sayantn expanded to Amanieu, folkertdev, sayantn
  • Random selection from Amanieu, folkertdev, sayantn

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants