2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / arm / neon-vld3-1.c
blob0cc5c8826dbda73a268a0f5c058eeea238913b11
1 /* { dg-do run } */
2 /* { dg-require-effective-target arm_neon_hw } */
3 /* { dg-options "-O2" } */
4 /* { dg-add-options arm_neon } */
6 #include "arm_neon.h"
8 uint32_t buffer[12];
10 void __attribute__((noinline))
11 foo (uint32_t *a)
13 uint32x4x3_t x;
15 x = vld3q_u32 (a);
16 x.val[0] = vaddq_u32 (x.val[0], x.val[1]);
17 vst3q_u32 (a, x);
20 int
21 main (void)
23 buffer[0] = 1;
24 buffer[1] = 2;
25 foo (buffer);
26 return buffer[0] != 3;