| 1 |
// RUN: %clang_cc1 -triple aarch64-linux-gnu -target-feature +neon -target-feature +bf16 -target-feature +faminmax -emit-llvm -verify %s -o /dev/null |
| 2 |
|
| 3 |
// REQUIRES: aarch64-registered-target |
| 4 |
|
| 5 |
#include <arm_neon.h> |
| 6 |
|
| 7 |
void test_features(float16x4_t vd4, float16x8_t vd8, float32x4_t va4, |
| 8 |
mfloat8x8_t v8, mfloat8x16_t v16, fpm_t fpm) { |
| 9 |
(void) vcvt1_bf16_mf8_fpm(v8, fpm); |
| 10 |
// expected-error@-1 {{'vcvt1_bf16_mf8_fpm' requires target feature 'fp8'}} |
| 11 |
(void) vcvt1_low_bf16_mf8_fpm(v16, fpm); |
| 12 |
// expected-error@-1 {{'vcvt1_low_bf16_mf8_fpm' requires target feature 'fp8'}} |
| 13 |
(void) vcvt2_bf16_mf8_fpm(v8, fpm); |
| 14 |
// expected-error@-1 {{'vcvt2_bf16_mf8_fpm' requires target feature 'fp8'}} |
| 15 |
(void) vcvt2_low_bf16_mf8_fpm(v16, fpm); |
| 16 |
// expected-error@-1 {{'vcvt2_low_bf16_mf8_fpm' requires target feature 'fp8'}} |
| 17 |
|
| 18 |
(void) vcvt1_high_bf16_mf8_fpm(v16, fpm); |
| 19 |
// expected-error@-1 {{'vcvt1_high_bf16_mf8_fpm' requires target feature 'fp8'}} |
| 20 |
(void) vcvt2_high_bf16_mf8_fpm(v16, fpm); |
| 21 |
// expected-error@-1 {{'vcvt2_high_bf16_mf8_fpm' requires target feature 'fp8'}} |
| 22 |
|
| 23 |
(void) vcvt1_f16_mf8_fpm(v8, fpm); |
| 24 |
// expected-error@-1 {{'vcvt1_f16_mf8_fpm' requires target feature 'fp8'}} |
| 25 |
(void) vcvt1_low_f16_mf8_fpm(v16, fpm); |
| 26 |
// expected-error@-1 {{'vcvt1_low_f16_mf8_fpm' requires target feature 'fp8'}} |
| 27 |
(void) vcvt2_f16_mf8_fpm(v8, fpm); |
| 28 |
// expected-error@-1 {{'vcvt2_f16_mf8_fpm' requires target feature 'fp8'}} |
| 29 |
(void) vcvt2_low_f16_mf8_fpm(v16, fpm); |
| 30 |
// expected-error@-1 {{'vcvt2_low_f16_mf8_fpm' requires target feature 'fp8'}} |
| 31 |
(void) vcvt1_high_f16_mf8_fpm(v16, fpm); |
| 32 |
// expected-error@-1 {{'vcvt1_high_f16_mf8_fpm' requires target feature 'fp8'}} |
| 33 |
(void) vcvt2_high_f16_mf8_fpm(v16, fpm); |
| 34 |
// expected-error@-1 {{'vcvt2_high_f16_mf8_fpm' requires target feature 'fp8'}} |
| 35 |
(void) vcvt_mf8_f32_fpm(va4, va4, fpm); |
| 36 |
// expected-error@-1 {{'vcvt_mf8_f32_fpm' requires target feature 'fp8'}} |
| 37 |
(void) vcvt_high_mf8_f32_fpm(v8, va4, va4, fpm); |
| 38 |
// expected-error@-1 {{'vcvt_high_mf8_f32_fpm' requires target feature 'fp8'}} |
| 39 |
(void) vcvt_mf8_f16_fpm(vd4, vd4, fpm); |
| 40 |
// expected-error@-1 {{'vcvt_mf8_f16_fpm' requires target feature 'fp8'}} |
| 41 |
(void) vcvtq_mf8_f16_fpm(vd8, vd8, fpm); |
| 42 |
// expected-error@-1 {{'vcvtq_mf8_f16_fpm' requires target feature 'fp8'}} |
| 43 |
} |