cranelift: Add basic i128 support in interpreter

This commit is contained in:
Afonso Bordado
2021-07-23 12:15:00 +01:00
committed by Andrew Brown
parent 084383f60a
commit a2fb019ba7
7 changed files with 95 additions and 35 deletions

View File

@@ -30,7 +30,7 @@ pub enum DataValue {
}
impl DataValue {
/// Try to cast an immediate integer (a wrapped `i128` on most Cranelift instructions) to the
/// Try to cast an immediate integer (a wrapped `i64` on most Cranelift instructions) to the
/// given Cranelift [Type].
pub fn from_integer(imm: i128, ty: Type) -> Result<DataValue, DataValueCastFailure> {
match ty {