Skip to content

Commit

Permalink
Add if else
Browse files Browse the repository at this point in the history
  • Loading branch information
sydhds committed Jan 12, 2023
1 parent ba10624 commit 2d05574
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/compiler-singlepass/src/emitter_x64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,11 @@ macro_rules! sse_round_fn {
|emitter: &mut AssemblerX64, precision: Precision, src1: XMM, src2: XMMOrMemory, dst: XMM| {
match src2 {
XMMOrMemory::XMM(x) => {
move_src_to_dst(emitter, precision, x, dst);
if src1 == x {
move_src_to_dst(emitter, precision, x, dst);
} else {
move_src_to_dst(emitter, precision, src1, dst);
}
dynasm!(emitter ; $ins Rx((dst as u8)), Rx((dst as u8)), $mode)
}
XMMOrMemory::Memory(base, disp) => {
Expand Down

0 comments on commit 2d05574

Please sign in to comment.