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
62 lines
2.1 KiB
Plaintext
62 lines
2.1 KiB
Plaintext
# Test that DTLTO handles Unicode characters in paths and symbols for
|
||
# archive members, thin archive members, and FatLTO inputs.
|
||
|
||
REQUIRES: ld.lld, llvm-ar
|
||
|
||
RUN: rm -rf %t && split-file %s %t && mkdir %t/📁 && cd %t/📁
|
||
|
||
# Compile bitcode. -O2 is required for cross-module importing.
|
||
RUN: %clang --target=x86_64-linux-gnu -O2 -flto=thin -c ../α.c ../β.c ../δ.c
|
||
RUN: %clang --target=x86_64-linux-gnu -O2 -flto=thin -ffat-lto-objects -c ../γ.c
|
||
|
||
# Create an archive and a thin archive.
|
||
RUN: llvm-ar rcs 🎁.a α.o
|
||
RUN: llvm-ar rcsT 📦.a β.o
|
||
|
||
# Build with DTLTO.
|
||
RUN: %clang --target=x86_64-linux-gnu -O2 -flto=thin -ffat-lto-objects \
|
||
RUN: -fuse-ld=lld -nostdlib -shared -fthinlto-distributor=%python \
|
||
RUN: -Xthinlto-distributor=%llvm_src_root/utils/dtlto/local.py \
|
||
RUN: -Wl,--save-temps -Wl,--whole-archive 🎁.a 📦.a γ.o δ.o -o 💾.so
|
||
|
||
# Check that the temporary file names preserve the Unicode symbols.
|
||
RUN: ls | FileCheck %s --check-prefix=FILES
|
||
|
||
# Archive member: 🎁.a(α.o).
|
||
FILES-DAG: {{^}}🎁.a(α.o at [[#OFFSET:]]).1.[[#%X,HEXPID:]].1.[[#PID:]].native.o{{$}}
|
||
FILES-DAG: {{^}}🎁.a(α.o at [[#OFFSET]]).1.[[#%X,HEXPID]].1.[[#PID]].native.o.thinlto.bc{{$}}
|
||
FILES-DAG: {{^}}🎁.a(α.o at [[#OFFSET]]).1.[[#%X,HEXPID]].o{{$}}
|
||
|
||
# Thin archive member: 📦.a(β.o).
|
||
FILES-DAG: {{^}}β.2.[[#PID]].native.o{{$}}
|
||
FILES-DAG: {{^}}β.2.[[#PID]].native.o.thinlto.bc{{$}}
|
||
|
||
# FatLTO object: γ.o.
|
||
FILES-DAG: {{^}}γ.o.3.[[#%X,HEXPID]].3.[[#PID]].native.o{{$}}
|
||
FILES-DAG: {{^}}γ.o.3.[[#%X,HEXPID]].3.[[#PID]].native.o.thinlto.bc{{$}}
|
||
FILES-DAG: {{^}}γ.o.3.[[#%X,HEXPID]].o{{$}}
|
||
|
||
# Bitcode input: δ.o.
|
||
FILES-DAG: {{^}}δ.4.[[#PID]].native.o{{$}}
|
||
FILES-DAG: {{^}}δ.4.[[#PID]].native.o.thinlto.bc{{$}}
|
||
|
||
# JSON file for the distributor.
|
||
FILES-DAG: {{^}}💾.[[#PID]].dist-file.json{{$}}
|
||
|
||
#--- α.c
|
||
__attribute__((retain)) int alpha(int x) { return x; }
|
||
|
||
#--- β.c
|
||
__attribute__((retain)) int beta(int x) { return x; }
|
||
|
||
#--- γ.c
|
||
__attribute__((retain)) int gamma(int x) { return x; }
|
||
|
||
#--- δ.c
|
||
extern int alpha(int);
|
||
extern int beta(int);
|
||
extern int gamma(int);
|
||
__attribute__((retain)) int delta(int x) {
|
||
return alpha(x) + beta(x) + gamma(x);
|
||
}
|