CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
51 lines
1.9 KiB
Plaintext
51 lines
1.9 KiB
Plaintext
# RUN: llvm-mc -filetype=obj -triple=wasm32-unknown-unknown %p/Inputs/start.s -o %t.start.o
|
|
# RUN: wasm-ld --import-memory -o %t.wasm %t.start.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: Minimum: 0x1
|
|
# CHECK-NEXT: - Type:
|
|
|
|
|
|
|
|
# RUN: wasm-ld --import-memory --initial-memory=262144 \
|
|
# RUN: --max-memory=327680 -o %t.max.wasm %t.start.o
|
|
# RUN: obj2yaml %t.max.wasm | FileCheck -check-prefix=CHECK-MAX %s
|
|
|
|
# Verify the --initial-memory and --max-memory arguments work with imports
|
|
|
|
# CHECK-MAX: - Type: IMPORT
|
|
# CHECK-MAX-NEXT: Imports:
|
|
# CHECK-MAX-NEXT: - Module: env
|
|
# CHECK-MAX-NEXT: Field: memory
|
|
# CHECK-MAX-NEXT: Kind: MEMORY
|
|
# CHECK-MAX-NEXT: Memory:
|
|
# CHECK-MAX-NEXT: Flags: [ HAS_MAX ]
|
|
# CHECK-MAX-NEXT: Minimum: 0x4
|
|
# CHECK-MAX-NEXT: Maximum: 0x5
|
|
# CHECK-MAX-NEXT: - Type:
|
|
|
|
# RUN: wasm-ld --import-memory --shared-memory --features=atomics,bulk-memory \
|
|
# RUN: --initial-memory=262144 --max-memory=327680 -o %t.max.wasm %t.start.o
|
|
# RUN: obj2yaml %t.max.wasm | FileCheck -check-prefix=CHECK-SHARED %s
|
|
|
|
# Verify the --shared-memory flag works with imports
|
|
|
|
# CHECK-SHARED: - Type: IMPORT
|
|
# CHECK-SHARED-NEXT: Imports:
|
|
# CHECK-SHARED-NEXT: - Module: env
|
|
# CHECK-SHARED-NEXT: Field: memory
|
|
# CHECK-SHARED-NEXT: Kind: MEMORY
|
|
# CHECK-SHARED-NEXT: Memory:
|
|
# CHECK-SHARED-NEXT: Flags: [ HAS_MAX, IS_SHARED ]
|
|
# CHECK-SHARED-NEXT: Minimum: 0x4
|
|
# CHECK-SHARED-NEXT: Maximum: 0x5
|
|
# CHECK-SHARED-NEXT: - Type:
|