Debian Codegraph @

clang/test/Sema/aarch64-sme2-intrinsics/acle_sme2_b16b16.cpp

raw
1 // REQUIRES: aarch64-registered-target
2
3 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -target-feature +bf16 -target-feature +sme -target-feature +sme2 -emit-llvm-only -verify -verify-ignore-unexpected=error,note -o - %s
4
5 #include <arm_sme.h>
6
7 void test_b16b16( svbfloat16_t bf16, svbfloat16x2_t bf16x2, svbfloat16x4_t bf16x4) __arm_streaming
8 {
9 // expected-error@+1 {{'svclamp_single_bf16_x2' needs target feature sme2,b16b16}}
10 svclamp_single_bf16_x2(bf16x2, bf16, bf16);
11 // expected-error@+1 {{'svclamp_single_bf16_x4' needs target feature sme2,b16b16}}
12 svclamp_single_bf16_x4(bf16x4, bf16, bf16);
13 }