From e6d3aa4a49e44110081658e4f811cd2cf0444ba0 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 5 Nov 2015 20:59:49 +0000 Subject: [PATCH] [WebAssembly] Fix copypasta. Noticed by dschff in http://reviews.llvm.org/rL252203 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252208 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/WebAssembly/WebAssemblyInstrInteger.td | 2 +- lib/Target/WebAssembly/WebAssemblyInstrMemory.td | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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), -- 2.34.1