-
Notifications
You must be signed in to change notification settings - Fork 6
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
Merge upstream #2
base: master
Are you sure you want to change the base?
Conversation
Patched erroneous assembly statement for CADDI4SPN instruction
X[rd % RFS] = (unsigned<XLEN>)(signed<32>)((signed<32>)X[rs1 % RFS] * (signed<32>)X[rs2 % RFS]); | ||
} | ||
behavior: if(rd >=RFS || rs1>=RFS || rs2>=RFS) raise(0, 2); else { | ||
if(rd!=0) X[rd] = (signed<64>)((signed<32>)X[rs1] * (signed<32>)X[rs2]); |
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.
Unsure about this change here...
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.
will also break on 128 bit cores; also signed / unsigned assignment
@wysiwyng I would appreciate it if you could have a look at the open threads as well. The RISC-V spec is not really explicit regarding the signedness here. |
Maybe also @Samanti-Das because some of the "conflicting" changes have been added by you. |
Look at the comments, there's a few things I disagree with. This is also our development repository, so making pull requests back to upstream is also encouraged. I don't really like the way the RVE handling is done, the old handling |
I am currently looking into this.
In my option most of these illegal instruction exceptions should not be generated in the instructions behavior. There should be a way to specify constrains on fields/operands in the encoding. If you agree with me, I can open up an Issue to discuss that publicly. |
Let's try to keep track with the latest upstream changes. This is a draft because I am not 100% sure about a few merges i did and this is currently untested.
TODO: