Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr53773.c

raw
1 /* Disabling epilogues until we find a better way to deal with scans. */
2 /* { dg-additional-options "--param vect-epilogues-nomask=0" } */
3 /* { dg-do compile } */
4 /* Disable BB vectorization, we now can cover the whole loop with that
5 when the target supports .REDUC_PLUS for integers, we don't have a
6 good target selector for this. */
7 /* { dg-additional-options "-fdump-tree-optimized -fno-tree-slp-vectorize" } */
8
9 int
10 foo (int integral, int decimal, int power_ten)
11 {
12 while (power_ten > 0)
13 {
14 integral *= 10;
15 decimal *= 10;
16 power_ten--;
17 }
18
19 return integral+decimal;
20 }
21
22 /* We can avoid a scalar tail when using fully-masked loops with a fixed
23 vector length. */
24 /* { dg-final { scan-tree-dump-times "\\* 10" 2 "optimized" { target { { ! vect_fully_masked } || vect_variable_length } } } } */
25 /* { dg-final { scan-tree-dump-times "\\* 10" 0 "optimized" { target { vect_fully_masked && { ! vect_variable_length } } } } } */
26