Browse Source

Fix nits

pull/2142/head
bjorn3 4 years ago
committed by Benjamin Bouvier
parent
commit
3dcda164dc
  1. 2
      cranelift/codegen/src/isa/x64/inst/mod.rs
  2. 2
      cranelift/codegen/src/isa/x64/lower.rs

2
cranelift/codegen/src/isa/x64/inst/mod.rs

@ -56,7 +56,7 @@ pub enum Inst {
dst: Writable<Reg>,
},
/// Bitwise negation
/// Bitwise not
Not {
size: u8, // 1, 2, 4 or 8
src: Writable<Reg>,

2
cranelift/codegen/src/isa/x64/lower.rs

@ -651,7 +651,7 @@ fn lower_insn_to_regs<C: LowerCtx<I = Inst>>(
_ => unreachable!(),
},
types::I32 | types::I64 => (dst_ty.bytes() as u8, input_to_reg(ctx, inputs[0])),
_ => unreachable!("{}", dst_ty),
_ => unreachable!("unhandled output type for shift/rotates: {}", dst_ty),
};
let (count, rhs) = if let Some(cst) = ctx.get_input(insn, 1).constant {

Loading…
Cancel
Save