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
57 lines
1.6 KiB
ArmAsm
57 lines
1.6 KiB
ArmAsm
; REQUIRES: aarch64
|
|
; RUN: rm -rf %t && split-file %s %t
|
|
|
|
; RUN: llvm-mc -filetype=obj -triple=arm64-apple-darwin %t/a.s -o %t/a.o
|
|
; RUN: %lld -dylib -arch arm64 --no-tail-merge-strings -order_file %t/orderfile.txt %t/a.o -o - | llvm-nm --numeric-sort --format=just-symbols - | FileCheck %s
|
|
; RUN: %lld -dylib -arch arm64 --tail-merge-strings -order_file %t/orderfile.txt %t/a.o -o - | llvm-nm --numeric-sort --format=just-symbols - | FileCheck %s --check-prefix=MERGED
|
|
|
|
; CHECK: _str2
|
|
; CHECK: _str1
|
|
; CHECK: _superstr2
|
|
; CHECK: _superstr3
|
|
; CHECK: _superstr1
|
|
; CHECK: _str3
|
|
|
|
; str1 has a higher priority than superstr1, so str1 must be ordered before
|
|
; str3, even though superstr1 is before superstr3 in the orderfile.
|
|
|
|
; MERGED: _superstr2
|
|
; MERGED: _str2
|
|
; MERGED: _superstr1
|
|
; MERGED: _str1
|
|
; MERGED: _superstr3
|
|
; MERGED: _str3
|
|
|
|
;--- a.s
|
|
.cstring
|
|
_superstr1:
|
|
.asciz "superstr1"
|
|
_str1:
|
|
.asciz "str1"
|
|
_superstr2:
|
|
.asciz "superstr2"
|
|
_str2:
|
|
.asciz "str2"
|
|
_superstr3:
|
|
.asciz "superstr3"
|
|
_str3:
|
|
.asciz "str3"
|
|
|
|
; TODO: We could use update_test_body.py to generate the hashes for the
|
|
; orderfile. Unfortunately, it seems that LLVM has a different hash
|
|
; implementation than the xxh64sum tool. See
|
|
; DeduplicatedCStringSection::getStringOffset() for hash details.
|
|
;
|
|
; while IFS="" read -r line; do
|
|
; echo -n $line | xxh64sum | awk '{printf "CSTR;%010d", and(strtonum("0x"$1), 0x7FFFFFFF)}'
|
|
; echo " # $line"
|
|
; done < orderfile.txt.template
|
|
|
|
;--- orderfile.txt
|
|
CSTR;1236462241 # str2
|
|
CSTR;1526669509 # str1
|
|
CSTR;1563550684 # superstr2
|
|
CSTR;1044337806 # superstr3
|
|
CSTR;262417687 # superstr1
|
|
CSTR;717161398 # str3
|