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
66 lines
2.0 KiB
LLVM
66 lines
2.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu \
|
|
; RUN: -ppc-asm-full-reg-names -mcpu=pwr8 < %s | FileCheck %s --check-prefix CHECK-32BIT
|
|
; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux-gnu \
|
|
; RUN: -ppc-asm-full-reg-names -mcpu=pwr8 < %s | FileCheck %s --check-prefix CHECK-64BIT
|
|
|
|
define dso_local zeroext range(i8 -1, 1) i8 @f(i8 noundef zeroext %x) {
|
|
; CHECK-32BIT-LABEL: f:
|
|
; CHECK-32BIT: # %bb.0: # %entry
|
|
; CHECK-32BIT-NEXT: addic r3, r3, -1
|
|
; CHECK-32BIT-NEXT: subfe r3, r3, r3
|
|
; CHECK-32BIT-NEXT: clrlwi r3, r3, 24
|
|
; CHECK-32BIT-NEXT: blr
|
|
;
|
|
; CHECK-64BIT-LABEL: f:
|
|
; CHECK-64BIT: # %bb.0: # %entry
|
|
; CHECK-64BIT-NEXT: addic r3, r3, -1
|
|
; CHECK-64BIT-NEXT: subfe r3, r3, r3
|
|
; CHECK-64BIT-NEXT: clrldi r3, r3, 56
|
|
; CHECK-64BIT-NEXT: blr
|
|
entry:
|
|
%cmp = icmp eq i8 %x, 0
|
|
%conv2 = sext i1 %cmp to i8
|
|
ret i8 %conv2
|
|
}
|
|
|
|
define i32 @compare32(i64 %conv1) {
|
|
; CHECK-32BIT-LABEL: compare32:
|
|
; CHECK-32BIT: # %bb.0: # %entry
|
|
; CHECK-32BIT-NEXT: or r3, r4, r3
|
|
; CHECK-32BIT-NEXT: addic r3, r3, -1
|
|
; CHECK-32BIT-NEXT: subfe r3, r3, r3
|
|
; CHECK-32BIT-NEXT: blr
|
|
;
|
|
; CHECK-64BIT-LABEL: compare32:
|
|
; CHECK-64BIT: # %bb.0: # %entry
|
|
; CHECK-64BIT-NEXT: addic r3, r3, -1
|
|
; CHECK-64BIT-NEXT: subfe r3, r3, r3
|
|
; CHECK-64BIT-NEXT: blr
|
|
entry:
|
|
%tobool2.not = icmp eq i64 %conv1, 0
|
|
%cond = sext i1 %tobool2.not to i32
|
|
ret i32 %cond
|
|
}
|
|
|
|
define i64 @compare64(i32 %conv1) {
|
|
; CHECK-32BIT-LABEL: compare64:
|
|
; CHECK-32BIT: # %bb.0: # %entry
|
|
; CHECK-32BIT-NEXT: addic r3, r3, -1
|
|
; CHECK-32BIT-NEXT: subfe r3, r3, r3
|
|
; CHECK-32BIT-NEXT: mr r4, r3
|
|
; CHECK-32BIT-NEXT: blr
|
|
;
|
|
; CHECK-64BIT-LABEL: compare64:
|
|
; CHECK-64BIT: # %bb.0: # %entry
|
|
; CHECK-64BIT-NEXT: clrldi r3, r3, 32
|
|
; CHECK-64BIT-NEXT: addic r3, r3, -1
|
|
; CHECK-64BIT-NEXT: subfe r3, r3, r3
|
|
; CHECK-64BIT-NEXT: blr
|
|
entry:
|
|
%tobool2.not = icmp eq i32 %conv1, 0
|
|
%cond = sext i1 %tobool2.not to i64
|
|
ret i64 %cond
|
|
}
|
|
|