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
5 @externref_global = local_unnamed_addr addrspace(1) global %externref undef
7 define %externref @return_externref_global() {
8 ;; this generates a global.get of @externref_global
9 %ref = load %externref, ptr addrspace(1) @externref_global
13 ; CHECK-LABEL: return_externref_global:
14 ; CHECK-NEXT: functype return_externref_global () -> (externref)
15 ; CHECK-NEXT: global.get externref_global
16 ; CHECK-NEXT: end_function
18 ; CHECK: .globl externref_global