================ @@ -0,0 +1,12 @@ +// RUN: %clang_cc1 -triple aarch64-none-linux-gnu \ +// RUN: -target-feature +sve -target-feature +sme -target-feature +ssve -target-feature +sme2p2 \ +// RUN: -fsyntax-only -verify %s +// REQUIRES: aarch64-registered-target +// expected-no-diagnostics + + +#include <arm_sve.h> + +void test_svcompact_streaming(svbool_t pg, svfloat32_t op) __arm_streaming { + svcompact(pg, op); +} ---------------- paulwalker-arm wrote:
For the Sema testing we normally verify both: * The builtins are enabled when the target feature is available. * The compiler emits a diagnostic when the target feature is not available. See clang/test/Sema/aarch64-sve-intrinsics/acle_sve_bf16.cpp for inspiration, albeit you only care about streaming mode so you can ignore the MODE_ATTR side of things. https://github.com/llvm/llvm-project/pull/151703 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits