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.2 KiB
LLVM
66 lines
2.2 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_analyze_test_checks.py
|
|
; RUN: opt -disable-output "-passes=print<scalar-evolution>" < %s 2>&1 | FileCheck %s
|
|
|
|
declare i32 @llvm.umax.i32(i32, i32)
|
|
declare i32 @llvm.umin.i32(i32, i32)
|
|
declare i32 @llvm.smax.i32(i32, i32)
|
|
declare i32 @llvm.smin.i32(i32, i32)
|
|
|
|
define i32 @umax(i32 %x, i32 %y) {
|
|
; CHECK-LABEL: 'umax'
|
|
; CHECK-NEXT: Classifying expressions for: @umax
|
|
; CHECK-NEXT: %z = call i32 @llvm.umax.i32(i32 %x, i32 %y)
|
|
; CHECK-NEXT: --> (%x umax %y) U: full-set S: full-set
|
|
; CHECK-NEXT: Determining loop execution counts for: @umax
|
|
;
|
|
%z = call i32 @llvm.umax.i32(i32 %x, i32 %y)
|
|
ret i32 %z
|
|
}
|
|
|
|
define i32 @umin(i32 %x, i32 %y) {
|
|
; CHECK-LABEL: 'umin'
|
|
; CHECK-NEXT: Classifying expressions for: @umin
|
|
; CHECK-NEXT: %z = call i32 @llvm.umin.i32(i32 %x, i32 %y)
|
|
; CHECK-NEXT: --> (%x umin %y) U: full-set S: full-set
|
|
; CHECK-NEXT: Determining loop execution counts for: @umin
|
|
;
|
|
%z = call i32 @llvm.umin.i32(i32 %x, i32 %y)
|
|
ret i32 %z
|
|
}
|
|
|
|
define i32 @smax(i32 %x, i32 %y) {
|
|
; CHECK-LABEL: 'smax'
|
|
; CHECK-NEXT: Classifying expressions for: @smax
|
|
; CHECK-NEXT: %z = call i32 @llvm.smax.i32(i32 %x, i32 %y)
|
|
; CHECK-NEXT: --> (%x smax %y) U: full-set S: full-set
|
|
; CHECK-NEXT: Determining loop execution counts for: @smax
|
|
;
|
|
%z = call i32 @llvm.smax.i32(i32 %x, i32 %y)
|
|
ret i32 %z
|
|
}
|
|
|
|
define i32 @smin(i32 %x, i32 %y) {
|
|
; CHECK-LABEL: 'smin'
|
|
; CHECK-NEXT: Classifying expressions for: @smin
|
|
; CHECK-NEXT: %z = call i32 @llvm.smin.i32(i32 %x, i32 %y)
|
|
; CHECK-NEXT: --> (%x smin %y) U: full-set S: full-set
|
|
; CHECK-NEXT: Determining loop execution counts for: @smin
|
|
;
|
|
%z = call i32 @llvm.smin.i32(i32 %x, i32 %y)
|
|
ret i32 %z
|
|
}
|
|
|
|
define i32 @clamp(i32 %x) {
|
|
; CHECK-LABEL: 'clamp'
|
|
; CHECK-NEXT: Classifying expressions for: @clamp
|
|
; CHECK-NEXT: %y = call i32 @llvm.umax.i32(i32 %x, i32 10)
|
|
; CHECK-NEXT: --> (10 umax %x) U: [10,0) S: [10,0)
|
|
; CHECK-NEXT: %z = call i32 @llvm.umin.i32(i32 %y, i32 20)
|
|
; CHECK-NEXT: --> (20 umin (10 umax %x)) U: [10,21) S: [10,21)
|
|
; CHECK-NEXT: Determining loop execution counts for: @clamp
|
|
;
|
|
%y = call i32 @llvm.umax.i32(i32 %x, i32 10)
|
|
%z = call i32 @llvm.umin.i32(i32 %y, i32 20)
|
|
ret i32 %z
|
|
}
|