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
27 lines
1.1 KiB
LLVM
27 lines
1.1 KiB
LLVM
; REQUIRES: x86_64-apple, x86-registered-target, arm-registered-target
|
|
;
|
|
; RUN: rm -rf %t && mkdir -p %t
|
|
; RUN: llc -filetype=obj -mtriple=x86_64-apple-macosx -o %t/foo.x86_64.o \
|
|
; RUN: %p/Inputs/foo-return-i32-0.ll
|
|
; RUN: llvm-ar r %t/foo.x86_64.a %t/foo.x86_64.o
|
|
; RUN: llc -filetype=obj -mtriple=arm-apple-ios -o %t/foo.arm.o \
|
|
; RUN: %p/Inputs/foo-return-i32-0.ll
|
|
; RUN: llvm-ar r %t/foo.arm.a %t/foo.arm.o
|
|
; RUN: llvm-lipo -create %t/foo.x86_64.a %t/foo.arm.a -output %t/foo.a
|
|
; RUN: lli -jit-kind=orc-lazy -extra-archive %t/foo.a %s
|
|
;
|
|
; Check that MachO universal binaries containing archives work.
|
|
; This test compiles two copies of a simple int foo() function that returns
|
|
; zero, one copy for x86_64 and one for arm. It then puts each of these in an
|
|
; archive and combines these two archives into a macho universal binary.
|
|
; Finally we execute a main function that references foo to ensure that the
|
|
; x86-64 copy is correctly found and linked.
|
|
|
|
declare i32 @foo()
|
|
|
|
define i32 @main(i32 %argc, ptr nocapture readnone %argv) {
|
|
entry:
|
|
%0 = call i32 @foo()
|
|
ret i32 %0
|
|
}
|