-
Notifications
You must be signed in to change notification settings - Fork 328
intrinsic-test: sve support #2160
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
davidtwco
wants to merge
15
commits into
rust-lang:main
Choose a base branch
from
davidtwco:intrinsic-test-sve
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 9 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
708a463
intrinsic-test: default to `--no-fail-fast`
davidtwco bc3c777
intrinsic-test: specializations as iterator
davidtwco dbcba56
intrinsic-test: impl `get_load_function` for SVE
davidtwco 27974a0
intrinsic-test: use `arm_sve.h` and target feats
davidtwco e5edbe7
intrinsic-test: `bool` test values
davidtwco f9dff7d
intrinsic-test: values for enum-typed constraints
davidtwco 94faefd
intrinsic-test: no test values for `svbool_t`
davidtwco d6909a4
intrinsic-test: introduce `predicate_function`
davidtwco 0f59585
intrinsic-test: sve comparison and predicates
davidtwco be5cbea
intrinsic-test: test values for `svbool_t`
davidtwco 714507c
intrinsic-test: enable non-baseline target features
davidtwco 4038db1
intrinsic-test: SVE float comparison
davidtwco 7023f35
intrinsic-test: stop skipping SVE intrinsics
davidtwco c04381b
intrinsic-test: print scalable vectors on test fail
davidtwco c89cacc
core_arch: redefine `svtrn{1,2}`
davidtwco File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there some way to print the diff for SVE? I would imagine it is difficult due to SVE being non-const sized, but is there some way? That would massively improve debuggability. One approach I can suggest is have some small functions that convert from SVE vectors to
&[T], e.g.this might work, with significantly less complexity
View changes since the review
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When I've needed to debug them, I've disabled the invocation of
intrinsic-testinintrinsic-test.shand added these snippets to the generated tests that I wanted to debug.For non-bool vectors, just replace the
x0_valandx1_valwith the vectors that you want to inspect, e.g.__rust_return_valueor__c_return_value:Similarly for bool vectors:
I'm not sure if what you've suggested will work, happy to try. I'm more than happy to make some improvements here for debuggability of the tests when they do fail, but could that be left to a follow-up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ended up doing this in the current patch because it was useful for working out what was going on with CI failures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, didn't understand what you meant by
thisandthe current patch, the GH version shows thesveorversion. Also, https://godbolt.org/z/a481YdW1P seems to work.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - by "this", I meant making it easier to debug failures, and "this current patch" being in this PR rather than a follow-up. I did it using the snippets that I shared rather than yours, while that patch does compile, I'm not sure it actually works in practice, see https://godbolt.org/z/ozev8Krqr - once you actually try and use those functions, you get an error from LLVM (that's something we'll need to fix on the rustc side so that we emit an error instead if you do something you shouldn't, but it is still a work-in-progress afterall).