Skip to content

Commit

Permalink
cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nlewycky committed Sep 30, 2019
1 parent 83eb7af commit 58cd7b9
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions lib/singlepass-backend/src/emitter_x64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,10 @@ impl Emitter for Assembler {
(Size::S16, Location::Memory(src, disp), Size::S64, Location::GPR(dst)) => {
dynasm!(self ; movzx Rq(dst as u8), WORD [Rq(src as u8) + disp]);
}
_ => panic!("singlepass can't emit MOVZX {:?} {:?} {:?} {:?}", sz_src, src, sz_dst, dst),
_ => panic!(
"singlepass can't emit MOVZX {:?} {:?} {:?} {:?}",
sz_src, src, sz_dst, dst
),
}
}
fn emit_movsx(&mut self, sz_src: Size, src: Location, sz_dst: Size, dst: Location) {
Expand Down Expand Up @@ -835,7 +838,10 @@ impl Emitter for Assembler {
(Size::S32, Location::Memory(src, disp), Size::S64, Location::GPR(dst)) => {
dynasm!(self ; movsx Rq(dst as u8), DWORD [Rq(src as u8) + disp]);
}
_ => panic!("singlepass can't emit MOVSX {:?} {:?} {:?} {:?}", sz_src, src, sz_dst, dst),
_ => panic!(
"singlepass can't emit MOVSX {:?} {:?} {:?} {:?}",
sz_src, src, sz_dst, dst
),
}
}

Expand Down Expand Up @@ -895,7 +901,10 @@ impl Emitter for Assembler {
(Size::S64, Location::GPR(src), Location::Memory(dst, disp)) => {
dynasm!(self ; lock xadd [Rq(dst as u8) + disp], Rq(src as u8));
}
_ => panic!("singlepass can't emit LOCK XADD {:?} {:?} {:?}", sz, src, dst),
_ => panic!(
"singlepass can't emit LOCK XADD {:?} {:?} {:?}",
sz, src, dst
),
}
}

Expand All @@ -913,7 +922,10 @@ impl Emitter for Assembler {
(Size::S64, Location::GPR(src), Location::Memory(dst, disp)) => {
dynasm!(self ; lock cmpxchg [Rq(dst as u8) + disp], Rq(src as u8));
}
_ => panic!("singlepass can't emit LOCK CMPXCHG {:?} {:?} {:?}", sz, src, dst),
_ => panic!(
"singlepass can't emit LOCK CMPXCHG {:?} {:?} {:?}",
sz, src, dst
),
}
}

Expand Down

0 comments on commit 58cd7b9

Please sign in to comment.