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
46 lines
1.2 KiB
C
46 lines
1.2 KiB
C
// RUN: %clang_cc1 -fexperimental-strict-floating-point -emit-llvm -ffp-exception-behavior=strict -Wno-unknown-pragmas %s -o - | FileCheck %s
|
|
// RUN: %clang_cc1 -fexperimental-strict-floating-point -emit-llvm -frounding-math -Wno-unknown-pragmas %s -o - | FileCheck %s
|
|
|
|
float PR47807 = -8.6563630030e-03;
|
|
|
|
// nextUp(1.F) == 0x1.000002p0F
|
|
|
|
struct S {
|
|
float f;
|
|
};
|
|
|
|
static struct S var_01 = {0x1.000001p0};
|
|
struct S *func_01(void) {
|
|
return &var_01;
|
|
}
|
|
|
|
struct S var_02 = {0x1.000001p0};
|
|
|
|
struct S *func_03(void) {
|
|
static struct S var_03 = {0x1.000001p0};
|
|
return &var_03;
|
|
}
|
|
|
|
// CHECK: @var_01 = {{.*}} %struct.S { float 1.000000e+00 }
|
|
// CHECK: @var_02 = {{.*}} %struct.S { float 1.000000e+00 }
|
|
// CHECK: @func_03.var_03 = {{.*}} %struct.S { float 1.000000e+00 }
|
|
|
|
#pragma STDC FENV_ROUND FE_UPWARD
|
|
|
|
static struct S var_04 = {0x1.000001p0};
|
|
struct S *func_04(void) {
|
|
return &var_04;
|
|
}
|
|
|
|
struct S var_05 = {0x1.000001p0};
|
|
|
|
struct S *func_06(void) {
|
|
static struct S var_06 = {0x1.000001p0};
|
|
return &var_06;
|
|
}
|
|
|
|
// CHECK: @var_04 = {{.*}} %struct.S { float f0x3F800001 }
|
|
// CHECK: @var_05 = {{.*}} %struct.S { float f0x3F800001 }
|
|
// CHECK: @func_06.var_06 = {{.*}} %struct.S { float f0x3F800001 }
|
|
|