Skip to content

Commit

Permalink
Added some missing emitter on x86_64 singlepass (for #3161)
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Aug 31, 2022
1 parent c52a828 commit 1c1a369
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/compiler-singlepass/src/emitter_x64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1417,6 +1417,12 @@ impl EmitterX64 for AssemblerX64 {
(Size::S16, Location::Memory(src, disp), Size::S64, Location::GPR(dst)) => {
dynasm!(self ; movzx Rq(dst as u8), WORD [Rq(src as u8) + disp]);
}
(Size::S32, Location::GPR(src), Size::S64, Location::GPR(dst)) => {
dynasm!(self ; movzx Rq(dst as u8), Rw(src as u8));
}
(Size::S32, Location::Memory(src, disp), Size::S64, Location::GPR(dst)) => {
dynasm!(self ; movzx Rq(dst as u8), WORD [Rq(src as u8) + disp]);
}
_ => {
codegen_error!(
"singlepass can't emit MOVZX {:?} {:?} {:?} {:?}",
Expand Down

0 comments on commit 1c1a369

Please sign in to comment.