From c7b0d495506976f989becd3f5d3ffc29af89d6c3 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Fri, 10 Jan 2020 08:41:11 -0800 Subject: [PATCH] Fix V128AndNot type mapping (#1319) Prior to this fix, `type_of` could not determine the Cranelift type for the parameters to `V128AndNot`. --- cranelift/wasm/src/code_translator.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cranelift/wasm/src/code_translator.rs b/cranelift/wasm/src/code_translator.rs index 68f9cac1ba..839a218dae 100644 --- a/cranelift/wasm/src/code_translator.rs +++ b/cranelift/wasm/src/code_translator.rs @@ -1715,6 +1715,7 @@ fn type_of(operator: &Operator) -> Type { | Operator::V128Const { .. } | Operator::V128Not | Operator::V128And + | Operator::V128AndNot | Operator::V128Or | Operator::V128Xor | Operator::V128Bitselect => I8X16, // default type representing V128 @@ -1858,7 +1859,8 @@ fn type_of(operator: &Operator) -> Type { | Operator::I64x2TruncSatF64x2U => F64X2, _ => unimplemented!( - "Currently only the SIMD instructions are translated to their return type: {:?}", + "Currently only SIMD instructions are mapped to their return type; the \ + following instruction is not mapped: {:?}", operator ), }