From b9ce5a8b6c06836418355fb6bbdcff5edde33fef Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Thu, 5 Nov 2015 20:59:49 +0000 Subject: [WebAssembly] Fix copypasta. Noticed by dschff in http://reviews.llvm.org/rL252203 llvm-svn: 252208 --- llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td | 2 +- llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Target') diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td index d38be099332..4b45ccb3907 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td +++ b/llvm/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/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td index f7180a04d42..e08abafb6d2 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td +++ b/llvm/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), -- cgit v1.2.3