[llvm-bugs] [Bug 38664] New: wasm32: Typo in wasm.memory.grow intrinsics opcode #
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Aug 21 16:08:12 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38664
Bug ID: 38664
Summary: wasm32: Typo in wasm.memory.grow intrinsics opcode #
Product: libraries
Version: trunk
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Backend: WebAssembly
Assignee: unassignedbugs at nondot.org
Reporter: alex at crichton.co
CC: dan433584 at gmail.com, llvm-bugs at lists.llvm.org
When using the `llvm.wasm.memory.grow.i32` intrinsics I've noticed that the
resulting wasm file fails to run through `wasm2wat`, apparently because it's
being codegened as the `memory.size` instruction (oh dear!).
Upon looking at the various definitions [1] it looks like the grow intrinsic is
defined with the 0x3f opcode (same as current_memory above), but it looks like
0x40 is needed instead?
[1]:
https://github.com/llvm-mirror/llvm/blob/5249baad0eaf2909da62f28252b05993263608f5/lib/Target/WebAssembly/WebAssemblyInstrMemory.td#L471-L492
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180821/603d9da4/attachment.html>
More information about the llvm-bugs
mailing list