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
80 lines
2.3 KiB
LLVM
80 lines
2.3 KiB
LLVM
; RUN: llc < %s --mtriple=wasm32-unknown-unknown -asm-verbose=false | 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
|
|
|
|
@i32_external_used = external addrspace(1) global i32
|
|
@i32_external_unused = external addrspace(1) global i32
|
|
|
|
define i32 @return_i32_global() {
|
|
; CHECK-LABEL: return_i32_global:
|
|
; CHECK-NEXT: functype return_i32_global () -> (i32)
|
|
; CHECK-NEXT: global.get i32_global
|
|
; CHECK-NEXT: end_function
|
|
%v = load i32, ptr addrspace(1) @i32_global
|
|
ret i32 %v
|
|
}
|
|
|
|
define i64 @return_i64_global() {
|
|
; CHECK-LABEL: return_i64_global:
|
|
; CHECK-NEXT: functype return_i64_global () -> (i64)
|
|
; CHECK-NEXT: global.get i64_global
|
|
; CHECK-NEXT: end_function
|
|
%v = load i64, ptr addrspace(1) @i64_global
|
|
ret i64 %v
|
|
}
|
|
|
|
define float @return_f32_global() {
|
|
; CHECK-LABEL: return_f32_global:
|
|
; CHECK-NEXT: functype return_f32_global () -> (f32)
|
|
; CHECK-NEXT: global.get f32_global
|
|
; CHECK-NEXT: end_function
|
|
%v = load float, ptr addrspace(1) @f32_global
|
|
ret float %v
|
|
}
|
|
|
|
define double @return_f64_global() {
|
|
; CHECK-LABEL: return_f64_global:
|
|
; CHECK-NEXT: functype return_f64_global () -> (f64)
|
|
; CHECK-NEXT: global.get f64_global
|
|
; CHECK-NEXT: end_function
|
|
%v = load double, ptr addrspace(1) @f64_global
|
|
ret double %v
|
|
}
|
|
|
|
define i32 @return_extern_i32_global() {
|
|
; CHECK-LABEL: return_extern_i32_global:
|
|
; CHECK-NEXT: functype return_extern_i32_global () -> (i32)
|
|
; CHECK-NEXT: global.get i32_external_used
|
|
; CHECK-NEXT: end_function
|
|
%v = load i32, ptr addrspace(1) @i32_external_used
|
|
ret i32 %v
|
|
}
|
|
|
|
|
|
; 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:
|
|
|
|
; CHECK: .globaltype i32_external_used, i32
|
|
; CHECK-NOT: .global i32_external_used
|
|
; CHECK-NOT: i32_external_used:
|
|
|
|
; CHECK: .globaltype i32_external_unused, i32
|
|
; CHECK-NOT: .global i32_external_unused
|
|
; CHECK-NOT: i32_external_unused:
|