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
105 lines
4.5 KiB
C
105 lines
4.5 KiB
C
// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +neon -verify -emit-llvm -o - %s
|
|
|
|
// REQUIRES: aarch64-registered-target
|
|
|
|
#include <arm_neon.h>
|
|
|
|
// Bitcast between FP8 Neon vectors
|
|
mfloat8x8_t err_test_f8_f8(mfloat8x16_t x) {
|
|
return (mfloat8x8_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) and 'mfloat8x16_t' (vector of 16 'mfloat8_t' values) of different size}}
|
|
}
|
|
|
|
mfloat8x16_t err_testq_f8_f8(mfloat8x8_t x) {
|
|
return (mfloat8x16_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x16_t' (vector of 16 'mfloat8_t' values) and 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) of different size}}
|
|
}
|
|
|
|
// Bitcast between FP8 and int8 Neon vectors
|
|
mfloat8x8_t err_test_f8_s8(int8x16_t x) {
|
|
return (mfloat8x8_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) and 'int8x16_t' (vector of 16 'int8_t' values) of different size}}
|
|
}
|
|
|
|
int8x8_t err_test_s8_f8(mfloat8x16_t x) {
|
|
return (int8x8_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'int8x8_t' (vector of 8 'int8_t' values) and 'mfloat8x16_t' (vector of 16 'mfloat8_t' values) of different size}}
|
|
}
|
|
|
|
mfloat8x16_t err_testq_f8_s8(int8x8_t x) {
|
|
return (mfloat8x16_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x16_t' (vector of 16 'mfloat8_t' values) and 'int8x8_t' (vector of 8 'int8_t' values) of different size}}
|
|
}
|
|
|
|
int8x16_t err_testq_s8_f8(mfloat8x8_t x) {
|
|
return (int8x16_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'int8x16_t' (vector of 16 'int8_t' values) and 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) of different size}}
|
|
}
|
|
|
|
// Bitcast between FP8 and float32 Neon vectors
|
|
mfloat8x8_t err_test_f8_f32(float32x4_t x) {
|
|
return (mfloat8x8_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) and 'float32x4_t' (vector of 4 'float32_t' values) of different size}}
|
|
}
|
|
|
|
float32x2_t err_test_f32_f8(mfloat8x16_t x) {
|
|
return (float32x2_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'float32x2_t' (vector of 2 'float32_t' values) and 'mfloat8x16_t' (vector of 16 'mfloat8_t' values) of different size}}
|
|
}
|
|
|
|
mfloat8x16_t err_testq_f8_f32(float32x2_t x) {
|
|
return (mfloat8x16_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x16_t' (vector of 16 'mfloat8_t' values) and 'float32x2_t' (vector of 2 'float32_t' values) of different size}}
|
|
}
|
|
|
|
float32x4_t err_testq_f32_f8(mfloat8x8_t x) {
|
|
return (float32x4_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'float32x4_t' (vector of 4 'float32_t' values) and 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) of different size}}
|
|
}
|
|
|
|
// Bitcast between FP8 and poly128_t (which is integral)
|
|
mfloat8x8_t err_testq_f8_p128(poly128_t x) {
|
|
return (mfloat8x8_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) and integer type 'poly128_t' (aka 'unsigned __int128') of different size}}
|
|
}
|
|
|
|
poly128_t err_testq_p128_f8(mfloat8x8_t x) {
|
|
return (poly128_t) x;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) and integer type 'poly128_t' (aka 'unsigned __int128') of different size}}
|
|
}
|
|
|
|
// Bitcast between FP8 and a non-integral type
|
|
mfloat8x8_t err_test_f8_ptr(void *p) {
|
|
return (mfloat8x8_t) p;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) and scalar type 'void *'}}
|
|
}
|
|
|
|
void *err_test_ptr_f8(mfloat8x8_t v) {
|
|
return (void *) v;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) and scalar type 'void *'}}
|
|
}
|
|
|
|
mfloat8x8_t err_test_f8_dbl(double v) {
|
|
return (mfloat8x8_t) v;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) and scalar type 'double'}}
|
|
}
|
|
|
|
double err_test_dbl_f8(mfloat8x8_t v) {
|
|
return (double) v;
|
|
// expected-error@-1 {{invalid conversion between vector type 'mfloat8x8_t' (vector of 8 'mfloat8_t' values) and scalar type 'double'}}
|
|
}
|
|
|
|
struct S {
|
|
char ch[16];
|
|
};
|
|
|
|
mfloat8x16_t err_test_f8_agg(struct S s) {
|
|
return (mfloat8x16_t) s;
|
|
// expected-error@-1 {{operand of type 'struct S' where arithmetic or pointer type is required}}
|
|
}
|
|
|
|
struct S err_test_agg_f8(mfloat8x16_t v) {
|
|
return (struct S) v;
|
|
// expected-error@-1 {{used type 'struct S' where arithmetic or pointer type is required}}
|
|
}
|