-
Notifications
You must be signed in to change notification settings - Fork 296
Adding the x86 part of behavioural testing for std::arch intrinsics #1814
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
Draft
madhav-madhusoodanan
wants to merge
26
commits into
rust-lang:master
Choose a base branch
from
madhav-madhusoodanan:x86_extension_intrinsic_test
base: master
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.
Draft
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
4a3d05f
fix: updated function definition of "from_c" in IntrinsicTypeDefinition
madhav-madhusoodanan 38fd826
Feat: started the skeleton for x86 module, added XML intrinsic parsin…
madhav-madhusoodanan a786643
feat: added functionality to convert XML description of intrinsics to
madhav-madhusoodanan 7b8e08c
feat: added the simple set of argument types for X86 intrinsics
madhav-madhusoodanan e95bd9b
feat: added X86IntrinsicType parsing from string.
madhav-madhusoodanan 241f309
fix: removing Box<> types from IntrinsicType in "from_c" definition for
madhav-madhusoodanan c77800a
feat: implemented c_type for X86IntrinsicType
madhav-madhusoodanan 287b83c
Sharpening the parsing logic:
madhav-madhusoodanan 6ee8e57
feat: demote "target" to a 2nd class variable, since it is only rarely
madhav-madhusoodanan 16bd12c
Add x86/config.rs to intrinsic-test
madhav-madhusoodanan e827a04
Fix: unused variables.
madhav-madhusoodanan 2784b45
feat: fetching c_type representation from IntrinsicType's hashmap dir…
madhav-madhusoodanan d0f2d78
feat: changed from TypeKind::Int(bool) to TypeKind::Int(Sign) for more
madhav-madhusoodanan 758d7ec
Feat: setup load function for x86 intrinsics
madhav-madhusoodanan 6e190b2
feat: implemented c_single_vector_type and fixed logical errors in
madhav-madhusoodanan e947072
feat: added vector types to support intrinsics that does not represent a
madhav-madhusoodanan e57c4bf
feat: added memsize and rust_type implementation
madhav-madhusoodanan 5b89089
feat: added initial functionality for building Rust files
madhav-madhusoodanan 2624722
Added output comparison functionality
madhav-madhusoodanan 9cd1cb0
feat: moved to_range to to_vector for extended iteration capabilities
madhav-madhusoodanan 20b5d3b
Added constraint mapping
madhav-madhusoodanan 661bf30
feat: added x86 C compilation and CI pipeline for testing x86 intrinsics
madhav-madhusoodanan cc33f60
Merge branch 'master' into x86_extension_intrinsic_test
madhav-madhusoodanan 1d89c29
fix: update CI to avoid override issues
madhav-madhusoodanan a321ab4
Support generate_files option to skip file compilation and execution
madhav-madhusoodanan b705435
Fixed merge conflicts with master
madhav-madhusoodanan 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
use crate::arm::intrinsic::ArmIntrinsicType; | ||
use crate::common::argument::Argument; | ||
|
||
impl Argument<ArmIntrinsicType> { | ||
pub fn type_and_name_from_c(arg: &str) -> (&str, &str) { | ||
let split_index = arg | ||
.rfind([' ', '*']) | ||
.expect("Couldn't split type and argname"); | ||
|
||
(arg[..split_index + 1].trim_end(), &arg[split_index + 1..]) | ||
} | ||
} |
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.
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.
I believe
create_dir_all
has the semantics that you want here (just return succes if the path already exists)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.
Ohh, I noticed your comments only after I pushed some updates.
I'll fix this, thank you for pointing out.