Skip to content

Commit

Permalink
remove useless check
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinPostma committed Jan 15, 2025
1 parent 53d2d25 commit 5ef91f7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions winch/codegen/src/isa/x64/masm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1302,12 +1302,7 @@ impl Masm for MacroAssembler {
match extend {
// It is only necessary to zero-extend when the operand is less than 32bits.
// x64 automatically zero-extend 32bits to 64bit.
Some(
extend @ (ExtendKind::I32Extend8S
| ExtendKind::I64Extend8S
| ExtendKind::I64Extend16S
| ExtendKind::I32Extend16S),
) => {
Some(extend) => {
self.asm.movzx_rr(operand.to_reg(), operand, extend);
}
_ => (),
Expand Down

0 comments on commit 5ef91f7

Please # to comment.