summaryrefslogtreecommitdiffstats
path: root/lld/test/wasm/import-memory.test
blob: 36d07548021bfd06e4c203e74e527c0b42ad3b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# RUN: llc -filetype=obj %p/Inputs/ret32.ll -o %t.ret32.o
# RUN: lld -flavor wasm -entry ret32 --import-memory -o %t.wasm %t.ret32.o
# RUN: obj2yaml %t.wasm | FileCheck %s

# Verify the --import-memory flag creates a memory import

# CHECK:       - Type:            IMPORT
# CHECK-NEXT:    Imports:
# CHECK-NEXT:      - Module:          env
# CHECK-NEXT:        Field:           memory
# CHECK-NEXT:        Kind:            MEMORY
# CHECK-NEXT:        Memory:
# CHECK-NEXT:          Initial:         0x00000002
OpenPOWER on IntegriCloud