Daily bump.
[official-gcc.git] / gcc / testsuite / gcc.target / arm / pr71778.c
blobd5b0d04e5e7633910d35f55ea33153ef3b04de7c
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_neon_ok } */
3 /* { dg-options "-O2" } */
4 /* { dg-add-options arm_neon } */
6 typedef __simd128_int32_t int32x4_t;
8 __extension__ extern __inline int32x4_t
9 __attribute__ ((__always_inline__, __gnu_inline__, __artificial__))
10 vshrq_n_s32 (int32x4_t __a, const int __b)
12 /* Errors for arm_neon.h intrinsics using constants end up on the line
13 in arm_neon.h rather than the source file line. That means we
14 need to put the dg-error up here, rather than on line 22 where we'd
15 like it. */
16 return (int32x4_t)__builtin_neon_vshrs_nv4si (__a, __b); /* { dg-error "argument 2 must be a constant immediate" } */
19 int32x4_t
20 shift (int32x4_t a, int b)
22 return vshrq_n_s32 (a, b);