Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@wannacu
Copy link
Contributor

@wannacu wannacu commented Aug 4, 2023

No description provided.

MOV32w(x1, 1);
LSLxw_REG(x1, x1, x2);
EORx_REG(ed, ed, x1);
ORRx_REG(ed, ed, x1);
Copy link
Owner

Choose a reason for hiding this comment

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

because there is a B_NEXT(cNE) before, in here the we know the bit is 0, so EOR is the same as ORR (but ORR is more clear)

MOV32w(x1, 1);
LSLxw_REG(x1, x1, x2);
EORx_REG(ed, ed, x1);
BICx_REG(ed, ed, x1);
Copy link
Owner

Choose a reason for hiding this comment

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

Same as bifore, we know th bit is 1 here, so EOR is same as BIC

@ptitSeb ptitSeb merged commit 0f7b231 into ptitSeb:main Aug 4, 2023
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