Debian Codegraph @

clang/test/Sema/aarch64-sve-intrinsics/acle_neon_sve_bridge.cpp

raw
1 // RUN: %clang_cc1 -triple aarch64-none-linux-gnu -verify -emit-llvm -o - %s
2 // REQUIRES: aarch64-registered-target
3
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-diagnostics
8
9 #ifdef __ARM_NEON_SVE_BRIDGE
10 #include <arm_neon_sve_bridge.h>
11 #endif
12
13 uint32x4_t __attribute__((target("+sve"))) foo(svuint32_t a) {
14 return svget_neonq_u32(a);
15 }