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 5
|
|
; RUN: opt -S -passes=indvars < %s | FileCheck %s
|
|
|
|
define i32 @test() {
|
|
; CHECK-LABEL: define i32 @test() {
|
|
; CHECK-NEXT: [[ENTRY:.*:]]
|
|
; CHECK-NEXT: [[XOR:%.*]] = xor i32 0, 3
|
|
; CHECK-NEXT: [[MUL:%.*]] = mul i32 [[XOR]], 329
|
|
; CHECK-NEXT: [[CONV:%.*]] = trunc i32 [[MUL]] to i16
|
|
; CHECK-NEXT: [[SEXT:%.*]] = shl i16 [[CONV]], 8
|
|
; CHECK-NEXT: [[CONV1:%.*]] = ashr i16 [[SEXT]], 8
|
|
; CHECK-NEXT: br label %[[LOOP_BODY:.*]]
|
|
; CHECK: [[LOOP_BODY]]:
|
|
; CHECK-NEXT: br i1 true, label %[[EXIT:.*]], label %[[LOOP_BODY]]
|
|
; CHECK: [[EXIT]]:
|
|
; CHECK-NEXT: [[CONV3:%.*]] = zext i16 [[CONV1]] to i32
|
|
; CHECK-NEXT: ret i32 [[CONV3]]
|
|
;
|
|
entry:
|
|
%xor = xor i32 0, 3
|
|
%mul = mul i32 %xor, 329
|
|
%conv = trunc i32 %mul to i16
|
|
%sext = shl i16 %conv, 8
|
|
%conv1 = ashr i16 %sext, 8
|
|
%conv3 = zext i16 %conv1 to i32
|
|
br label %loop.body
|
|
|
|
loop.body:
|
|
%indvar = phi i32 [ %indvar.inc, %loop.body ], [ 1, %entry ]
|
|
%indvar.inc = add nuw i32 %indvar, 1
|
|
%exitcond = icmp eq i32 %indvar, %conv3
|
|
br i1 %exitcond, label %exit, label %loop.body
|
|
|
|
exit:
|
|
ret i32 %conv3
|
|
}
|