1 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -verify -emit-llvm -o - %s
2 // REQUIRES: aarch64-registered-target
4 // Test that we can use __ARM_NEON_SVE_BRIDGE to guard to inclusion of arm_neon_sve_bridge.h,
5 // and use the associated intrinsics via a target() attribute.
7 // expected-no-diagnostics
9 #ifdef __ARM_NEON_SVE_BRIDGE
10 #include <arm_neon_sve_bridge.h>
13 uint32x4_t
__attribute__((target("+sve"))) foo(svuint32_t a
) {
14 return svget_neonq_u32(a
);