brintos

brintos / llvm-project-archived public Read only

0
0
Text · 910 B · b92c773 Raw
24 lines · plain
1; RUN: llc --mtriple=wasm32-unknown-unknown -filetype=obj %s -o - | obj2yaml | FileCheck --check-prefixes CHECK,CHK32 %s2; RUN: llc --mtriple=wasm64-unknown-unknown -filetype=obj %s -o - | obj2yaml | FileCheck --check-prefixes CHECK,CHK64 %s3 4; Function that uses explict stack, and should generate a reference to5; __stack_pointer, along with the corresponding reloction entry.6define hidden void @foo() #0 {7entry:8  alloca i32, align 49  ret void10}11 12; CHECK:  - Type:            IMPORT13; CHECK:     Imports:14; CHECK:       - Module:          env15; CHECK:         Field:           __stack_pointer16; CHECK:         Kind:            GLOBAL17; CHK32:         GlobalType:      I3218; CHK64:         GlobalType:      I6419; CHECK:         GlobalMutable:   true20; CHECK:   - Type:            CODE21; CHECK:     Relocations:22; CHECK:       - Type:            R_WASM_GLOBAL_INDEX_LEB23; CHECK:         Index:           024