arm64-neon-args.c revision 651f13cea278ec967336033dd032faef0e9fc2ec
1// RUN: %clang_cc1 -triple arm64-apple-darwin -fsyntax-only -ffreestanding -verify %s
2
3#include <arm_neon.h>
4
5// rdar://13527900
6void vcopy_reject(float32x4_t vOut0, float32x4_t vAlpha, int t) {
7  vcopyq_laneq_f32(vOut0, 1, vAlpha, t); // expected-error {{argument to '__builtin_neon_vgetq_lane_f32' must be a constant integer}} expected-error {{initializing 'float32_t' (aka 'float') with an expression of incompatible type 'void'}}
8}
9
10// rdar://problem/15256199
11float32x4_t test_vmlsq_lane(float32x4_t accum, float32x4_t lhs, float32x2_t rhs) {
12  return vmlsq_lane_f32(accum, lhs, rhs, 1);
13}
14