1 # RUN: not llvm-mc -triple=wasm32-unknown-unknown -mattr=+simd128,+nontrapping-fptoint,+exception-handling %s 2>&1 | FileCheck %s
3 # CHECK: invalid operand for instruction
4 # (must be 0.0 or similar)
7 # CHECK: basic-assembly-errors.s:9:1: error: Wasm doesn't support data symbols in text sections
11 # CHECK: End of block construct with no start: end_try
14 .functype test0 () -> ()
15 # CHECK: Block construct type mismatch, expected: end_function, instead got: end_loop
18 # CHECK: Block construct type mismatch, expected: end_block, instead got: end_if
21 # CHECK: Block construct type mismatch, expected: end_try/delegate, instead got: end_block
27 # CHECK: error: Block construct type mismatch, expected: end_try, instead got: catch_all
30 # CHECK: error: Expected integer constant, instead got: )
31 try_table
(catch __cpp_exception
)
35 # CHECK: error: invalid operand for instruction
36 try_table
(catch_all
0) i32
43 # CHECK: error: Expected identifier, got: )
44 try_table
(catch_all
0) () -> (i32
, i32
)
52 # CHECK: error: unknown type: not_catch
53 try_table
(not_catch
0)
55 # CHECK: Block construct type mismatch, expected: end_try_table, instead got: end_function
57 # CHECK: error: Unmatched block construct(s) at function end: try_table
58 # CHECK: error: Unmatched block construct(s) at function end: catch_all
59 # CHECK: error: Unmatched block construct(s) at function end: loop
60 # CHECK: error: Unmatched block construct(s) at function end: try
61 # CHECK: error: Unmatched block construct(s) at function end: block
62 # CHECK: error: Unmatched block construct(s) at function end: function