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

bug: (x86) memory-to-register mv operation should not take two operands #3967

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

qaco
Copy link
Collaborator

@qaco qaco commented Feb 25, 2025

Addresses this issue

@qaco qaco added bug Something isn't working dialects Changes on the dialects backend Compiler backend in xDSL labels Feb 25, 2025
@qaco qaco self-assigned this Feb 25, 2025
@qaco qaco changed the title bug: (x86) mv op should not take two operands bug: (x86) memroy-to-register mv op should not take two operands Feb 25, 2025
Copy link

codecov bot commented Feb 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.12%. Comparing base (b4ec8eb) to head (b64d0f1).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3967      +/-   ##
==========================================
- Coverage   90.13%   90.12%   -0.01%     
==========================================
  Files         458      458              
  Lines       58317    58340      +23     
  Branches     5706     5710       +4     
==========================================
+ Hits        52563    52580      +17     
- Misses       4349     4354       +5     
- Partials     1405     1406       +1     

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

"""
Copies the value from the memory location pointed to by r2 into r1.
Copies the value from the memory location pointed to by operand register into output register.
Copy link
Member

Choose a reason for hiding this comment

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

we've been using "source" and "destination" in riscv and asm, would that make sense as a description in x86 land also?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done

@compor compor changed the title bug: (x86) memroy-to-register mv op should not take two operands bug: (x86) memory-to-register mv operation should not take two operands Feb 25, 2025
"""
Copies the value from the memory location pointed to by r2 into r1.
Copies the value from the memory location pointed to by source register into destination register.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
Copies the value from the memory location pointed to by source register into destination register.
Copies the value from the memory location pointed to by source register r1 into destination register r2.

```C
x[r1] = [x[r2]]
x[output] = [x[operand]]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you please adjust these based on r1 and r2 as per the rest of the file; I don't understand what output or operand is as they appear nowhere else in the API?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Compiler backend in xDSL bug Something isn't working dialects Changes on the dialects
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants