1 ; RUN: llc < %s --mtriple=wasm32-unknown-unknown -asm-verbose=false -mattr=+reference-types | FileCheck %s
3 %externref = type ptr addrspace(10) ;; addrspace 10 is nonintegral
4 %funcref = type ptr addrspace(20) ;; addrspace 20 is nonintegral
6 ; CHECK: .tabletype eref_table, externref
7 ; CHECK-NEXT: .globl eref_table
8 ; CHECK-LABEL: eref_table:
9 @eref_table = local_unnamed_addr addrspace(1) global [0 x %externref] undef
11 ; CHECK-NOT: .globl .Lprivate_eref_table
12 ; CHECK: .tabletype .Lprivate_eref_table, externref
13 ; CHECK-LABEL: .Lprivate_eref_table:
14 @private_eref_table = private local_unnamed_addr addrspace(1) global [0 x %externref] undef
16 ; CHECK: .tabletype extern_eref_table, externref
17 ; CHECK-NOT: .globl extern_eref_table
18 ; CHECK-NOT: extern_eref_table:
19 @extern_eref_table = external addrspace(1) global [0 x %externref]
21 ; CHECK: .tabletype fref_table, funcref
22 ; CHECK-NEXT: .globl fref_table
23 ; CHECK-LABEL: fref_table:
24 @fref_table = local_unnamed_addr addrspace(1) global [0 x %funcref] undef
26 ; CHECK-NOT: .globl .Lprivate_fref_table
27 ; CHECK: .tabletype .Lprivate_fref_table, funcref
28 ; CHECK-LABEL: .Lprivate_fref_table:
29 @private_fref_table = private local_unnamed_addr addrspace(1) global [0 x %funcref] undef
31 ; CHECK: .tabletype extern_fref_table, funcref
32 ; CHECK-NOT: .globl extern_fref_table
33 ; CHECK-NOT: extern_fref_table:
34 @extern_fref_table = external addrspace(1) global [0 x %funcref]