1# RUN: llvm-mc -show-encoding -triple=wasm32-unknown-unknown -mattr=+tail-call < %s | FileCheck %s
2
3bar1:
4    .functype bar1 () -> ()
5    end_function
6
7foo1:
8    .functype foo1 () -> ()
9
10    # CHECK: return_call bar1  # encoding: [0x12,
11    # CHECK-NEXT: fixup A - offset: 1, value: bar1, kind: fixup_uleb128_i32
12    return_call bar1
13
14    end_function
15
16foo2:
17    .functype foo2 () -> ()
18
19    # CHECK: return_call_indirect (i32) -> (i32) # encoding: [0x13,
20    # CHECK-NEXT: fixup A - offset: 1, value: .Ltypeindex0@TYPEINDEX, kind: fixup_uleb128_i32
21    return_call_indirect (i32) -> (i32)
22
23    end_function
24