63 lines · plain
1# RUN: not llvm-mc -triple=wasm32-unknown-unknown -mattr=+simd128,+nontrapping-fptoint,+exception-handling %s 2>&1 | FileCheck %s2 3# CHECK: invalid operand for instruction4# (must be 0.0 or similar)5 f32.const 06 7# CHECK: basic-assembly-errors.s:9:1: error: Wasm doesn't support data symbols in text sections8.type objerr,@object9objerr:10 11# CHECK: End of block construct with no start: end_try12 end_try13test0:14 .functype test0 () -> ()15# CHECK: Block construct type mismatch, expected: end_function, instead got: end_loop16 end_loop17 block18# CHECK: Block construct type mismatch, expected: end_block, instead got: end_if19 end_if20 try21# CHECK: Block construct type mismatch, expected: end_try/delegate, instead got: end_block22 end_block23 loop24 try25 catch_all26 catch_all27# CHECK: error: Block construct type mismatch, expected: end_try, instead got: catch_all28 end29 30# CHECK: error: Expected integer constant, instead got: )31 try_table (catch __cpp_exception)32 end_try_table33 34 block35# CHECK: error: invalid operand for instruction36 try_table (catch_all 0) i3237 i32.const 038 end_try_table39 drop40 end_block41 42 block43# CHECK: error: Expected identifier, got: )44 try_table (catch_all 0) () -> (i32, i32)45 i32.const 046 i32.const 047 end_try_table48 drop49 drop50 end_block51 52# CHECK: error: unknown type: not_catch53 try_table (not_catch 0)54 55# CHECK: Block construct type mismatch, expected: end_try_table, instead got: end_function56 end_function57# CHECK: error: Unmatched block construct(s) at function end: try_table58# CHECK: error: Unmatched block construct(s) at function end: catch_all59# CHECK: error: Unmatched block construct(s) at function end: loop60# CHECK: error: Unmatched block construct(s) at function end: try61# CHECK: error: Unmatched block construct(s) at function end: block62# CHECK: error: Unmatched block construct(s) at function end: function63