diff --git a/lib/Target/WebAssembly/WebAssemblyInstrInteger.td b/lib/Target/WebAssembly/WebAssemblyInstrInteger.td index d38be099332..4b45ccb3907 100644 --- a/lib/Target/WebAssembly/WebAssemblyInstrInteger.td +++ b/lib/Target/WebAssembly/WebAssemblyInstrInteger.td @@ -52,4 +52,4 @@ def SELECT_I32 : I<(outs I32:$dst), (ins I32:$cond, I32:$lhs, I32:$rhs), "i32.select $dst, $cond, $lhs, $rhs">; def SELECT_I64 : I<(outs I64:$dst), (ins I32:$cond, I64:$lhs, I64:$rhs), [(set I64:$dst, (select I32:$cond, I64:$lhs, I64:$rhs))], - "i32.select $dst, $cond, $lhs, $rhs">; + "i64.select $dst, $cond, $lhs, $rhs">; diff --git a/lib/Target/WebAssembly/WebAssemblyInstrMemory.td b/lib/Target/WebAssembly/WebAssemblyInstrMemory.td index f7180a04d42..e08abafb6d2 100644 --- a/lib/Target/WebAssembly/WebAssemblyInstrMemory.td +++ b/lib/Target/WebAssembly/WebAssemblyInstrMemory.td @@ -85,10 +85,10 @@ def STORE_I64 : I<(outs), (ins I32:$addr, I64:$val), "i64.store $addr, $val">; def STORE_F32 : I<(outs), (ins I32:$addr, F32:$val), [(store f32:$val, I32:$addr)], - "i64.store $addr, $val">; + "f32.store $addr, $val">; def STORE_F64 : I<(outs), (ins I32:$addr, F64:$val), [(store f64:$val, I32:$addr)], - "i64.store $addr, $val">; + "f64.store $addr, $val">; // Truncating store. def STORE8_I32 : I<(outs), (ins I32:$addr, I32:$val),