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
37 lines
1.2 KiB
LLVM
37 lines
1.2 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 4
|
|
; RUN: opt -passes=instcombine -S < %s | FileCheck %s
|
|
|
|
define i32 @main(ptr %a, i8 %a0, i32 %conv, i8 %a1) {
|
|
; CHECK-LABEL: define i32 @main(
|
|
; CHECK-SAME: ptr [[A:%.*]], i8 [[A0:%.*]], i32 [[CONV:%.*]], i8 [[A1:%.*]]) {
|
|
; CHECK-NEXT: [[A3:%.*]] = trunc i32 [[CONV]] to i8
|
|
; CHECK-NEXT: [[OR11:%.*]] = or i8 [[A0]], [[A3]]
|
|
; CHECK-NEXT: store i8 [[OR11]], ptr [[A]], align 1
|
|
; CHECK-NEXT: [[CMP:%.*]] = icmp slt i8 [[A1]], 0
|
|
; CHECK-NEXT: call void @llvm.assume(i1 [[CMP]])
|
|
; CHECK-NEXT: ret i32 [[CONV]]
|
|
;
|
|
%conv1 = sext i8 %a1 to i32
|
|
%a2 = xor i32 %conv, 1
|
|
%or = or i32 %conv1, %conv
|
|
%not = xor i32 %or, -1
|
|
%shr = lshr i32 %not, 1
|
|
%add.neg3 = sub i32 %a2, %shr
|
|
%conv24 = trunc i32 %add.neg3 to i8
|
|
store i8 %conv24, ptr %a, align 1
|
|
%sext = shl i32 %conv, 0
|
|
%conv3 = ashr i32 %sext, 0
|
|
%a3 = trunc i32 %conv to i8
|
|
%conv5 = or i8 %a3, 0
|
|
%xor6 = xor i8 %conv5, 0
|
|
%xor816 = xor i8 %a0, 0
|
|
%a4 = xor i8 %xor816, 0
|
|
%or11 = or i8 %xor6, %a4
|
|
store i8 %or11, ptr %a, align 1
|
|
%cmp = icmp slt i8 %a1, 0
|
|
call void @llvm.assume(i1 %cmp)
|
|
ret i32 %conv3
|
|
}
|
|
|
|
declare void @llvm.assume(i1)
|