Files
clang-p2996/llvm/test/MC/Disassembler/WebAssembly/wasm-error.txt
Wouter van Oortmerssen 9843295608 [WebAssembly] Made InstPrinter more robust
Summary:
Instead of asserting on certain kinds of malformed instructions, it
now still print, but instead adds an annotation indicating the
problem, and/or indicates invalid_type etc.

We're using the InstPrinter from many contexts that can't always
guarantee values are within range (e.g. the disassembler), where having
output is more valueable than asserting.

Reviewers: dschuff, aheejin

Subscribers: sbc100, jgravelle-google, sunfish, llvm-commits

Differential Revision: https://reviews.llvm.org/D56223

llvm-svn: 350365
2019-01-03 22:59:59 +00:00

10 lines
185 B
Plaintext

# RUN: llvm-mc --disassemble %s -triple=wasm32-unknown-unknown | FileCheck %s
# CHECK: .text
# CHECK: block invalid_type
0x02 0x00
# CHECK: br 16 # Invalid depth argument!
0x0C 0x10