xref: /llvm-project-15.0.7/llvm/test/MC/WebAssembly/funcref-from-table.s (revision 219a2eb4)
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-mc -mattr=+reference-types -triple=wasm32-unknown-unknown -filetype=obj -o - < %s | obj2yaml | FileCheck %s
2
3.globl __indirect_function_table
4.tabletype __indirect_function_table, funcref
5
6.globl obtain_funcref_from_table_index
7
8obtain_funcref_from_table_index:
9  .functype obtain_funcref_from_table_index(i32) -> (funcref)
10  local.get 0
11  table.get __indirect_function_table
12  end_function
13
14#      CHECK:  Sections:
15# CHECK-NEXT:    - Type:            TYPE
16# CHECK-NEXT:      Signatures:
17# CHECK-NEXT:        - Index:           0
18# CHECK-NEXT:          ParamTypes:
19# CHECK-NEXT:            - I32
20# CHECK-NEXT:          ReturnTypes:
21# CHECK-NEXT:            - FUNCREF
22

served by {OpenGrok

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