-
Notifications
You must be signed in to change notification settings - Fork 275
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
Add arm_intrinsics.json
for intrinsic-test
and stdarch-verify
#1427
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +0,0 @@ | ||
[submodule "crates/intrinsic-test/acle"] | ||
path = crates/intrinsic-test/acle | ||
url = https://github.com/ARM-software/acle.git | ||
This file contains 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 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 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 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
Submodule acle
deleted from
5626f8
This file contains 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,15 +23,6 @@ vusdotq_lane_s32 | |
vusdotq_s32 | ||
vusdot_s32 | ||
|
||
# Implemented in Clang and stdarch but missing from CSV | ||
vtst_p16 | ||
vtstq_p16 | ||
|
||
# QEMU 6.0 doesn't support these instructions | ||
vmmlaq_s32 | ||
vmmlaq_u32 | ||
vusmmlaq_s32 | ||
|
||
# Implemented in Clang and stdarch for A64 only even though CSV claims A32 support | ||
__crc32d | ||
__crc32cd | ||
|
@@ -214,110 +205,29 @@ vrndx_f32 | |
vrndxq_f32 | ||
|
||
# LLVM select error in debug builds | ||
vqrshrn_n_s16 | ||
vqrshrn_n_s32 | ||
vqrshrn_n_s64 | ||
vqrshrn_n_u16 | ||
vqrshrn_n_u32 | ||
vqrshrn_n_u64 | ||
vqrshrun_n_s16 | ||
vqrshrun_n_s32 | ||
vqrshrun_n_s64 | ||
vqshrn_n_s16 | ||
vqshrn_n_s32 | ||
vqshrn_n_s64 | ||
vqshrn_n_u16 | ||
vqshrn_n_u32 | ||
vqshrn_n_u64 | ||
vqshrun_n_s16 | ||
vqshrun_n_s32 | ||
vqshrun_n_s64 | ||
vrshrn_n_s16 | ||
vrshrn_n_s32 | ||
vrshrn_n_s64 | ||
vrshrn_n_u16 | ||
vrshrn_n_u32 | ||
vrshrn_n_u64 | ||
vshrq_n_u64 | ||
vshr_n_u64 | ||
|
||
# Failing tests: stdarch has incorrect results compared to Clang | ||
vqshlu_n_s16 | ||
vqshlu_n_s32 | ||
vqshlu_n_s64 | ||
vqshlu_n_s8 | ||
vqshluq_n_s16 | ||
vqshluq_n_s32 | ||
vqshluq_n_s64 | ||
vqshluq_n_s8 | ||
vsli_n_p16 | ||
vsli_n_p8 | ||
vsli_n_s16 | ||
vsli_n_s32 | ||
vsli_n_s64 | ||
vsli_n_s8 | ||
vsli_n_u16 | ||
vsli_n_u32 | ||
vsli_n_u64 | ||
vsli_n_u8 | ||
vsliq_n_p16 | ||
vsliq_n_p8 | ||
vsliq_n_s16 | ||
vsliq_n_s32 | ||
vsliq_n_s64 | ||
vsliq_n_s8 | ||
vsliq_n_u16 | ||
vsliq_n_u32 | ||
vsliq_n_u64 | ||
vsliq_n_u8 | ||
vsri_n_p16 | ||
vsri_n_p8 | ||
vsri_n_s16 | ||
vsri_n_s32 | ||
vsri_n_s64 | ||
vsri_n_s8 | ||
vsri_n_u16 | ||
vsri_n_u32 | ||
vsri_n_u64 | ||
vsri_n_u8 | ||
vsriq_n_p16 | ||
vsriq_n_p8 | ||
vsriq_n_s16 | ||
vsriq_n_s32 | ||
vsriq_n_s64 | ||
vsriq_n_s8 | ||
vsriq_n_u16 | ||
vsriq_n_u32 | ||
vsriq_n_u64 | ||
vsriq_n_u8 | ||
|
||
# These produce a different result on Clang depending on the optimization level. | ||
# This is definitely a bug in LLVM. | ||
vadd_f32 | ||
vaddq_f32 | ||
vcvt_s32_f32 | ||
vcvt_u32_f32 | ||
vcvtq_s32_f32 | ||
vcvtq_u32_f32 | ||
vfma_f32 | ||
vfma_n_f32 | ||
vfmaq_f32 | ||
vfmaq_n_f32 | ||
vfms_f32 | ||
vfmsq_f32 | ||
vmla_f32 | ||
vmla_lane_f32 | ||
vmla_n_f32 | ||
vmlaq_f32 | ||
vmlaq_lane_f32 | ||
vmlaq_n_f32 | ||
vmls_f32 | ||
vmls_lane_f32 | ||
vmls_n_f32 | ||
vmlsq_f32 | ||
vmlsq_lane_f32 | ||
vmlsq_n_f32 | ||
vmul_lane_f32 | ||
vmul_n_f32 | ||
vmulq_lane_f32 | ||
vmulq_n_f32 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Have you checked this by trying the C version without the -O2 flag? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have, everything passes on aarch64 and armv7 with Rust |
||
#vqrshrn_n_s16 | ||
#vqrshrn_n_s32 | ||
#vqrshrn_n_s64 | ||
#vqrshrn_n_u16 | ||
#vqrshrn_n_u32 | ||
#vqrshrn_n_u64 | ||
#vqrshrun_n_s16 | ||
#vqrshrun_n_s32 | ||
#vqrshrun_n_s64 | ||
#vqshrn_n_s16 | ||
#vqshrn_n_s32 | ||
#vqshrn_n_s64 | ||
#vqshrn_n_u16 | ||
#vqshrn_n_u32 | ||
#vqshrn_n_u64 | ||
#vqshrun_n_s16 | ||
#vqshrun_n_s32 | ||
#vqshrun_n_s64 | ||
#vrshrn_n_s16 | ||
#vrshrn_n_s32 | ||
#vrshrn_n_s64 | ||
#vrshrn_n_u16 | ||
#vrshrn_n_u32 | ||
#vrshrn_n_u64 | ||
#vshrq_n_u64 | ||
#vshr_n_u64 |
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.
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.
My understanding is that this issue is still present if
intrinsic-test
is changed to run the Rust code without--release
. The problem is due to the way we generate LLVM IR: we emit the vector argument as a constant and then load it, but LLVM's intrinsic only works if the vector is passed as an immediate to the intrinsics.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.
Yes, it's still there - hence why I've only commented these intrinsics out instead of removing them. We have a ticket to fix this in the future. The test tool currently runs in --release mode and I think it makes sense to extend coverage by including this set.