[AMDGPU][True16][CodeGen] true16 codegen pattern for v_med3_u/i16 (#121850)
[llvm-project.git] / llvm / test / MC / WebAssembly / func-end-errors.s
blob42d581fbccaa436c96825102bdb8a643d96a19c2
1 # RUN: not llvm-mc -triple=wasm32-unknown-unknown %s 2>&1 | FileCheck %s
3 # A Wasm function should always end with a 'end_function' pseudo instruction in
4 # assembly. This causes the parser to properly wrap up function info when there
5 # is no other instructions present.
7 test0:
8 .functype test0 () -> ()
10 test1:
11 # CHECK: [[@LINE+1]]:{{.*}}: error: Unmatched block construct(s) at function end: function
12 .functype test1 () -> ()
13 end_function
15 test2:
16 .functype test2 () -> ()
17 # CHECK: [[@LINE+1]]:{{.*}}: error: Unmatched block construct(s) at function end: function