Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/clastb_6.c

raw
1 /* { dg-do assemble { target aarch64_asm_sve_ok } } */
2 /* { dg-options "-O2 -ftree-vectorize -fdump-tree-vect-details --save-temps" } */
3
4 #define N 32
5
6 #ifndef TYPE
7 #define TYPE float
8 #endif
9
10 /* Non-integer data types. */
11
12 TYPE __attribute__ ((noinline, noclone))
13 condition_reduction (TYPE *a, TYPE min_v)
14 {
15 TYPE last = 0;
16
17 for (int i = 0; i < N; i++)
18 if (a[i] < min_v)
19 last = a[i];
20
21 return last;
22 }
23
24 /* { dg-final { scan-tree-dump "operating on partial vectors." "vect" } } */
25 /* { dg-final { scan-assembler {\tclastb\ts[0-9]+, p[0-7], s[0-9]+, z[0-9]+\.s} } } */