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
40 lines
990 B
LLVM
40 lines
990 B
LLVM
; REQUIRES: x86
|
|
; RUN: rm -rf %t.dir
|
|
; RUN: split-file %s %t.dir
|
|
; RUN: llc %t.dir/t1.ll -o %t.dir/t1.obj --filetype=obj
|
|
; RUN: llc %t.dir/t2.ll -o %t.dir/t2.obj --filetype=obj
|
|
; RUN: lld-link %t.dir/t1.obj %t.dir/t2.obj -entry:main -out:%t.dir/out.exe
|
|
; RUN: llvm-readobj --section-headers %t.dir/out.exe | FileCheck %s
|
|
|
|
; Make sure that the data section contains just one copy of @a, not two.
|
|
; CHECK: Name: .data
|
|
; CHECK-NEXT: VirtualSize: 0x1000
|
|
|
|
;--- t1.ll
|
|
target triple = "x86_64-pc-windows-msvc"
|
|
@a = common global [4096 x i8] zeroinitializer
|
|
|
|
define i32 @usea() {
|
|
%ref_common = load i32, ptr @a
|
|
ret i32 %ref_common
|
|
}
|
|
|
|
;--- t2.ll
|
|
target triple = "x86_64-pc-windows-msvc"
|
|
@a = common global [4096 x i8] zeroinitializer
|
|
|
|
define i32 @useb() {
|
|
%ref_common = load i32, ptr @a
|
|
ret i32 %ref_common
|
|
}
|
|
|
|
declare i32 @usea()
|
|
|
|
define dso_local i32 @main() local_unnamed_addr {
|
|
entry:
|
|
%a = tail call i32 @usea()
|
|
%b = tail call i32 @useb()
|
|
%add = add nsw i32 %a, %b
|
|
ret i32 %add
|
|
}
|