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
81 lines
2.4 KiB
LLVM
81 lines
2.4 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc < %s -O0 -mtriple=powerpc64le-unknown-unknown | FileCheck %s
|
|
|
|
; Function Attrs: nobuiltin nounwind readonly
|
|
define i8 @popcount128(ptr nocapture nonnull readonly %0) {
|
|
; CHECK-LABEL: popcount128:
|
|
; CHECK: # %bb.0: # %Entry
|
|
; CHECK-NEXT: mr 4, 3
|
|
; CHECK-NEXT: ld 3, 0(4)
|
|
; CHECK-NEXT: ld 4, 8(4)
|
|
; CHECK-NEXT: popcntd 4, 4
|
|
; CHECK-NEXT: popcntd 3, 3
|
|
; CHECK-NEXT: add 3, 3, 4
|
|
; CHECK-NEXT: # kill: def $r3 killed $r3 killed $x3
|
|
; CHECK-NEXT: clrldi 3, 3, 56
|
|
; CHECK-NEXT: blr
|
|
Entry:
|
|
%1 = load i128, ptr %0, align 16
|
|
%2 = tail call i128 @llvm.ctpop.i128(i128 %1)
|
|
%3 = trunc i128 %2 to i8
|
|
ret i8 %3
|
|
}
|
|
|
|
; Function Attrs: nounwind readnone speculatable willreturn
|
|
declare i128 @llvm.ctpop.i128(i128)
|
|
|
|
; Function Attrs: nobuiltin nounwind readonly
|
|
define i16 @popcount256(ptr nocapture nonnull readonly %0) {
|
|
; CHECK-LABEL: popcount256:
|
|
; CHECK: # %bb.0: # %Entry
|
|
; CHECK-NEXT: mr 6, 3
|
|
; CHECK-NEXT: ld 3, 0(6)
|
|
; CHECK-NEXT: ld 5, 8(6)
|
|
; CHECK-NEXT: ld 4, 16(6)
|
|
; CHECK-NEXT: ld 6, 24(6)
|
|
; CHECK-NEXT: popcntd 6, 6
|
|
; CHECK-NEXT: popcntd 4, 4
|
|
; CHECK-NEXT: add 4, 4, 6
|
|
; CHECK-NEXT: popcntd 5, 5
|
|
; CHECK-NEXT: popcntd 3, 3
|
|
; CHECK-NEXT: add 3, 3, 5
|
|
; CHECK-NEXT: add 3, 3, 4
|
|
; CHECK-NEXT: # kill: def $r3 killed $r3 killed $x3
|
|
; CHECK-NEXT: clrldi 3, 3, 48
|
|
; CHECK-NEXT: blr
|
|
Entry:
|
|
%1 = load i256, ptr %0, align 16
|
|
%2 = tail call i256 @llvm.ctpop.i256(i256 %1)
|
|
%3 = trunc i256 %2 to i16
|
|
ret i16 %3
|
|
}
|
|
|
|
; Function Attrs: nounwind readnone speculatable willreturn
|
|
declare i256 @llvm.ctpop.i256(i256)
|
|
|
|
define <1 x i128> @popcount1x128(<1 x i128> %0) {
|
|
; CHECK-LABEL: popcount1x128:
|
|
; CHECK: # %bb.0: # %Entry
|
|
; CHECK-NEXT: xxlor 0, 34, 34
|
|
; CHECK-NEXT: # kill: def $f0 killed $f0 killed $vsl0
|
|
; CHECK-NEXT: mffprd 3, 0
|
|
; CHECK-NEXT: popcntd 4, 3
|
|
; CHECK-NEXT: xxswapd 0, 34
|
|
; CHECK-NEXT: # kill: def $f0 killed $f0 killed $vsl0
|
|
; CHECK-NEXT: mffprd 3, 0
|
|
; CHECK-NEXT: popcntd 3, 3
|
|
; CHECK-NEXT: add 3, 3, 4
|
|
; CHECK-NEXT: mtfprd 0, 3
|
|
; CHECK-NEXT: fmr 1, 0
|
|
; CHECK-NEXT: li 3, 0
|
|
; CHECK-NEXT: mtfprd 0, 3
|
|
; CHECK-NEXT: # kill: def $vsl0 killed $f0
|
|
; CHECK-NEXT: xxmrghd 34, 0, 1
|
|
; CHECK-NEXT: blr
|
|
Entry:
|
|
%1 = tail call <1 x i128> @llvm.ctpop.v1.i128(<1 x i128> %0)
|
|
ret <1 x i128> %1
|
|
}
|
|
|
|
declare <1 x i128> @llvm.ctpop.v1.i128(<1 x i128>)
|