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 cnv macro (and improviment asm_macro) #100

Merged
merged 1 commit into from
Jan 18, 2024

Conversation

theacdutra
Copy link
Contributor

@theacdutra theacdutra commented Jan 15, 2024

Description

This PR intent:

  • Fix cnv macro destination for arithmetic ops
  • Allow instruction with 3 parameters: first a literal and the other two registers.

@theacdutra theacdutra changed the title Fix cnv macro Fix cnv macro (and improviment asm_macro) Jan 15, 2024
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (a2157ca) 31.3% compared to head (98e1b4c) 31.2%.

Files Patch % Lines
src/isa/bytecode.rs 0.0% 6 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##           master    #100     +/-   ##
========================================
- Coverage    31.3%   31.2%   -0.1%     
========================================
  Files          23      23             
  Lines        6431    6467     +36     
========================================
+ Hits         2014    2018      +4     
- Misses       4417    4449     +32     
Flag Coverage Δ
rust 31.2% <0.0%> (-0.1%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +518 to +523
MoveOp::CpyA(sreg, sidx, dreg, didx) => {
writer.write_u3(sreg)?;
writer.write_u5(sidx)?;
writer.write_u3(dreg)?;
writer.write_u5(didx)?;
}
Copy link
Member

Choose a reason for hiding this comment

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

I wonder why I didn't just compressed all the same serialization into a single case...

Copy link
Member

@dr-orlovsky dr-orlovsky left a comment

Choose a reason for hiding this comment

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

ACK 98e1b4c

Thank you for addressing this

@dr-orlovsky dr-orlovsky added the bug Something isn't working label Jan 18, 2024
@dr-orlovsky dr-orlovsky merged commit 3e9bcfb into AluVM:master Jan 18, 2024
23 of 26 checks passed
@dr-orlovsky dr-orlovsky added this to the v0.11.0 milestone Feb 26, 2024
@theacdutra theacdutra deleted the fix/cnv branch March 4, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants