-
Notifications
You must be signed in to change notification settings - Fork 81
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
xdsl/dialects/x86/ops.py
Outdated
""" | ||
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. |
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.
we've been using "source" and "destination" in riscv and asm, would that make sense as a description in x86 land also?
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.
done
""" | ||
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. |
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.
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]] |
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.
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?
Addresses this issue