1 ; RUN: llc -filetype=obj %s -o - | obj2yaml | FileCheck %s 2 3 target triple = "wasm32-unknown-unknown" 4 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 { 8 entry: 9 alloca i32, align 4 10 ret void 11 } 12 13 ; CHECK: - Type: IMPORT 14 ; CHECK: Imports: 15 ; CHECK: - Module: env 16 ; CHECK: Field: __stack_pointer 17 ; CHECK: Kind: GLOBAL 18 ; CHECK: GlobalType: I32 19 ; CHECK: GlobalMutable: true 20 ; CHECK: - Type: CODE 21 ; CHECK: Relocations: 22 ; CHECK: - Type: R_WEBASSEMBLY_GLOBAL_INDEX_LEB 23 ; CHECK: Index: 0 24