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: unassignedb...@nondot.org
Reporter: a...@crichton.co
CC: dan433...@gmail.com, llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs