[WebAssembly] Fix copypasta.
authorDan Gohman <dan433584@gmail.com>
Thu, 5 Nov 2015 20:59:49 +0000 (20:59 +0000)
committerDan Gohman <dan433584@gmail.com>
Thu, 5 Nov 2015 20:59:49 +0000 (20:59 +0000)
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
lib/Target/WebAssembly/WebAssemblyInstrMemory.td

index d38be0993320489673ae01e7b4881bfc6cbf11e2..4b45ccb3907fece416e06472def88dfb0582f653 100644 (file)
@@ -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">;
 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">;
index f7180a04d42e060c0a7d143a3381613ff1cf36e0..e08abafb6d233b3cc0c33b6cdfdadc6773b0d130 100644 (file)
@@ -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">;
 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)],
 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),
 
 // Truncating store.
 def STORE8_I32  : I<(outs), (ins I32:$addr, I32:$val),