summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2015-11-05 20:59:49 +0000
committerDan Gohman <dan433584@gmail.com>2015-11-05 20:59:49 +0000
commitb9ce5a8b6c06836418355fb6bbdcff5edde33fef (patch)
tree5415c4a48377e03c8a2ffb0224490ffdd99db20d
parent3b7df53d049afd587bc0340549780a2137d12555 (diff)
downloadbcm5719-llvm-b9ce5a8b6c06836418355fb6bbdcff5edde33fef.tar.gz
bcm5719-llvm-b9ce5a8b6c06836418355fb6bbdcff5edde33fef.zip
[WebAssembly] Fix copypasta.
Noticed by dschff in http://reviews.llvm.org/rL252203 llvm-svn: 252208
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrInteger.td2
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td4
2 files changed, 3 insertions, 3 deletions
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),
OpenPOWER on IntegriCloud