This commit is contained in:
bjorn3
2020-09-08 12:54:36 +02:00
committed by Benjamin Bouvier
parent 9999913a31
commit 3dcda164dc
2 changed files with 2 additions and 2 deletions

View File

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

View File

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