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
77 lines
2.3 KiB
Common Lisp
77 lines
2.3 KiB
Common Lisp
// RUN: cp %s %t
|
|
// RUN: %clang_cc1 -cl-std=CL1.2 -pedantic -Wall -fixit %t -triple x86_64-unknown-linux-gnu
|
|
// RUN: %clang_cc1 -cl-std=CL1.2 -fsyntax-only -pedantic -Wall -Werror %t -triple x86_64-unknown-linux-gnu
|
|
// RUN: %clang_cc1 -cl-std=CL1.2 -E -o - %t -triple x86_64-unknown-linux-gnu | FileCheck %s
|
|
|
|
#pragma OPENCL EXTENSION cl_khr_fp64 : enable
|
|
|
|
typedef __attribute__((ext_vector_type(4))) char char4;
|
|
typedef __attribute__((ext_vector_type(4))) short short4;
|
|
typedef __attribute__((ext_vector_type(4))) int int4;
|
|
typedef __attribute__((ext_vector_type(4))) unsigned int uint4;
|
|
typedef __attribute__((ext_vector_type(8))) int int8;
|
|
typedef __attribute__((ext_vector_type(4))) long long4;
|
|
typedef __attribute__((ext_vector_type(4))) float float4;
|
|
typedef __attribute__((ext_vector_type(4))) double double4;
|
|
|
|
int printf(__constant const char* st, ...) __attribute__((format(printf, 1, 2)));
|
|
|
|
|
|
void vector_fixits() {
|
|
printf("%v4f", (int4) 123);
|
|
// CHECK: printf("%v4hld", (int4) 123);
|
|
|
|
printf("%v8d", (int4) 123);
|
|
// CHECK: printf("%v4hld", (int4) 123);
|
|
|
|
printf("%v4d", (int8) 123);
|
|
// CHECK: printf("%v8hld", (int8) 123);
|
|
|
|
printf("%v4f", (int8) 123);
|
|
// CHECK: printf("%v8hld", (int8) 123);
|
|
|
|
printf("%v4ld", (int8) 123);
|
|
// CHECK: printf("%v8hld", (int8) 123);
|
|
|
|
printf("%v4hlf", (int4) 123);
|
|
// CHECK: printf("%v4hld", (int4) 123);
|
|
|
|
printf("%v8hld", (int4) 123);
|
|
// CHECK: printf("%v4hld", (int4) 123);
|
|
|
|
printf("%v4hld", (int8) 123);
|
|
// CHECK: printf("%v8hld", (int8) 123);
|
|
|
|
printf("%v4hlf", (int8) 123);
|
|
// CHECK: printf("%v8hld", (int8) 123);
|
|
|
|
printf("%v4hd", (int4) 123);
|
|
// CHECK: printf("%v4hld", (int4) 123);
|
|
|
|
printf("%v4hld", (short4) 123);
|
|
// CHECK: printf("%v4hd", (short4) 123);
|
|
|
|
printf("%v4ld", (short4) 123);
|
|
// CHECK: printf("%v4hd", (short4) 123);
|
|
|
|
printf("%v4hld", (long4) 123);
|
|
// CHECK: printf("%v4ld", (long4) 123);
|
|
|
|
printf("%v8f", (float4) 2.0f);
|
|
// CHECK: printf("%v4hlf", (float4) 2.0f);
|
|
|
|
printf("%v4f", (float4) 2.0f);
|
|
// CHECK: printf("%v4hlf", (float4) 2.0f);
|
|
|
|
printf("%v4lf", (double4) 2.0);
|
|
// CHECK: printf("%v4lf", (double4) 2.0);
|
|
|
|
/// FIXME: This should be fixed
|
|
printf("%v4hhd", (int4) 123);
|
|
// CHECK: printf("%v4hhd", (int4) 123);
|
|
|
|
/// FIXME: This should be fixed
|
|
printf("%v4hhd", (int8) 123);
|
|
// CHECK: printf("%v4hhd", (int8) 123);
|
|
}
|