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

Add set_alignment and get_alignment on InstructionValue. #114

Merged
merged 4 commits into from
Sep 3, 2019

Conversation

nlewycky
Copy link
Contributor

Description

Adds the ability to get and set alignment on instructions. Copied the approach of getting and setting volatile. Added tests for volatile too when adding tests for alignment.

Related Issue

Related to issue #110. This doesn't add the type safety discussed in that issue, which is closer to #8 and #16.

How This Has Been Tested

Tests!

Checklist

… message on failure.

It's still not safe because we don't check whether the value is a memory instruction.

Add tests for alignment and volatile getters/setters.
@TheDan64 TheDan64 self-requested a review August 27, 2019 23:04
@codecov
Copy link

codecov bot commented Aug 28, 2019

Codecov Report

Merging #114 into master will increase coverage by 0.55%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #114      +/-   ##
==========================================
+ Coverage   60.27%   60.82%   +0.55%     
==========================================
  Files          30       30              
  Lines        1850     1866      +16     
==========================================
+ Hits         1115     1135      +20     
+ Misses        735      731       -4
Impacted Files Coverage Δ
src/values/instruction_value.rs 65.42% <100%> (+10.47%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3630b97...3464374. Read the comment docs.

@TheDan64 TheDan64 merged commit da3760a into TheDan64:master Sep 3, 2019
@nlewycky nlewycky deleted the mem-alignment branch April 8, 2020 17:37
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