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
102 lines
3.5 KiB
LLVM
102 lines
3.5 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
|
|
; RUN: opt -S -passes=jump-threading < %s | FileCheck %s
|
|
|
|
; Test for assert that fired after
|
|
; ddb3f12c428bc4bd5a98913d74dfd7f2402bdfd8. simplifyFCmpInst is called
|
|
; with a literal negative nan without a context instruction.
|
|
|
|
|
|
; simplifyFCmpInst gets called without a context instruction and
|
|
; expects to simplify an ordered compare with a negative nan.
|
|
define i1 @simplify_fcmp_negative_nan_oeq(i1 %cond, float %arg) {
|
|
; CHECK-LABEL: define i1 @simplify_fcmp_negative_nan_oeq(
|
|
; CHECK-SAME: i1 [[COND:%.*]], float [[ARG:%.*]]) {
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: br i1 [[COND]], label [[BB2:%.*]], label [[BB5:%.*]]
|
|
; CHECK: bb2:
|
|
; CHECK-NEXT: [[I3:%.*]] = fcmp oeq float 0.000000e+00, [[ARG]]
|
|
; CHECK-NEXT: br i1 [[I3]], label [[BB5]], label [[BB5]]
|
|
; CHECK: bb5:
|
|
; CHECK-NEXT: [[I33:%.*]] = phi i1 [ [[I3]], [[BB2]] ], [ [[I3]], [[BB2]] ], [ false, [[BB:%.*]] ]
|
|
; CHECK-NEXT: ret i1 [[I33]]
|
|
;
|
|
bb:
|
|
br i1 %cond, label %bb1, label %bb2
|
|
|
|
bb1:
|
|
br label %bb2
|
|
|
|
bb2: ; preds = %bb1, %bb
|
|
%i = phi float [ 0xFFFFFFFFE0000000, %bb ], [ 0.000000e+00, %bb1 ]
|
|
%i3 = fcmp oeq float %i, %arg
|
|
br i1 %i3, label %bb4, label %bb5
|
|
|
|
bb4: ; preds = %bb2
|
|
br label %bb5
|
|
|
|
bb5: ; preds = %bb4, %bb2
|
|
ret i1 %i3
|
|
}
|
|
|
|
; simplifyFCmpInst gets called without a context instruction and
|
|
; expects to simplify an unordered compare with a negative nan.
|
|
define i1 @simplify_fcmp_negative_nan_ueq(i1 %cond, float %arg) {
|
|
; CHECK-LABEL: define i1 @simplify_fcmp_negative_nan_ueq(
|
|
; CHECK-SAME: i1 [[COND:%.*]], float [[ARG:%.*]]) {
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: br i1 [[COND]], label [[BB2:%.*]], label [[BB5:%.*]]
|
|
; CHECK: bb2:
|
|
; CHECK-NEXT: [[I3:%.*]] = fcmp ueq float 0.000000e+00, [[ARG]]
|
|
; CHECK-NEXT: br i1 [[I3]], label [[BB5]], label [[BB5]]
|
|
; CHECK: bb5:
|
|
; CHECK-NEXT: [[I33:%.*]] = phi i1 [ [[I3]], [[BB2]] ], [ [[I3]], [[BB2]] ], [ true, [[BB:%.*]] ]
|
|
; CHECK-NEXT: ret i1 [[I33]]
|
|
;
|
|
bb:
|
|
br i1 %cond, label %bb1, label %bb2
|
|
|
|
bb1:
|
|
br label %bb2
|
|
|
|
bb2: ; preds = %bb1, %bb
|
|
%i = phi float [ 0xFFFFFFFFE0000000, %bb ], [ 0.000000e+00, %bb1 ]
|
|
%i3 = fcmp ueq float %i, %arg
|
|
br i1 %i3, label %bb4, label %bb5
|
|
|
|
bb4: ; preds = %bb2
|
|
br label %bb5
|
|
|
|
bb5: ; preds = %bb4, %bb2
|
|
ret i1 %i3
|
|
}
|
|
|
|
define i1 @simplify_fcmp_positive_nan_oeq(i1 %cond, float %arg) {
|
|
; CHECK-LABEL: define i1 @simplify_fcmp_positive_nan_oeq(
|
|
; CHECK-SAME: i1 [[COND:%.*]], float [[ARG:%.*]]) {
|
|
; CHECK-NEXT: bb:
|
|
; CHECK-NEXT: br i1 [[COND]], label [[BB2:%.*]], label [[BB5:%.*]]
|
|
; CHECK: bb2:
|
|
; CHECK-NEXT: [[I3:%.*]] = fcmp oeq float 0.000000e+00, [[ARG]]
|
|
; CHECK-NEXT: br i1 [[I3]], label [[BB5]], label [[BB5]]
|
|
; CHECK: bb5:
|
|
; CHECK-NEXT: [[I33:%.*]] = phi i1 [ [[I3]], [[BB2]] ], [ [[I3]], [[BB2]] ], [ false, [[BB:%.*]] ]
|
|
; CHECK-NEXT: ret i1 [[I33]]
|
|
;
|
|
bb:
|
|
br i1 %cond, label %bb1, label %bb2
|
|
|
|
bb1:
|
|
br label %bb2
|
|
|
|
bb2: ; preds = %bb1, %bb
|
|
%i = phi float [ 0x7FFFFFFFE0000000, %bb ], [ 0.000000e+00, %bb1 ]
|
|
%i3 = fcmp oeq float %i, %arg
|
|
br i1 %i3, label %bb4, label %bb5
|
|
|
|
bb4: ; preds = %bb2
|
|
br label %bb5
|
|
|
|
bb5: ; preds = %bb4, %bb2
|
|
ret i1 %i3
|
|
}
|