2014-06-18 16:37:28 +08:00
|
|
|
// REQUIRES: aarch64-registered-target
|
2014-04-30 18:52:05 +08:00
|
|
|
// RUN: %clang_cc1 -triple arm64-none-linux-gnu -target-feature +neon \
|
|
|
|
// RUN: -ffp-contract=fast -S -O3 -o - %s | FileCheck %s
|
2013-11-18 14:33:43 +08:00
|
|
|
|
|
|
|
// Test whether arm_neon.h can be used in .cpp file.
|
|
|
|
|
|
|
|
#include "arm_neon.h"
|
|
|
|
|
|
|
|
poly64x1_t test_vld1_p64(poly64_t const * ptr) {
|
|
|
|
// CHECK: test_vld1_p64
|
|
|
|
return vld1_p64(ptr);
|
2014-04-30 18:52:05 +08:00
|
|
|
// CHECK: {{ld1 { v[0-9]+.1d }|ldr d[0-9]+}}, [{{x[0-9]+|sp}}]
|
2013-11-18 14:33:43 +08:00
|
|
|
}
|