Browse Source

Add x86 encodings for same-size bint conversions up to 64 bits

pull/1643/head
Andrew Brown 5 years ago
parent
commit
2048d3d30c
  1. 6
      cranelift/codegen/meta/src/isa/x86/encodings.rs

6
cranelift/codegen/meta/src/isa/x86/encodings.rs

@ -689,6 +689,12 @@ fn define_moves(e: &mut PerCpuModeEncodings, shared_defs: &SharedDefinitions, r:
} }
} }
} }
for (to, from) in &[(I16, B16), (I32, B32), (I64, B64)] {
e.enc_both(
bint.bind(*to).bind(*from),
rec_urm_noflags_abcd.opcodes(&MOVZX_BYTE),
);
}
// Copy Special // Copy Special
// For x86-64, only define REX forms for now, since we can't describe the // For x86-64, only define REX forms for now, since we can't describe the

Loading…
Cancel
Save