feat(interface-types) Implement s64-to-i32x and u64-to-i32x

Actually, `s64-to-i32` and `u64-to-i32` already error when overflow
happens.
This commit is contained in:
Ivan Enderlin 2020-03-03 17:17:26 +01:00
parent c617b1fa16
commit db99d2cabd

View File

@ -233,10 +233,8 @@ where
Instruction::U16ToI32 => instructions::u16_to_i32(),
Instruction::S32ToI32 => instructions::s32_to_i32(),
Instruction::U32ToI32 => instructions::u32_to_i32(),
Instruction::S64ToI32 => instructions::s64_to_i32(),
//Instruction::S64ToI32X
Instruction::U64ToI32 => instructions::u64_to_i32(),
//Instruction::U64ToI32X
Instruction::S64ToI32 | Instruction::S64ToI32X => instructions::s64_to_i32(),
Instruction::U64ToI32 | Instruction::U64ToI32X => instructions::u64_to_i32(),
Instruction::S8ToI64 => instructions::s8_to_i64(),
Instruction::U8ToI64 => instructions::u8_to_i64(),
Instruction::S16ToI64 => instructions::s16_to_i64(),