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

Shift args #130

Open
marcfedorow opened this issue Jan 20, 2022 · 0 comments
Open

Shift args #130

marcfedorow opened this issue Jan 20, 2022 · 0 comments

Comments

@marcfedorow
Copy link

The following will simplify shifter logic (and also allow to merge SIMD and regular shifters easier):

  1. In imm shifts (as kslli8) let chunk[25:20+len(imm)] bits be 0;
  2. In reg shifts (as ksll8) if val(rs2) is not in shift range, result is implementation defined.
    KSLRA's input should be properly sign extended; no exceptions like sa = (sa == 8)? 7 : sa;.

This will be somehow similar to C/C++ standards where int64_t >> 64 is an UB.

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

No branches or pull requests

1 participant