1 /* { dg-do assemble } */
2 /* { dg-options "-O2 -mcpu=cortex-a57 -march=armv8-a -ftree-vectorize -fdump-tree-vect-all" } */
4 /* The various ways to turn off simd availability should
5 turn off vectorization. */
7 __attribute__ ((target ("+nosimd")))
11 for (int i
= 0; i
< 1024; i
++)
15 __attribute__ ((target ("arch=armv8-a+nosimd")))
19 for (int i
= 0; i
< 1024; i
++)
23 __attribute__ ((target ("cpu=cortex-a53+nosimd")))
27 for (int i
= 0; i
< 1024; i
++)
31 __attribute__ ((target ("general-regs-only")))
35 for (int i
= 0; i
< 1024; i
++)
39 /* { dg-final { scan-tree-dump-not "vectorized 1 loops" "vect" } } */