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
81 lines
2.0 KiB
LLVM
81 lines
2.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
|
|
; RUN: opt < %s -passes=instcombine -S | FileCheck %s
|
|
|
|
@empty = private unnamed_addr constant [1 x i8] zeroinitializer, align 1
|
|
@dec = private unnamed_addr constant [2 x i8] c"1\00", align 1
|
|
@hex = private unnamed_addr constant [4 x i8] c"0xf\00", align 1
|
|
|
|
define double @nan_empty() {
|
|
; CHECK-LABEL: define double @nan_empty() {
|
|
; CHECK-NEXT: ret double +qnan
|
|
;
|
|
%res = call double @nan(ptr @empty)
|
|
ret double %res
|
|
}
|
|
|
|
define double @nan_dec() {
|
|
; CHECK-LABEL: define double @nan_dec() {
|
|
; CHECK-NEXT: ret double +nan(0x1)
|
|
;
|
|
%res = call double @nan(ptr @dec)
|
|
ret double %res
|
|
}
|
|
|
|
define double @nan_hex() {
|
|
; CHECK-LABEL: define double @nan_hex() {
|
|
; CHECK-NEXT: ret double +nan(0xF)
|
|
;
|
|
%res = call double @nan(ptr @hex)
|
|
ret double %res
|
|
}
|
|
|
|
define float @nanf_empty() {
|
|
; CHECK-LABEL: define float @nanf_empty() {
|
|
; CHECK-NEXT: ret float +qnan
|
|
;
|
|
%res = call float @nanf(ptr @empty)
|
|
ret float %res
|
|
}
|
|
|
|
; nagative tests
|
|
|
|
define double @nan_poison() {
|
|
; CHECK-LABEL: define double @nan_poison() {
|
|
; CHECK-NEXT: [[RES:%.*]] = call double @nan(ptr poison)
|
|
; CHECK-NEXT: ret double [[RES]]
|
|
;
|
|
%res = call double @nan(ptr poison)
|
|
ret double %res
|
|
}
|
|
|
|
define double @nan_undef() {
|
|
; CHECK-LABEL: define double @nan_undef() {
|
|
; CHECK-NEXT: [[RES:%.*]] = call double @nan(ptr undef)
|
|
; CHECK-NEXT: ret double [[RES]]
|
|
;
|
|
%res = call double @nan(ptr undef)
|
|
ret double %res
|
|
}
|
|
|
|
define double @nan_null() {
|
|
; CHECK-LABEL: define double @nan_null() {
|
|
; CHECK-NEXT: [[RES:%.*]] = call double @nan(ptr null)
|
|
; CHECK-NEXT: ret double [[RES]]
|
|
;
|
|
%res = call double @nan(ptr null)
|
|
ret double %res
|
|
}
|
|
|
|
define double @nan_non_constant(ptr %x) {
|
|
; CHECK-LABEL: define double @nan_non_constant(
|
|
; CHECK-SAME: ptr [[X:%.*]]) {
|
|
; CHECK-NEXT: [[RES:%.*]] = call double @nan(ptr [[X]])
|
|
; CHECK-NEXT: ret double [[RES]]
|
|
;
|
|
%res = call double @nan(ptr %x)
|
|
ret double %res
|
|
}
|
|
|
|
declare float @nanf(ptr)
|
|
declare double @nan(ptr)
|