gcc/
[official-gcc.git] / gcc / testsuite / gcc.target / arm / neon / vst1Q_laneu64-1.c
blob5f4c927b6e0af9e9e3885e5e1fa25ec21fd53c78
1 /* Test the `vst1Q_laneu64' ARM Neon intrinsic. */
3 /* Detect ICE in the case of unaligned memory address. */
5 /* { dg-do compile } */
6 /* { dg-require-effective-target arm_neon_ok } */
7 /* { dg-add-options arm_neon } */
9 #include "arm_neon.h"
11 unsigned char dummy_store[1000];
13 void
14 foo (char* addr)
16 uint8x16_t vdata = vld1q_u8 (addr);
17 vst1q_lane_u64 ((uint64_t*) &dummy_store, vreinterpretq_u64_u8 (vdata), 0);
20 uint64_t
21 bar (uint64x2_t vdata)
23 vdata = vld1q_lane_u64 ((uint64_t*) &dummy_store, vdata, 0);
24 return vgetq_lane_u64 (vdata, 0);