[AArch64] SVE tests
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / unpack_fcvt_unsigned_1_run.c
blob829a851e088165a9cf2be7db881e30cee60798f1
1 /* { dg-do run { target aarch64_sve_hw } } */
2 /* { dg-options "-O2 -ftree-vectorize" } */
4 #include "unpack_fcvt_unsigned_1.c"
6 #define ARRAY_SIZE 153
8 #define VAL1 ((unsigned int) ((i * 345435) - (21 * 345435)))
10 int __attribute__ ((optimize (1)))
11 main (void)
13 double array_dest[ARRAY_SIZE];
14 uint32_t array_source[ARRAY_SIZE];
16 for (int i = 0; i < ARRAY_SIZE; i++)
18 array_source[i] = VAL1;
19 asm volatile ("" ::: "memory");
22 unpack_double_int_plus9 (array_dest, array_source, ARRAY_SIZE);
23 for (int i = 0; i < ARRAY_SIZE; i++)
24 if (array_dest[i] != (double) (VAL1 + 9))
25 __builtin_abort ();
27 return 0;