checkpoint

This commit is contained in:
2023-12-28 20:57:03 -08:00
parent 53a9d081bb
commit 7ebb31b42f
12 changed files with 166 additions and 31 deletions

View File

@@ -413,7 +413,10 @@ impl<M: Module> Backend<M> {
// negative number for us. Which sets the high bits, which makes Cranelift unhappy.
// So first we cast the i8 as u8, to get rid of the whole concept of sign extension,
// and *then* we cast to i64.
Ok((builder.ins().iconst(types::I8, v as u8 as i64), ConstantType::I8))
Ok((
builder.ins().iconst(types::I8, v as u8 as i64),
ConstantType::I8,
))
}
Value::I16(_, v) => Ok((
// see above note for the "... as ... as"