Skip to content

intrinsic-test: sve type parsing and constraints#2121

Merged
adamgemmell merged 3 commits into
rust-lang:mainfrom
davidtwco:intrinsic-test-sve-types
May 20, 2026
Merged

intrinsic-test: sve type parsing and constraints#2121
adamgemmell merged 3 commits into
rust-lang:mainfrom
davidtwco:intrinsic-test-sve-types

Conversation

@davidtwco
Copy link
Copy Markdown
Member

First initial changes for SVE support in intrinsic-test:

  • Simplifies ArmIntrinsicType, removing the unused target field
  • Updates parse_intrinsic_type to be able to parse SVE types, updating simd_len to be able to represent both Scalable and Fixed(u32) length vectors, with minimal changes to keep the users of this field working even if they'll need further changes to actually support the Scalable case properly
  • Updates Constraint to support additional constraint kinds that we'll want to test for SVE, and adds logic to insert these constraints where appropriate.

This patch doesn't actually test any SVE intrinsics yet, so none of this additional logic is hit yet, but I've confirmed that it does the right things locally when the filter for Neon intrinsics is removed.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 19, 2026

r? @adamgemmell

rustbot has assigned @adamgemmell.
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, @adamgemmell, @davidtwco, @folkertdev, @sayantn
  • @Amanieu, @adamgemmell, @davidtwco, @folkertdev, @sayantn expanded to Amanieu, adamgemmell, davidtwco, folkertdev, sayantn
  • Random selection from Amanieu, adamgemmell, folkertdev, sayantn

@rustbot

This comment has been minimized.

@davidtwco davidtwco force-pushed the intrinsic-test-sve-types branch from 4e0895e to ccc9b59 Compare May 20, 2026 08:29
@rustbot

This comment has been minimized.

@rustbot

This comment was marked as resolved.

`ArmIntrinsicType` does not need a `target` field and
`parse_intrinsic_type` can be a free function that returns an
`IntrinsicType` which can be wrapped in an `ArmIntrinsicType` by the
caller.
@davidtwco davidtwco force-pushed the intrinsic-test-sve-types branch from ccc9b59 to f91b183 Compare May 20, 2026 14:05
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 20, 2026

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.

Copy link
Copy Markdown
Contributor

@adamgemmell adamgemmell left a comment

Choose a reason for hiding this comment

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

LGTM after fixing these comments

View changes since this review

Comment thread crates/intrinsic-test/src/arm/types.rs Outdated
Comment thread crates/intrinsic-test/src/arm/types.rs Outdated
davidtwco added 2 commits May 20, 2026 14:31
Updates `parse_intrinsic_type` to support SVE intrinsic types, with the
limited changes required to `IntrinsicType` and relevant users of the
`simd_len` to preserve existing behaviour, assuming the tool never
attempts to generate tests for SVE intrinsics (which it doesn't yet)
@davidtwco davidtwco force-pushed the intrinsic-test-sve-types branch from f91b183 to a009d5d Compare May 20, 2026 14:31
@adamgemmell adamgemmell enabled auto-merge May 20, 2026 14:37
@davidtwco davidtwco requested a review from adamgemmell May 20, 2026 14:49
@adamgemmell adamgemmell added this pull request to the merge queue May 20, 2026
Merged via the queue into rust-lang:main with commit 2d98408 May 20, 2026
74 checks passed
@davidtwco davidtwco deleted the intrinsic-test-sve-types branch May 20, 2026 15:16
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