Skip to content

Allow primitive types in the code generator and add vdup instructions #1114

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

Merged
merged 7 commits into from
Apr 12, 2021

Conversation

SparrowLii
Copy link
Member

This PR does the following:

  1. Enhance the code generator so that primitive types can be used
  2. Enhance code generator to generate more flexible suffixes
  3. Add vdup neon instructions to test 1 and 2.

@rust-highfive
Copy link

r? @Amanieu

(rust-highfive has picked a reviewer for you, use r? to override)

n = HFLEN
validate 0

aarch64 = str
Copy link
Member

Choose a reason for hiding this comment

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

Rather than using a "fake" instruction like this, could you instead somehow mark this intrinsic as not requiring an instruction test?

Copy link
Member

Choose a reason for hiding this comment

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

This can cause issues like #1104 (comment) when running the tests in release mode.

Copy link
Member Author

Choose a reason for hiding this comment

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

It seems that the result of llvm is different in release mode? I will try to correct the test.

@Amanieu Amanieu merged commit f3d5e7d into rust-lang:master Apr 12, 2021
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