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

fix(imm): add sign-extended imm(#2) #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chaoRIOS
Copy link

Signed-off-by: chaoRIOS chao.w@rioslab.org

 * add sign-extended imm to I,S,B,U,J Types
 * remove imm masks in unittest
 * add unittest for issue (fintelia#2)

Signed-off-by: chaoRIOS <chao.w@rioslab.org>
@@ -44,7 +44,11 @@ impl CsrIType {
pub struct IType(pub u32);
impl IType {
pub fn imm(&self) -> u32 {
Copy link
Owner

Choose a reason for hiding this comment

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

Could you switch this to returning an i32 now?

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.

2 participants