gcc/testsuite/gcc.dg/tree-ssa/gen-vect-34.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Ofast -fdump-tree-vect-details" } */ |
| 3 | /* { dg-additional-options "-mavx2" { target { x86_64-*-* i?86-*-* } } } */ |
| 4 | |
| 5 | float summul(int n, float *arg1, float *arg2) |
| 6 | { |
| 7 | int i; |
| 8 | float res1 = 1.0; |
| 9 | for(i = 0; i < n; i++) { |
| 10 | if(arg2[i]) |
| 11 | res1 *= arg1[i]; |
| 12 | } |
| 13 | return res1; |
| 14 | } |
| 15 | |
| 16 | /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target vect_masked_load } } } */ |