1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize" } */
7 void __attribute__ ((weak
))
8 f (TYPE
*x
, TYPE
*y
, int n
, int m
)
10 for (int i
= 0; i
< SIZE
; ++i
)
14 /* { dg-final { scan-assembler {\tld1w\tz[0-9]+} } } */
15 /* { dg-final { scan-assembler {\tst1w\tz[0-9]+} } } */
16 /* { dg-final { scan-assembler {\tldr\tw[0-9]+} } } */
17 /* { dg-final { scan-assembler {\tstr\tw[0-9]+} } } */
18 /* Should multiply by (257-1)*4 rather than (VF-1)*4. */
19 /* { dg-final { scan-assembler-times {\tlsl\tx[0-9]+, x[0-9]+, 10\n} 2 } } */
20 /* { dg-final { scan-assembler {\tcmp\tw2, 0} } } */
21 /* { dg-final { scan-assembler {\tcmp\tw3, 0} } } */
22 /* { dg-final { scan-assembler-times {\tcsel\tx[0-9]+} 4 } } */
23 /* Two range checks and a check for n being zero. (m being zero is OK.) */
24 /* { dg-final { scan-assembler {\tcmp\t} } } */
25 /* { dg-final { scan-assembler-times {\tccmp\t} 2 } } */