[MIParser] Set RegClassOrRegBank during instruction parsing
[llvm-complete.git] / test / MC / WebAssembly / tail-call-encodings.s
blob69839adcfbfa51c530a45f26a08ee6756ad2dcb6
1 # RUN: llvm-mc -show-encoding -triple=wasm32-unkown-unknown -mattr=+tail-call < %s | FileCheck %s
3 bar1:
4 .functype bar1 () -> ()
5 end_function
7 foo1:
8 .functype foo1 () -> ()
10 # CHECK: return_call bar1 # encoding: [0x12,
11 # CHECK-NEXT: fixup A - offset: 1, value: bar1, kind: fixup_uleb128_i32
12 return_call bar1
14 end_function
16 foo2:
17 .functype foo2 () -> ()
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)
23 end_function