1 ; RUN: llc --mtriple=wasm32-unknown-unknown -asm-verbose=false -mattr=+reference-types < %s | FileCheck %s
3 %externref = type ptr addrspace(10) ;; addrspace 10 is nonintegral
5 @externref_table = local_unnamed_addr addrspace(1) global [0 x %externref] undef
7 declare i32 @llvm.wasm.table.size(ptr addrspace(1)) nounwind readonly
9 define i32 @table_size() {
10 ; CHECK-LABEL: table_size:
11 ; CHECK-NEXT: .functype table_size () -> (i32)
12 ; CHECK-NEXT: table.size externref_table
13 ; CHECK-NEXT: end_function
14 %sz = call i32 @llvm.wasm.table.size(ptr addrspace(1) @externref_table)