[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / aarch64-neon.cpp
blobfc8642df257fbbeb9b4925bd10d0256451fd9ef6
1 // REQUIRES: aarch64-registered-target
2 // RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
3 // RUN: -ffp-contract=fast -S -O3 -o - %s | FileCheck %s
4 // RUN: %clang_cc1 -triple arm64-none-netbsd-gnu -target-feature +neon \
5 // RUN: -ffp-contract=fast -S -O3 -o - %s | FileCheck %s
7 // Test whether arm_neon.h works as expected in C++.
9 #include "arm_neon.h"
11 poly64x1_t test_vld1_p64(poly64_t const * ptr) {
12 // CHECK: test_vld1_p64
13 return vld1_p64(ptr);
14 // CHECK: {{ld1 { v[0-9]+.1d }|ldr d[0-9]+}}, [{{x[0-9]+|sp}}]