[llvm] r340373 - [WebAssembly] Fix typos in mem.grow/memory.grow opcodes

Heejin Ahn via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 21 17:33:34 PDT 2018


Author: aheejin
Date: Tue Aug 21 17:33:34 2018
New Revision: 340373

URL: http://llvm.org/viewvc/llvm-project?rev=340373&view=rev
Log:
[WebAssembly] Fix typos in mem.grow/memory.grow opcodes

This should be not 0x3f but 0x40.

Modified:
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrMemory.td

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrMemory.td
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrMemory.td?rev=340373&r1=340372&r2=340373&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrMemory.td (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyInstrMemory.td Tue Aug 21 17:33:34 2018
@@ -475,14 +475,14 @@ defm MEMORY_GROW_I32 : I<(outs I32:$dst)
                            (int_wasm_memory_grow (i32 imm:$flags),
                              I32:$delta))],
                          "memory.grow\t$dst, $flags, $delta",
-                         "memory.grow\t$flags, $delta", 0x3f>,
+                         "memory.grow\t$flags, $delta", 0x40>,
                        Requires<[HasAddr32]>;
 defm MEM_GROW_I32 : I<(outs I32:$dst), (ins i32imm:$flags, I32:$delta),
                       (outs), (ins i32imm:$flags),
                       [(set I32:$dst,
                             (int_wasm_mem_grow (i32 imm:$flags), I32:$delta))],
                       "mem.grow\t$dst, $flags, $delta", "mem.grow\t$flags",
-                      0x3f>,
+                      0x40>,
                     Requires<[HasAddr32]>;
 defm GROW_MEMORY_I32 : I<(outs I32:$dst), (ins i32imm:$flags, I32:$delta),
                          (outs), (ins i32imm:$flags),




More information about the llvm-commits mailing list