[InstCombine] Signed saturation patterns
[llvm-core.git] / test / MC / WebAssembly / stack-ptr.ll
blob147f04ffec158786bc6aba046f615bacca89ccc3
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 {
8 entry:
9   alloca i32, align 4
10   ret void
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_WASM_GLOBAL_INDEX_LEB
23 ; CHECK:         Index:           0