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
89 lines
2.7 KiB
ArmAsm
89 lines
2.7 KiB
ArmAsm
# RUN: llvm-mc -triple=wasm32-unknown-unknown < %s | FileCheck %s
|
|
# RUN: llvm-mc -triple=wasm32-unknown-unknown -filetype=obj < %s | obj2yaml | FileCheck -check-prefix=BIN %s
|
|
|
|
# Tests creating an accessing actual wasm globals
|
|
|
|
.globl read_global
|
|
.globl write_global
|
|
.globaltype foo_global, i32
|
|
.globaltype global2, i64, immutable
|
|
.globaltype global3, f32
|
|
.globaltype global4, f64
|
|
|
|
read_global:
|
|
.functype read_global () -> (i32)
|
|
global.get foo_global
|
|
end_function
|
|
|
|
write_global:
|
|
.functype write_global (i32, i64, f32, f64) -> ()
|
|
local.get 0
|
|
global.set foo_global
|
|
local.get 1
|
|
global.set global2
|
|
local.get 2
|
|
global.set global3
|
|
local.get 3
|
|
global.set global4
|
|
end_function
|
|
|
|
foo_global:
|
|
global2:
|
|
global3:
|
|
global4:
|
|
|
|
# CHECK: .globl read_global
|
|
# CNEXT: .globl write_global
|
|
# CHECK: .globaltype foo_global, i32
|
|
# CHECK: foo_global:
|
|
|
|
# BIN: - Type: GLOBAL
|
|
# BIN-NEXT: Globals:
|
|
# BIN-NEXT: - Index: 0
|
|
# BIN-NEXT: Type: I32
|
|
# BIN-NEXT: Mutable: true
|
|
# BIN-NEXT: InitExpr:
|
|
# BIN-NEXT: Opcode: I32_CONST
|
|
# BIN-NEXT: Value: 0
|
|
# BIN-NEXT: - Index: 1
|
|
# BIN-NEXT: Type: I64
|
|
# BIN-NEXT: Mutable: false
|
|
# BIN-NEXT: InitExpr:
|
|
# BIN-NEXT: Opcode: I64_CONST
|
|
# BIN-NEXT: Value: 0
|
|
|
|
# BIN: - Type: CUSTOM
|
|
# BIN-NEXT: Name: linking
|
|
# BIN-NEXT: Version: 2
|
|
# BIN-NEXT: SymbolTable:
|
|
# BIN-NEXT: - Index: 0
|
|
# BIN-NEXT: Kind: FUNCTION
|
|
# BIN-NEXT: Name: read_global
|
|
# BIN-NEXT: Flags: [ ]
|
|
# BIN-NEXT: Function: 0
|
|
# BIN-NEXT: - Index: 1
|
|
# BIN-NEXT: Kind: FUNCTION
|
|
# BIN-NEXT: Name: write_global
|
|
# BIN-NEXT: Flags: [ ]
|
|
# BIN-NEXT: Function: 1
|
|
# BIN-NEXT: - Index: 2
|
|
# BIN-NEXT: Kind: GLOBAL
|
|
# BIN-NEXT: Name: foo_global
|
|
# BIN-NEXT: Flags: [ BINDING_LOCAL ]
|
|
# BIN-NEXT: Global: 0
|
|
# BIN-NEXT: - Index: 3
|
|
# BIN-NEXT: Kind: GLOBAL
|
|
# BIN-NEXT: Name: global2
|
|
# BIN-NEXT: Flags: [ BINDING_LOCAL ]
|
|
# BIN-NEXT: Global: 1
|
|
# BIN-NEXT: - Index: 4
|
|
# BIN-NEXT: Kind: GLOBAL
|
|
# BIN-NEXT: Name: global3
|
|
# BIN-NEXT: Flags: [ BINDING_LOCAL ]
|
|
# BIN-NEXT: Global: 2
|
|
# BIN-NEXT: - Index: 5
|
|
# BIN-NEXT: Kind: GLOBAL
|
|
# BIN-NEXT: Name: global4
|
|
# BIN-NEXT: Flags: [ BINDING_LOCAL ]
|
|
# BIN-NEXT: Global: 3
|