Files
TheRock/compiler/amd-llvm/llvm/test/Transforms/SCCP/no-fold-fcmp-dynamic-denormal-mode-issue114947.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

120 lines
4.6 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
; RUN: opt -S -passes=ipsccp < %s | FileCheck %s
define i1 @no_fold_fcmp_denormal_double_ieee_dynamic_denormal_undef() #0 {
; CHECK-LABEL: define i1 @no_fold_fcmp_denormal_double_ieee_dynamic_denormal_undef(
; CHECK-SAME: ) #[[ATTR0:[0-9]+]] {
; CHECK-NEXT: [[CMP:%.*]] = fcmp une double f0x0008000000000000, undef
; CHECK-NEXT: ret i1 [[CMP]]
;
%cmp = fcmp une double 0x8000000000000, undef
ret i1 %cmp
}
define i1 @no_fold_fcmp_denormal_double_ieee_dynamic_denormal_poison() #0 {
; CHECK-LABEL: define i1 @no_fold_fcmp_denormal_double_ieee_dynamic_denormal_poison(
; CHECK-SAME: ) #[[ATTR0]] {
; CHECK-NEXT: [[CMP:%.*]] = fcmp une double f0x0008000000000000, poison
; CHECK-NEXT: ret i1 [[CMP]]
;
%cmp = fcmp une double 0x8000000000000, poison
ret i1 %cmp
}
define i1 @no_fold_fcmp_denormal_double_ieee_dynamic() #0 {
; CHECK-LABEL: define i1 @no_fold_fcmp_denormal_double_ieee_dynamic(
; CHECK-SAME: ) #[[ATTR0]] {
; CHECK-NEXT: [[CMP:%.*]] = fcmp une double f0x0008000000000000, 0.000000e+00
; CHECK-NEXT: ret i1 [[CMP]]
;
%cmp = fcmp une double 0x8000000000000, 0.0
ret i1 %cmp
}
define i1 @fold_fcmp_nondenormal_double_ieee_dynamic() #0 {
; CHECK-LABEL: define i1 @fold_fcmp_nondenormal_double_ieee_dynamic(
; CHECK-SAME: ) #[[ATTR0]] {
; CHECK-NEXT: ret i1 true
;
%cmp = fcmp une double 2.0, 0.0
ret i1 %cmp
}
define <2 x i1> @no_fold_fcmp_denormal_double_ieee_dynamic_vector_splat() #0 {
; CHECK-LABEL: define <2 x i1> @no_fold_fcmp_denormal_double_ieee_dynamic_vector_splat(
; CHECK-SAME: ) #[[ATTR0]] {
; CHECK-NEXT: [[CMP:%.*]] = fcmp une <2 x double> splat (double f0x0008000000000000), zeroinitializer
; CHECK-NEXT: ret <2 x i1> [[CMP]]
;
%cmp = fcmp une <2 x double> splat (double 0x8000000000000), zeroinitializer
ret <2 x i1> %cmp
}
define <2 x i1> @fold_fcmp_nondenormal_double_ieee_dynamic_vector_splat() #0 {
; CHECK-LABEL: define <2 x i1> @fold_fcmp_nondenormal_double_ieee_dynamic_vector_splat(
; CHECK-SAME: ) #[[ATTR0]] {
; CHECK-NEXT: ret <2 x i1> splat (i1 true)
;
%cmp = fcmp une <2 x double> splat (double 2.0), zeroinitializer
ret <2 x i1> %cmp
}
define <2 x i1> @fold_fcmp_nondenormal_double_ieee_dynamic_vector_nonsplat() #0 {
; CHECK-LABEL: define <2 x i1> @fold_fcmp_nondenormal_double_ieee_dynamic_vector_nonsplat(
; CHECK-SAME: ) #[[ATTR0]] {
; CHECK-NEXT: ret <2 x i1> <i1 false, i1 true>
;
%cmp = fcmp une <2 x double> <double 2.0, double 4.0>, <double 2.0, double 8.0>
ret <2 x i1> %cmp
}
define <3 x i1> @fold_fcmp_nondenormal_double_ieee_dynamic_vector_nonsplat_undef() #0 {
; CHECK-LABEL: define <3 x i1> @fold_fcmp_nondenormal_double_ieee_dynamic_vector_nonsplat_undef(
; CHECK-SAME: ) #[[ATTR0]] {
; CHECK-NEXT: ret <3 x i1> <i1 true, i1 true, i1 false>
;
%cmp = fcmp une <3 x double> <double 2.0, double undef, double 4.0>, <double 1.0, double undef, double 4.0>
ret <3 x i1> %cmp
}
define <2 x i1> @fold_fcmp_nondenormal_double_ieee_dynamic_zero() #0 {
; CHECK-LABEL: define <2 x i1> @fold_fcmp_nondenormal_double_ieee_dynamic_zero(
; CHECK-SAME: ) #[[ATTR0]] {
; CHECK-NEXT: ret <2 x i1> zeroinitializer
;
%cmp = fcmp une <2 x double> zeroinitializer, zeroinitializer
ret <2 x i1> %cmp
}
define <2 x i1> @no_fold_fcmp_denormal_double_ieee_dynamic_vector_nonsplat() #0 {
; CHECK-LABEL: define <2 x i1> @no_fold_fcmp_denormal_double_ieee_dynamic_vector_nonsplat(
; CHECK-SAME: ) #[[ATTR0]] {
; CHECK-NEXT: [[CMP:%.*]] = fcmp une <2 x double> <double f0x0008000000000000, double 1.000000e+00>, zeroinitializer
; CHECK-NEXT: ret <2 x i1> [[CMP]]
;
%cmp = fcmp une <2 x double> <double 0x8000000000000, double 1.0>, zeroinitializer
ret <2 x i1> %cmp
}
define <vscale x 2 x i1> @fold_fcmp_nondenormal_double_ieee_dynamic_scalable_vector_splat() #0 {
; CHECK-LABEL: define <vscale x 2 x i1> @fold_fcmp_nondenormal_double_ieee_dynamic_scalable_vector_splat(
; CHECK-SAME: ) #[[ATTR0]] {
; CHECK-NEXT: ret <vscale x 2 x i1> splat (i1 true)
;
%cmp = fcmp une <vscale x 2 x double> splat (double 2.0), zeroinitializer
ret <vscale x 2 x i1> %cmp
}
define <vscale x 2 x i1> @no_fold_fcmp_denormal_double_ieee_dynamic_scalable_vector_splat() #0 {
; CHECK-LABEL: define <vscale x 2 x i1> @no_fold_fcmp_denormal_double_ieee_dynamic_scalable_vector_splat(
; CHECK-SAME: ) #[[ATTR0]] {
; CHECK-NEXT: [[CMP:%.*]] = fcmp une <vscale x 2 x double> splat (double f0x0008000000000000), zeroinitializer
; CHECK-NEXT: ret <vscale x 2 x i1> [[CMP]]
;
%cmp = fcmp une <vscale x 2 x double> splat (double 0x8000000000000), zeroinitializer
ret <vscale x 2 x i1> %cmp
}
attributes #0 = { denormal_fpenv(ieee|dynamic) }