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
43 lines
2.5 KiB
Plaintext
43 lines
2.5 KiB
Plaintext
# This test verifies that llvm-objcopy copies a univeral Mach-O object file properly.
|
|
|
|
# RUN: yaml2obj %p/Inputs/i386.yaml -o %t.i386
|
|
# RUN: yaml2obj %p/Inputs/x86_64.yaml -o %t.x86_64
|
|
|
|
## Case 1: copy a universal object containing regular Mach-O objects.
|
|
# RUN: llvm-lipo %t.i386 %t.x86_64 -create -output %t.universal
|
|
# RUN: llvm-objcopy %t.universal %t.universal.copy
|
|
# RUN: llvm-lipo %t.universal.copy -archs | FileCheck --check-prefix=VERIFY_ARCHS %s
|
|
# RUN: llvm-lipo %t.universal.copy -thin i386 -output %t.i386.copy
|
|
# RUN: llvm-lipo %t.universal.copy -thin x86_64 -output %t.x86_64.copy
|
|
# RUN: cmp %t.i386 %t.i386.copy
|
|
# RUN: cmp %t.x86_64 %t.x86_64.copy
|
|
|
|
## Case 2: copy a universal object file containing an archive with darwin specific timestamps.
|
|
# RUN: rm -f %t.archive.i386
|
|
# RUN: llvm-ar --format=darwin cr %t.archive.i386 %t.i386 %t.i386
|
|
# RUN: llvm-lipo %t.archive.i386 %t.x86_64 -create -output %t.universal.containing.archive
|
|
# RUN: llvm-objcopy %t.universal.containing.archive %t.universal.containing.archive.copy
|
|
# RUN: llvm-lipo %t.universal.containing.archive.copy -archs | FileCheck --check-prefix=VERIFY_ARCHS %s
|
|
# RUN: llvm-lipo %t.universal.containing.archive.copy -thin i386 -output %t.archive.i386.copy
|
|
# RUN: llvm-lipo %t.universal.containing.archive.copy -thin x86_64 -output %t.archive.x86_64.copy
|
|
# RUN: cmp %t.archive.i386 %t.archive.i386.copy
|
|
# RUN: cmp %t.x86_64 %t.archive.x86_64.copy
|
|
|
|
## Case 3: copy an archive containing a universal object.
|
|
# RUN: llvm-ar cr %t.archive.containing.universal %t.universal
|
|
# RUN: llvm-objcopy %t.archive.containing.universal %t.archive.containing.universal.copy
|
|
|
|
## Case 4: try to copy a universal object file contaning a bitcode slice.
|
|
# RUN: echo 'target triple = "arm64-apple-ios8.0.0"' | llvm-as -o %t.bitcode
|
|
# RUN: llvm-lipo %t.bitcode %t.x86_64 -create -output %t.universal.containing.bitcode
|
|
# RUN: not llvm-objcopy %t.universal.containing.bitcode %t.universal.containing.bitcode.copy 2>&1 \
|
|
# RUN: | FileCheck --check-prefix=UNSUPPORTED_UNIVERSAL_OBJECT %s
|
|
|
|
## Case 5: try to copy an archive containing an unsupported universal object.
|
|
# RUN: llvm-ar cr %t.archive.universal.bitcode %t.universal.containing.bitcode
|
|
# RUN: not llvm-objcopy %t.archive.universal.bitcode %t.archive.universal.bitcode.copy 2>&1 \
|
|
# RUN: | FileCheck --check-prefix=UNSUPPORTED_UNIVERSAL_OBJECT %s
|
|
|
|
# VERIFY_ARCHS: i386 x86_64
|
|
# UNSUPPORTED_UNIVERSAL_OBJECT: slice for 'arm64' of the universal Mach-O binary {{.*}} is not a Mach-O object or an archive
|