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
29 lines
1.2 KiB
C
29 lines
1.2 KiB
C
// RUN: %clang -ffixed-point -S -emit-llvm -o - %s | FileCheck %s -check-prefix=DEFAULT
|
|
// RUN: %clang_cc1 -ffixed-point -fpadding-on-unsigned-fixed-point -emit-llvm -o - %s | FileCheck %s -check-prefix=SAME
|
|
|
|
/* The scale for unsigned fixed point types should be the same as that of signed
|
|
* fixed point types when -fsame-fbits is enabled. */
|
|
|
|
void func(void) {
|
|
unsigned short _Accum u_short_accum = 0.5uhk;
|
|
unsigned _Accum u_accum = 0.5uk;
|
|
unsigned long _Accum u_long_accum = 0.5ulk;
|
|
unsigned short _Fract u_short_fract = 0.5uhr;
|
|
unsigned _Fract u_fract = 0.5ur;
|
|
unsigned long _Fract u_long_fract = 0.5ulr;
|
|
|
|
// DEFAULT: store i16 128, ptr {{.*}}, align 2
|
|
// DEFAULT: store i32 32768, ptr {{.*}}, align 4
|
|
// DEFAULT: store i64 2147483648, ptr {{.*}}, align 8
|
|
// DEFAULT: store i8 -128, ptr {{.*}}, align 1
|
|
// DEFAULT: store i16 -32768, ptr {{.*}}, align 2
|
|
// DEFAULT: store i32 -2147483648, ptr {{.*}}, align 4
|
|
|
|
// SAME: store i16 64, ptr {{.*}}, align 2
|
|
// SAME: store i32 16384, ptr {{.*}}, align 4
|
|
// SAME: store i64 1073741824, ptr {{.*}}, align 8
|
|
// SAME: store i8 64, ptr {{.*}}, align 1
|
|
// SAME: store i16 16384, ptr {{.*}}, align 2
|
|
// SAME: store i32 1073741824, ptr {{.*}}, align 4
|
|
}
|