1*f4a2713aSLionel Sambuc // REQUIRES: arm-registered-target
2*f4a2713aSLionel Sambuc // RUN: not %clang_cc1 -triple armv7 -target-feature +neon %s -S -o /dev/null 2>&1 | FileCheck %s
3*f4a2713aSLionel Sambuc
4*f4a2713aSLionel Sambuc // rdar://13446483
5*f4a2713aSLionel Sambuc typedef __attribute__((neon_vector_type(2))) long long int64x2_t;
6*f4a2713aSLionel Sambuc typedef struct int64x2x4_t {
7*f4a2713aSLionel Sambuc int64x2_t val[4];
8*f4a2713aSLionel Sambuc } int64x2x4_t;
t1(const long long a[])9*f4a2713aSLionel Sambuc int64x2x4_t t1(const long long a[]) {
10*f4a2713aSLionel Sambuc int64x2x4_t r;
11*f4a2713aSLionel Sambuc __asm__("vldm %[a], { %q[r0], %q[r1], %q[r2], %q[r3] }"
12*f4a2713aSLionel Sambuc : [r0] "=r"(r.val[0]), // expected-warning {{value size does not match register size specified by the constraint and modifier}}
13*f4a2713aSLionel Sambuc [r1] "=r"(r.val[1]), // expected-warning {{value size does not match register size specified by the constraint and modifier}}
14*f4a2713aSLionel Sambuc [r2] "=r"(r.val[2]), // expected-warning {{value size does not match register size specified by the constraint and modifier}}
15*f4a2713aSLionel Sambuc [r3] "=r"(r.val[3]) // expected-warning {{value size does not match register size specified by the constraint and modifier}}
16*f4a2713aSLionel Sambuc : [a] "r"(a));
17*f4a2713aSLionel Sambuc return r;
18*f4a2713aSLionel Sambuc }
19*f4a2713aSLionel Sambuc // We should see all four errors, rather than report a fatal error after the first.
20*f4a2713aSLionel Sambuc // CHECK: error: non-trivial scalar-to-vector conversion, possible invalid constraint for vector type
21*f4a2713aSLionel Sambuc // CHECK: error: non-trivial scalar-to-vector conversion, possible invalid constraint for vector type
22*f4a2713aSLionel Sambuc // CHECK: error: non-trivial scalar-to-vector conversion, possible invalid constraint for vector type
23*f4a2713aSLionel Sambuc // CHECK: error: non-trivial scalar-to-vector conversion, possible invalid constraint for vector type
24