1*67e74705SXin Li // RUN: %clang_cc1 -triple arm64-apple-darwin -target-feature +neon -fsyntax-only -ffreestanding -verify %s
2*67e74705SXin Li // RUN: %clang_cc1 -triple aarch64_be-none-linux-gnu -target-feature +neon -fsyntax-only -ffreestanding -verify %s
3*67e74705SXin Li
4*67e74705SXin Li #include <arm_neon.h>
5*67e74705SXin Li
6*67e74705SXin Li // rdar://13527900
vcopy_reject(float32x4_t vOut0,float32x4_t vAlpha,int t)7*67e74705SXin Li void vcopy_reject(float32x4_t vOut0, float32x4_t vAlpha, int t) {
8*67e74705SXin Li vcopyq_laneq_f32(vOut0, 1, vAlpha, t); // expected-error {{argument to '__builtin_neon_vgetq_lane_f32' must be a constant integer}}
9*67e74705SXin Li }
10*67e74705SXin Li
11*67e74705SXin Li // rdar://problem/15256199
test_vmlsq_lane(float32x4_t accum,float32x4_t lhs,float32x2_t rhs)12*67e74705SXin Li float32x4_t test_vmlsq_lane(float32x4_t accum, float32x4_t lhs, float32x2_t rhs) {
13*67e74705SXin Li return vmlsq_lane_f32(accum, lhs, rhs, 1);
14*67e74705SXin Li }
15