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
79 lines
2.2 KiB
LLVM
79 lines
2.2 KiB
LLVM
; RUN: llc --mtriple=wasm32-unknown-unknown -asm-verbose=false < %s | FileCheck %s
|
|
|
|
@i32_global = local_unnamed_addr addrspace(1) global i32 undef
|
|
@i64_global = local_unnamed_addr addrspace(1) global i64 undef
|
|
@f32_global = local_unnamed_addr addrspace(1) global float undef
|
|
@f64_global = local_unnamed_addr addrspace(1) global double undef
|
|
|
|
define void @set_i32_global(i32 %v) {
|
|
; CHECK-LABEL: set_i32_global:
|
|
; CHECK-NEXT: functype set_i32_global (i32) -> ()
|
|
; CHECK-NEXT: local.get 0
|
|
; CHECK-NEXT: global.set i32_global
|
|
; CHECK-NEXT: end_function
|
|
store i32 %v, ptr addrspace(1) @i32_global
|
|
ret void
|
|
}
|
|
|
|
define void @set_i64_global(i64 %v) {
|
|
; CHECK-LABEL: set_i64_global:
|
|
; CHECK-NEXT: functype set_i64_global (i64) -> ()
|
|
; CHECK-NEXT: local.get 0
|
|
; CHECK-NEXT: global.set i64_global
|
|
; CHECK-NEXT: end_function
|
|
store i64 %v, ptr addrspace(1) @i64_global
|
|
ret void
|
|
}
|
|
|
|
define void @set_f32_global(float %v) {
|
|
; CHECK-LABEL: set_f32_global:
|
|
; CHECK-NEXT: functype set_f32_global (f32) -> ()
|
|
; CHECK-NEXT: local.get 0
|
|
; CHECK-NEXT: global.set f32_global
|
|
; CHECK-NEXT: end_function
|
|
store float %v, ptr addrspace(1) @f32_global
|
|
ret void
|
|
}
|
|
|
|
define void @set_f64_global(double %v) {
|
|
; CHECK-LABEL: set_f64_global:
|
|
; CHECK-NEXT: functype set_f64_global (f64) -> ()
|
|
; CHECK-NEXT: local.get 0
|
|
; CHECK-NEXT: global.set f64_global
|
|
; CHECK-NEXT: end_function
|
|
store double %v, ptr addrspace(1) @f64_global
|
|
ret void
|
|
}
|
|
|
|
declare i32 @get_i32()
|
|
define i32 @stackifyAcrossGlobalSet() {
|
|
; https://github.com/llvm/llvm-project/issues/156055
|
|
; CHECK-LABEL: stackifyAcrossGlobalSet:
|
|
; CHECK-NEXT: .functype
|
|
; CHECK-NEXT: .local
|
|
; CHECK-NEXT: call get_i32
|
|
; CHECK-NEXT: local.tee
|
|
; CHECK-NEXT: global.set i32_global
|
|
; CHECK-NEXT: local.get
|
|
; CHECK-NEXT: end_function
|
|
%1 = call i32 @get_i32()
|
|
store i32 %1, ptr addrspace(1) @i32_global
|
|
ret i32 %1
|
|
}
|
|
|
|
; CHECK: .globaltype i32_global, i32
|
|
; CHECK: .globl i32_global
|
|
; CHECK-LABEL: i32_global:
|
|
|
|
; CHECK: .globaltype i64_global, i64
|
|
; CHECK: .globl i64_global
|
|
; CHECK-LABEL: i64_global:
|
|
|
|
; CHECK: .globaltype f32_global, f32
|
|
; CHECK: .globl f32_global
|
|
; CHECK-LABEL: f32_global:
|
|
|
|
; CHECK: .globaltype f64_global, f64
|
|
; CHECK: .globl f64_global
|
|
; CHECK-LABEL: f64_global:
|