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