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
84 lines
2.2 KiB
LLVM
84 lines
2.2 KiB
LLVM
; RUN: opt -S -passes=dxil-intrinsic-expansion,dxil-op-lower -mtriple=dxil-pc-shadermodel6.0-library < %s | FileCheck %s
|
|
|
|
; Make sure dxil operation function calls for all are generated for float and half.
|
|
|
|
; CHECK-LABEL: all_bool
|
|
; CHECK: icmp ne i1 %{{.*}}, false
|
|
define noundef i1 @all_bool(i1 noundef %p0) {
|
|
entry:
|
|
%dx.all = call i1 @llvm.dx.all.i1(i1 %p0)
|
|
ret i1 %dx.all
|
|
}
|
|
|
|
; CHECK-LABEL: all_int64_t
|
|
; CHECK: icmp ne i64 %{{.*}}, 0
|
|
define noundef i1 @all_int64_t(i64 noundef %p0) {
|
|
entry:
|
|
%dx.all = call i1 @llvm.dx.all.i64(i64 %p0)
|
|
ret i1 %dx.all
|
|
}
|
|
|
|
; CHECK-LABEL: all_int
|
|
; CHECK: icmp ne i32 %{{.*}}, 0
|
|
define noundef i1 @all_int(i32 noundef %p0) {
|
|
entry:
|
|
%dx.all = call i1 @llvm.dx.all.i32(i32 %p0)
|
|
ret i1 %dx.all
|
|
}
|
|
|
|
; CHECK-LABEL: all_int16_t
|
|
; CHECK: icmp ne i16 %{{.*}}, 0
|
|
define noundef i1 @all_int16_t(i16 noundef %p0) {
|
|
entry:
|
|
%dx.all = call i1 @llvm.dx.all.i16(i16 %p0)
|
|
ret i1 %dx.all
|
|
}
|
|
|
|
; CHECK-LABEL: all_double
|
|
; CHECK: fcmp une double %{{.*}}, 0.000000e+00
|
|
define noundef i1 @all_double(double noundef %p0) {
|
|
entry:
|
|
%dx.all = call i1 @llvm.dx.all.f64(double %p0)
|
|
ret i1 %dx.all
|
|
}
|
|
|
|
; CHECK-LABEL: all_float
|
|
; CHECK: fcmp une float %{{.*}}, 0.000000e+00
|
|
define noundef i1 @all_float(float noundef %p0) {
|
|
entry:
|
|
%dx.all = call i1 @llvm.dx.all.f32(float %p0)
|
|
ret i1 %dx.all
|
|
}
|
|
|
|
; CHECK-LABEL: all_half
|
|
; CHECK: fcmp une half %{{.*}}, 0.000000e+00
|
|
define noundef i1 @all_half(half noundef %p0) {
|
|
entry:
|
|
%dx.all = call i1 @llvm.dx.all.f16(half %p0)
|
|
ret i1 %dx.all
|
|
}
|
|
|
|
; CHECK-LABEL: all_bool4
|
|
; CHECK: icmp ne <4 x i1> %{{.*}}, zeroinitialize
|
|
; CHECK: extractelement <4 x i1> %{{.*}}, i64 0
|
|
; CHECK: extractelement <4 x i1> %{{.*}}, i64 1
|
|
; CHECK: and i1 %{{.*}}, %{{.*}}
|
|
; CHECK: extractelement <4 x i1> %{{.*}}, i64 2
|
|
; CHECK: and i1 %{{.*}}, %{{.*}}
|
|
; CHECK: extractelement <4 x i1> %{{.*}}, i64 3
|
|
; CHECK: and i1 %{{.*}}, %{{.*}}
|
|
define noundef i1 @all_bool4(<4 x i1> noundef %p0) {
|
|
entry:
|
|
%dx.all = call i1 @llvm.dx.all.v4i1(<4 x i1> %p0)
|
|
ret i1 %dx.all
|
|
}
|
|
|
|
declare i1 @llvm.dx.all.v4i1(<4 x i1>)
|
|
declare i1 @llvm.dx.all.i1(i1)
|
|
declare i1 @llvm.dx.all.i16(i16)
|
|
declare i1 @llvm.dx.all.i32(i32)
|
|
declare i1 @llvm.dx.all.i64(i64)
|
|
declare i1 @llvm.dx.all.f16(half)
|
|
declare i1 @llvm.dx.all.f32(float)
|
|
declare i1 @llvm.dx.all.f64(double)
|