Skip to content
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

riscv64: Check that the minimum set of feature flags is enabled #6975

Merged
merged 5 commits into from
Sep 7, 2023

Conversation

afonso360
Copy link
Contributor

@afonso360 afonso360 commented Sep 7, 2023

👋 Hey,

This PR Is a follow up to #6955 where @alexcrichton suggested that we check that all the flags the backend currently expects.

Most of the backend does not even check these flags, so to avoid emitting instructions where there is no support for them, we reject building the ISA when they aren't present.

This PR also renames the INSTRUCTION_SIZE constant to something more suitable, since we are going to have varying instruction lengths.

@afonso360 afonso360 added the cranelift:area:riscv64 Issues related to the RISC-V 64 backend. label Sep 7, 2023
@afonso360 afonso360 requested a review from a team as a code owner September 7, 2023 13:12
@afonso360 afonso360 requested review from cfallin and removed request for a team September 7, 2023 13:12
afonso360 and others added 2 commits September 7, 2023 14:36
Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
@alexcrichton alexcrichton added this pull request to the merge queue Sep 7, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 7, 2023
@alexcrichton alexcrichton added this pull request to the merge queue Sep 7, 2023
@alexcrichton
Copy link
Member

Let's see just how transient that failure is

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 7, 2023
@afonso360 afonso360 added this pull request to the merge queue Sep 7, 2023
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:meta Everything related to the meta-language. labels Sep 7, 2023
Merged via the queue into bytecodealliance:main with commit 3f07d27 Sep 7, 2023
18 checks passed
@afonso360 afonso360 deleted the riscv-check-ext branch September 7, 2023 16:53
alexcrichton pushed a commit that referenced this pull request Sep 12, 2023
* riscv64: Add G extension predicate

Also adds descriptions to some existing flags

* riscv64: Restrict creating a backend without base features

* riscv64: Clarify INSTRUCTION_SIZE constant

* riscv64: Update wording on ISA flag error

Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>

* riscv64: Run rustfmt

---------

Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
eduardomourar pushed a commit to eduardomourar/wasmtime that referenced this pull request Sep 13, 2023
…codealliance#6975)

* riscv64: Add G extension predicate

Also adds descriptions to some existing flags

* riscv64: Restrict creating a backend without base features

* riscv64: Clarify INSTRUCTION_SIZE constant

* riscv64: Update wording on ISA flag error

Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>

* riscv64: Run rustfmt

---------

Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift:area:riscv64 Issues related to the RISC-V 64 backend. cranelift:meta Everything related to the meta-language. cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants