Skip to content

Commit

Permalink
use rax for x86_64 and 64 bit values
Browse files Browse the repository at this point in the history
  • Loading branch information
brxken128 committed Aug 15, 2023
1 parent 3f20948 commit 4902502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmov/src/x86.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ impl Cmov for u64 {
impl CmovEq for u64 {
#[inline]
fn cmoveq(&self, rhs: &Self, input: Condition, output: &mut Condition) {
cmov_eq!("cmovz {2:e}, {3:e}", self, rhs, input, output);
cmov_eq!("cmovz {2:r}, {3:r}", self, rhs, input, output);
}

#[inline]
fn cmovne(&self, rhs: &Self, input: Condition, output: &mut Condition) {
cmov_eq!("cmovnz {2:e}, {3:e}", self, rhs, input, output);
cmov_eq!("cmovnz {2:r}, {3:r}", self, rhs, input, output);
}
}

0 comments on commit 4902502

Please sign in to comment.