1 /* { dg-additional-options "-fdump-tree-optimized" } */
9 int __attribute__ ((noipa
))
12 int b
[N
] = { 1, 0, 0, 0 }, res
= 0;
13 for (int i
= 0; i
< N
; ++i
)
18 int __attribute__ ((noipa
))
21 int b
[N
] = { 0, 1, 0, 0 }, res
= 0;
22 for (int i
= 0; i
< N
; ++i
)
27 int __attribute__ ((noipa
))
30 int b
[N
] = { 0, 0, 0, 1 }, res
= 0;
31 for (int i
= 0; i
< N
; ++i
)
41 for (int i
= 0; i
< N
; ++i
)
52 /* ??? We need more constant folding for this to work with fully-masked
54 /* { dg-final { scan-tree-dump-not {REDUC_PLUS} "optimized" { xfail { aarch64_sve || riscv_v } } } } */