[PATCH] D58414: [WebAssembly] Fixed disassembler not knowing about OPERAND_EVENT
Wouter van Oortmerssen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 19 15:40:07 PST 2019
aardappel created this revision.
aardappel added a reviewer: aheejin.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google, sbc100, dschuff.
Herald added a project: LLVM.
Repository:
rL LLVM
https://reviews.llvm.org/D58414
Files:
lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
test/MC/Disassembler/WebAssembly/wasm.txt
Index: test/MC/Disassembler/WebAssembly/wasm.txt
===================================================================
--- test/MC/Disassembler/WebAssembly/wasm.txt
+++ test/MC/Disassembler/WebAssembly/wasm.txt
@@ -55,3 +55,6 @@
# This can mean end_block/end_loop/end_if/end_function/end_try..
# CHECK: end
0x0B
+
+# CHECK: br_on_exn 0, 0
+0x0A 0x00 0x00
Index: lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
===================================================================
--- lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
+++ lib/Target/WebAssembly/Disassembler/WebAssemblyDisassembler.cpp
@@ -199,6 +199,7 @@
case WebAssembly::OPERAND_OFFSET32:
case WebAssembly::OPERAND_P2ALIGN:
case WebAssembly::OPERAND_TYPEINDEX:
+ case WebAssembly::OPERAND_EVENT:
case MCOI::OPERAND_IMMEDIATE: {
if (!parseLEBImmediate(MI, Size, Bytes, false))
return MCDisassembler::Fail;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58414.187463.patch
Type: text/x-patch
Size: 942 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190219/dd4d4bac/attachment.bin>
More information about the llvm-commits
mailing list