[AArch64] Fix SVE testsuite failures for ILP32 (PR 83846)
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / sve / clastb_4_run.c
blob7aa3603b4c2541cb9e5fbb93c2d97aaec03cc716
1 /* { dg-do run { target aarch64_sve_hw } } */
2 /* { dg-options "-O2 -ftree-vectorize -fno-inline" } */
4 #include "clastb_4.c"
6 extern void abort (void) __attribute__ ((noreturn));
8 int __attribute__ ((optimize (1)))
9 main (void)
11 TYPE a[N] = {
12 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
13 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
14 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
15 31, 32
17 __builtin_memset (a+32, 43, (N-32)*sizeof (TYPE));
19 TYPE ret = condition_reduction (a, 16);
21 if (ret != 10)
22 abort ();
24 return 0;