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

[ARM64_DYNAREC] Fixed BT/BTC/BTR/BTS opcodes #922

Merged
merged 2 commits into from
Aug 4, 2023
Merged

Conversation

wannacu
Copy link
Contributor

@wannacu wannacu commented Aug 4, 2023

No description provided.

@@ -1809,7 +1810,7 @@ uintptr_t dynarec64_660F(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int n
B_NEXT(cNE);
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)

@@ -1872,7 +1873,7 @@ uintptr_t dynarec64_660F(dynarec_arm_t* dyn, uintptr_t addr, uintptr_t ip, int n
B_NEXT(cEQ);
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
22 checks passed
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.

None yet

2 participants