1 ; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s
3 target triple = "wasm32-unknown-unknown"
5 ; Function that uses explict stack, and should generate a reference to
6 ; __stack_pointer, along with the corresponding reloction entry.
7 define hidden void @foo() #0 {
13 ; CHECK: - Type: IMPORT
15 ; CHECK: - Module: env
16 ; CHECK: Field: __stack_pointer
18 ; CHECK: GlobalType: I32
19 ; CHECK: GlobalMutable: true
22 ; CHECK: - Type: R_WASM_GLOBAL_INDEX_LEB