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
52 lines
1.7 KiB
LLVM
52 lines
1.7 KiB
LLVM
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
|
|
; RUN: -mcpu=pwr8 < %s | FileCheck %s --check-prefix=CHECK-64B
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-linux-gnu \
|
|
; RUN: -mcpu=pwr7 < %s | FileCheck %s --check-prefix=CHECK-64B
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-aix \
|
|
; RUN: -mcpu=pwr7 < %s | FileCheck %s --check-prefix=CHECK-32B
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc64-unknown-aix \
|
|
; RUN: -mcpu=pwr7 < %s | FileCheck %s --check-prefix=CHECK-64B
|
|
|
|
@ui = external global i32, align 4
|
|
@ull = external global i64, align 8
|
|
|
|
define dso_local signext i32 @test_builtin_ppc_poppar4() {
|
|
; CHECK-32B-LABEL: test_builtin_ppc_poppar4:
|
|
; CHECK-32B: popcntw 3, 3
|
|
; CHECK-32B-NEXT: clrlwi 3, 3, 31
|
|
; CHECK-32B-NEXT: blr
|
|
; CHECK-64B-LABEL: test_builtin_ppc_poppar4:
|
|
; CHECK-64B: popcntw 3, 3
|
|
; CHECK-64B-NEXT: clrlwi 3, 3, 31
|
|
; CHECK-64B-NEXT: blr
|
|
entry:
|
|
%0 = load i32, ptr @ui, align 4
|
|
%1 = load i32, ptr @ui, align 4
|
|
%2 = call i32 @llvm.ctpop.i32(i32 %1)
|
|
%3 = and i32 %2, 1
|
|
ret i32 %3
|
|
}
|
|
|
|
declare i32 @llvm.ctpop.i32(i32)
|
|
|
|
define dso_local signext i32 @test_builtin_ppc_poppar8() {
|
|
; CHECK-32B-LABEL: test_builtin_ppc_poppar8:
|
|
; CHECK-32B: xor 3, 3, 4
|
|
; CHECK-32B-NEXT: popcntw 3, 3
|
|
; CHECK-32B-NEXT: clrlwi 3, 3, 31
|
|
; CHECK-32B-NEXT: blr
|
|
; CHECK-64B-LABEL: test_builtin_ppc_poppar8:
|
|
; CHECK-64B: popcntd 3, 3
|
|
; CHECK-64B-NEXT: clrldi 3, 3, 63
|
|
; CHECK-64B-NEXT: blr
|
|
entry:
|
|
%0 = load i64, ptr @ull, align 8
|
|
%1 = load i64, ptr @ull, align 8
|
|
%2 = call i64 @llvm.ctpop.i64(i64 %1)
|
|
%3 = and i64 %2, 1
|
|
%cast = trunc i64 %3 to i32
|
|
ret i32 %cast
|
|
}
|
|
|
|
declare i64 @llvm.ctpop.i64(i64)
|