xref: /llvm-project-15.0.7/llvm/test/MC/WebAssembly/basic-assembly-errors.s (revision d9166ad2)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: not llvm-mc -triple=wasm32-unknown-unknown -mattr=+simd128,+nontrapping-fptoint,+exception-handling < %s 2>&1 | FileCheck %s
2
3# CHECK: invalid operand for instruction
4# (must be 0.0 or similar)
5    f32.const 0
6
7# CHECK: End of block construct with no start: end_try
8    end_try
9test0:
10    .functype   test0 () -> ()
11# CHECK: Block construct type mismatch, expected: end_function, instead got: end_loop
12    end_loop
13    block
14# CHECK: Block construct type mismatch, expected: end_block, instead got: end_if
15    end_if
16    try
17    loop
18# CHECK: Block construct type mismatch, expected: end_loop, instead got: end_function
19# CHECK: error: Unmatched block construct(s) at function end: loop
20# CHECK: error: Unmatched block construct(s) at function end: try
21# CHECK: error: Unmatched block construct(s) at function end: block
22# CHECK: error: Unmatched block construct(s) at function end: function
23    end_function
24
25

served by {OpenGrok

Last Index Update: Fri May 15 20:09:11 GMT 2026