Debian Codegraph @

clang/test/Sema/aarch64-fp8-intrinsics/acle_sme2_fp8_cvt.c

raw
1 // RUN: %clang_cc1 -triple aarch64 -target-feature +sme -verify -emit-llvm-only %s
2
3 // REQUIRES: aarch64-registered-target
4
5 #include <arm_sve.h>
6
7
8 void test_features_sme2_fp8(svmfloat8_t zn, svfloat16x2_t znf16, svbfloat16x2_t znbf16,
9 svfloat32x4_t znf32, fpm_t fpmr) __arm_streaming {
10 // expected-error@+1 {{'svcvtl1_f16_mf8_x2_fpm' needs target feature sme,sme2,fp8}}
11 svcvtl1_f16_mf8_x2_fpm(zn, fpmr);
12 // expected-error@+1 {{'svcvtl2_f16_mf8_x2_fpm' needs target feature sme,sme2,fp8}}
13 svcvtl2_f16_mf8_x2_fpm(zn, fpmr);
14 // expected-error@+1 {{'svcvtl1_bf16_mf8_x2_fpm' needs target feature sme,sme2,fp8}}
15 svcvtl1_bf16_mf8_x2_fpm(zn, fpmr);
16 // expected-error@+1 {{'svcvtl2_bf16_mf8_x2_fpm' needs target feature sme,sme2,fp8}}
17 svcvtl2_bf16_mf8_x2_fpm(zn, fpmr);
18
19 // expected-error@+1 {{'svcvt1_f16_mf8_x2_fpm' needs target feature sme,sme2,fp8}}
20 svcvt1_f16_mf8_x2_fpm(zn, fpmr);
21 // expected-error@+1 {{'svcvt2_f16_mf8_x2_fpm' needs target feature sme,sme2,fp8}}
22 svcvt2_f16_mf8_x2_fpm(zn, fpmr);
23 // expected-error@+1 {{'svcvt1_bf16_mf8_x2_fpm' needs target feature sme,sme2,fp8}}
24 svcvt1_bf16_mf8_x2_fpm(zn, fpmr);
25 // expected-error@+1 {{'svcvt2_bf16_mf8_x2_fpm' needs target feature sme,sme2,fp8}}
26 svcvt2_bf16_mf8_x2_fpm(zn, fpmr);
27
28 // expected-error@+1 {{'svcvt_mf8_f16_x2_fpm' needs target feature sme,sme2,fp8}}
29 svcvt_mf8_f16_x2_fpm(znf16, fpmr);
30 // expected-error@+1 {{'svcvt_mf8_bf16_x2_fpm' needs target feature sme,sme2,fp8}}
31 svcvt_mf8_bf16_x2_fpm(znbf16, fpmr);
32 // expected-error@+1 {{'svcvt_mf8_f32_x4_fpm' needs target feature sme,sme2,fp8}}
33 svcvt_mf8_f32_x4_fpm(znf32, fpmr);
34 // expected-error@+1 {{'svcvtn_mf8_f32_x4_fpm' needs target feature sme,sme2,fp8}}
35 svcvtn_mf8_f32_x4_fpm(znf32, fpmr);
36 }