[ARM] Fix test armv8_2-fp16-move-1.c
[official-gcc.git] / gcc / testsuite / gcc.target / arm / vst1Q_laneu64-1.c
blobde4e92a0b4aa5121864e2a78f20561168bb21dfa
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 (unsigned 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);