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
36 lines
1.0 KiB
LLVM
36 lines
1.0 KiB
LLVM
;; If a libcall was extracted in a thin link, it can be used even if not
|
|
;; present in the current TU.
|
|
|
|
; RUN: rm -rf %t && split-file %s %t && cd %t
|
|
; RUN: opt foo.ll -o foo.o -module-summary -mtriple x86_64-unknown-linux-musl
|
|
; RUN: opt bcmp.ll -o bcmp.o -module-summary -mtriple x86_64-unknown-linux-musl
|
|
; RUN: llvm-lto2 run -o lto.o \
|
|
; RUN: -r foo.o,foo,plx \
|
|
; RUN: -r foo.o,memcmp,x \
|
|
; RUN: -r bcmp.o,bcmp,pl \
|
|
; RUN: -r bcmp.o,bcmp_impl,x foo.o bcmp.o -save-temps
|
|
; RUN: llvm-dis lto.o.1.4.opt.bc -o - | FileCheck %s
|
|
|
|
;--- foo.ll
|
|
define i1 @foo(ptr %0, ptr %1, i64 %2) {
|
|
; CHECK-LABEL: define{{.*}}i1 @foo
|
|
; CHECK-NEXT: %bcmp = {{.*}}call i32 @bcmp
|
|
; CHECK-NEXT: %eq = icmp eq i32 %bcmp, 0
|
|
; CHECK-NEXT: ret i1 %eq
|
|
|
|
%cmp = call i32 @memcmp(ptr %0, ptr %1, i64 %2)
|
|
%eq = icmp eq i32 %cmp, 0
|
|
ret i1 %eq
|
|
}
|
|
|
|
declare i32 @memcmp(ptr, ptr, i64)
|
|
|
|
;--- bcmp.ll
|
|
define i32 @bcmp(ptr %0, ptr %1, i64 %2) noinline {
|
|
%r = call i32 @bcmp_impl(ptr %0, ptr %1, i64 %2)
|
|
ret i32 %r
|
|
}
|
|
|
|
declare i32 @bcmp_impl(ptr, ptr, i64)
|
|
|