Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 32 additions & 32 deletions clang/include/clang/Basic/arm_sve.td

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// NOTE: File has been autogenerated by utils/aarch64_builtins_test_generator.py
// RUN: %clang_cc1 %s -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +fp8 -target-feature +sme -target-feature +sve -target-feature +sve2 -verify=guard
// RUN: %clang_cc1 %s -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +fp8 -target-feature +sme -target-feature +sme2 -target-feature +sve -verify=streaming-guard
// RUN: %clang_cc1 %s -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +fp8 -target-feature +sme -target-feature +sme2 -target-feature +sve -target-feature +sve2 -verify
// RUN: %clang_cc1 %s -fsyntax-only -triple aarch64-none-linux-gnu -target-feature +fp8 -target-feature +sme -target-feature +sme2 -target-feature +sve -verify
// expected-no-diagnostics

// REQUIRES: aarch64-registered-target

#include <arm_sve.h>

// Properties: guard="sve,sve2,fp8" streaming_guard="sme,sme2,fp8" flags="feature-dependent"
// Properties: guard="sve,(sve2|sme2),fp8" streaming_guard="sme,sme2,fp8" flags="feature-dependent"

void test(void) {
fpm_t fpm_t_val;
Expand All @@ -17,53 +16,29 @@ void test(void) {
svfloat32x2_t svfloat32x2_t_val;
svmfloat8_t svmfloat8_t_val;

// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvt1_bf16_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvt1_bf16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvt1_f16_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvt1_f16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvt2_bf16_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvt2_bf16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvt2_f16_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvt2_f16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtlt1_bf16_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtlt1_bf16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtlt1_f16_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtlt1_f16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtlt2_bf16_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtlt2_bf16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtlt2_f16_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtlt2_f16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtn_mf8_bf16_x2_fpm(svbfloat16x2_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtn_mf8_f16_x2_fpm(svfloat16x2_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtn_mf8_fpm(svbfloat16x2_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtn_mf8_fpm(svfloat16x2_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtnb_mf8_f32_x2_fpm(svfloat32x2_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtnb_mf8_fpm(svfloat32x2_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtnt_mf8_f32_x2_fpm(svmfloat8_t_val, svfloat32x2_t_val, fpm_t_val);
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
svcvtnt_mf8_fpm(svmfloat8_t_val, svfloat32x2_t_val, fpm_t_val);
}

Expand Down Expand Up @@ -131,76 +106,52 @@ void test_streaming_compatible(void) __arm_streaming_compatible{
svfloat32x2_t svfloat32x2_t_val;
svmfloat8_t svmfloat8_t_val;

// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvt1_bf16_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvt1_bf16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvt1_f16_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvt1_f16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvt2_bf16_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvt2_bf16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvt2_f16_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvt2_f16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtlt1_bf16_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtlt1_bf16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtlt1_f16_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtlt1_f16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtlt2_bf16_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtlt2_bf16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtlt2_f16_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtlt2_f16_mf8_fpm(svmfloat8_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtn_mf8_bf16_x2_fpm(svbfloat16x2_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtn_mf8_f16_x2_fpm(svfloat16x2_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtn_mf8_fpm(svbfloat16x2_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtn_mf8_fpm(svfloat16x2_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtnb_mf8_f32_x2_fpm(svfloat32x2_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtnb_mf8_fpm(svfloat32x2_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtnt_mf8_f32_x2_fpm(svmfloat8_t_val, svfloat32x2_t_val, fpm_t_val);
// guard-error@+2 {{builtin can only be called from a non-streaming function}}
// streaming-guard-error@+1 {{builtin can only be called from a streaming function}}
// guard-error@+1 {{builtin can only be called from a non-streaming function}}
svcvtnt_mf8_fpm(svmfloat8_t_val, svfloat32x2_t_val, fpm_t_val);
}
Loading