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
1.7 KiB
LLVM
43 lines
1.7 KiB
LLVM
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu < %s | FileCheck %s -check-prefix=COLDCC
|
|
|
|
%struct.MyStruct = type { i32, i32, i32, i32 }
|
|
|
|
@caller.s = internal unnamed_addr global %struct.MyStruct zeroinitializer, align 8
|
|
|
|
define signext i32 @caller(i32 signext %a, i32 signext %b, i32 signext %cold) {
|
|
entry:
|
|
; COLDCC: bl callee
|
|
; COLDCC: ld 4, 32(1)
|
|
; COLDCC: ld 3, 40(1)
|
|
%call = tail call coldcc { i64, i64 } @callee(i32 signext %a, i32 signext %b)
|
|
%0 = extractvalue { i64, i64 } %call, 0
|
|
%1 = extractvalue { i64, i64 } %call, 1
|
|
store i64 %0, ptr @caller.s, align 8
|
|
store i64 %1, ptr getelementptr inbounds (%struct.MyStruct, ptr @caller.s, i64 0, i32 2), align 8
|
|
%2 = lshr i64 %1, 32
|
|
%3 = trunc i64 %2 to i32
|
|
%sub = sub nsw i32 0, %3
|
|
ret i32 %sub
|
|
}
|
|
|
|
define internal coldcc { i64, i64 } @callee(i32 signext %a, i32 signext %b) {
|
|
entry:
|
|
; COLDCC: std {{[0-9]+}}, 0(3)
|
|
; COLDCC: std {{[0-9]+}}, 8(3)
|
|
%0 = tail call i32 asm "add $0, $1, $2", "=r,r,r,~{r6},~{r7},~{r8},~{r9},~{r10}"(i32 %a, i32 %b)
|
|
%mul = mul nsw i32 %a, 3
|
|
%1 = mul i32 %b, -5
|
|
%add = add i32 %1, %mul
|
|
%sub = add i32 %add, %0
|
|
%mul5 = mul nsw i32 %b, %a
|
|
%add6 = add nsw i32 %sub, %mul5
|
|
%retval.sroa.0.0.insert.ext = zext i32 %0 to i64
|
|
%retval.sroa.3.8.insert.ext = zext i32 %sub to i64
|
|
%retval.sroa.3.12.insert.ext = zext i32 %add6 to i64
|
|
%retval.sroa.3.12.insert.shift = shl nuw i64 %retval.sroa.3.12.insert.ext, 32
|
|
%retval.sroa.3.12.insert.insert = or i64 %retval.sroa.3.12.insert.shift, %retval.sroa.3.8.insert.ext
|
|
%.fca.0.insert = insertvalue { i64, i64 } undef, i64 %retval.sroa.0.0.insert.ext, 0
|
|
%.fca.1.insert = insertvalue { i64, i64 } %.fca.0.insert, i64 %retval.sroa.3.12.insert.insert, 1
|
|
ret { i64, i64 } %.fca.1.insert
|
|
}
|