Debian Codegraph @

gcc/testsuite/gcc.target/arm/mve/intrinsics/mve_load_from_array.c

raw
1 /* { dg-require-effective-target arm_v8_1m_mve_ok } */
2 /* { dg-add-options arm_v8_1m_mve } */
3 /* { dg-additional-options "-O2" } */
4
5 #include "arm_mve.h"
6
7 uint16x8_t
8 foo (void)
9 {
10 static uint16_t const a[] = {0, 1, 2, 3, 4, 5, 6, 7};
11 return vld1q (a);
12 }
13
14 uint16_t b[] = {0, 1, 2, 3, 4, 5, 6, 7};
15 void
16 bar (uint16x8_t value)
17 {
18 vst1q (b, value);
19 }