1 ; RUN: llc < %s --mtriple=wasm32-unknown-unknown -asm-verbose=false -mattr=+reference-types | FileCheck %s
4 %funcref = type %func addrspace(20)* ;; addrspace 20 is nonintegral
6 @funcref_global = local_unnamed_addr addrspace(1) global %funcref undef
8 define %funcref @return_funcref_global() {
9 ;; this generates a global.get of @funcref_global
10 %ref = load %funcref, %funcref addrspace(1)* @funcref_global
14 ; CHECK-LABEL: return_funcref_global:
15 ; CHECK-NEXT: .functype return_funcref_global () -> (funcref)
16 ; CHECK-NEXT: global.get funcref_global
17 ; CHECK-NEXT: end_function
19 ; CHECK: .globl funcref_global