Skip to content

Comments

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

Open
chaoRIOS wants to merge 1 commit intofintelia:mainfrom
chaoRIOS:imm_signext
Open

fix(imm): add sign-extended imm(#2)#3
chaoRIOS wants to merge 1 commit intofintelia:mainfrom
chaoRIOS:imm_signext

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