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
53 lines
2.5 KiB
C
53 lines
2.5 KiB
C
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,SIGNED
|
|
// RUN: %clang_cc1 -ffixed-point -triple x86_64-unknown-linux-gnu -fpadding-on-unsigned-fixed-point -emit-llvm %s -o - | FileCheck %s --check-prefixes=CHECK,UNSIGNED
|
|
|
|
short _Accum sa_const1 = 1.0hk << 2;
|
|
// CHECK-DAG: @sa_const1 = {{.*}}global i16 512
|
|
short _Accum sa_const2 = 0.5hk << 2;
|
|
// CHECK-DAG: @sa_const2 = {{.*}}global i16 256
|
|
short _Accum sa_const3 = 10.0hk >> 3;
|
|
// CHECK-DAG: @sa_const3 = {{.*}}global i16 160
|
|
short _Accum sa_const4 = 0.0546875hk << 8;
|
|
// CHECK-DAG: @sa_const4 = {{.*}}global i16 1792
|
|
short _Accum sa_const5 = -1.0hk << 2;
|
|
// CHECK-DAG: @sa_const5 = {{.*}}global i16 -512
|
|
short _Accum sa_const6 = -255.0hk >> 8;
|
|
// CHECK-DAG: @sa_const6 = {{.*}}global i16 -128
|
|
|
|
_Fract f_const1 = -1.0r >> 5;
|
|
// CHECK-DAG: @f_const1 = {{.*}}global i16 -1024
|
|
_Fract f_const2 = 0.0052490234375r >> 3;
|
|
// CHECK-DAG: @f_const2 = {{.*}}global i16 21
|
|
_Fract f_const3 = -0.0001r << 5;
|
|
// CHECK-DAG: @f_const3 = {{.*}}global i16 -96
|
|
_Fract f_const4 = -0.75r >> 15;
|
|
// CHECK-DAG: @f_const4 = {{.*}}global i16 -1
|
|
_Fract f_const5 = 0.078216552734375r << 3;
|
|
// CHECK-DAG: @f_const5 = {{.*}}global i16 20504
|
|
|
|
unsigned _Fract uf_const1 = 0.375ur >> 13;
|
|
// SIGNED-DAG: @uf_const1 = {{.*}}global i16 3
|
|
// UNSIGNED-DAG: @uf_const1 = {{.*}}global i16 1
|
|
unsigned _Fract uf_const2 = 0.0546875ur << 3;
|
|
// SIGNED-DAG: @uf_const2 = {{.*}}global i16 28672
|
|
// UNSIGNED-DAG: @uf_const2 = {{.*}}global i16 14336
|
|
|
|
_Sat short _Accum ssa_const1 = (_Sat short _Accum)31.875hk << 4;
|
|
// CHECK-DAG: @ssa_const1 = {{.*}}global i16 32767
|
|
_Sat short _Accum ssa_const2 = (_Sat short _Accum) - 1.0hk << 8;
|
|
// CHECK-DAG: @ssa_const2 = {{.*}}global i16 -32768
|
|
_Sat short _Accum ssa_const3 = (_Sat short _Accum)128.0hk << 8;
|
|
// CHECK-DAG: @ssa_const3 = {{.*}}global i16 32767
|
|
_Sat short _Fract ssf_const1 = (_Sat short _Fract) - 0.5hr << 3;
|
|
// CHECK-DAG: @ssf_const1 = {{.*}}global i8 -128
|
|
|
|
_Sat unsigned _Fract suf_const1 = (_Sat unsigned _Fract)0.5r << 1;
|
|
// SIGNED-DAG: @suf_const1 = {{.*}}global i16 -1
|
|
// UNSIGNED-DAG: @suf_const1 = {{.*}}global i16 32767
|
|
_Sat unsigned _Fract suf_const2 = (_Sat unsigned _Fract)0.25r << 1;
|
|
// SIGNED-DAG: @suf_const2 = {{.*}}global i16 -32768
|
|
// UNSIGNED-DAG: @suf_const2 = {{.*}}global i16 16384
|
|
_Sat unsigned _Accum sua_const2 = (_Sat unsigned _Accum)128.0uk << 10;
|
|
// SIGNED-DAG: @sua_const2 = {{.*}}global i32 -1
|
|
// UNSIGNED-DAG: @sua_const2 = {{.*}}global i32 2147483647
|