15 lines · cpp
1// RUN: %clang_cc1 -triple aarch64-none-linux-gnu -verify -emit-llvm -o - %s2// REQUIRES: aarch64-registered-target3 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.6 7// expected-no-diagnostics8 9#ifdef __ARM_NEON_SVE_BRIDGE10#include <arm_neon_sve_bridge.h>11#endif12 13uint32x4_t __attribute__((target("+sve"))) foo(svuint32_t a) {14 return svget_neonq_u32(a);15}