You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
910 B
24 lines
910 B
; RUN: llc --mtriple=wasm32-unknown-unknown -filetype=obj %s -o - | obj2yaml | FileCheck --check-prefixes CHECK,CHK32 %s
|
|
; RUN: llc --mtriple=wasm64-unknown-unknown -filetype=obj %s -o - | obj2yaml | FileCheck --check-prefixes CHECK,CHK64 %s
|
|
|
|
; Function that uses explict stack, and should generate a reference to
|
|
; __stack_pointer, along with the corresponding reloction entry.
|
|
define hidden void @foo() #0 {
|
|
entry:
|
|
alloca i32, align 4
|
|
ret void
|
|
}
|
|
|
|
; CHECK: - Type: IMPORT
|
|
; CHECK: Imports:
|
|
; CHECK: - Module: env
|
|
; CHECK: Field: __stack_pointer
|
|
; CHECK: Kind: GLOBAL
|
|
; CHK32: GlobalType: I32
|
|
; CHK64: GlobalType: I64
|
|
; CHECK: GlobalMutable: true
|
|
; CHECK: - Type: CODE
|
|
; CHECK: Relocations:
|
|
; CHECK: - Type: R_WASM_GLOBAL_INDEX_LEB
|
|
; CHECK: Index: 0
|