i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / pr53773.c
blob213e74e0b9d45f1781cf9436590b83ed6bcbdd8f
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" } */
9 int
10 foo (int integral, int decimal, int power_ten)
12 while (power_ten > 0)
14 integral *= 10;
15 decimal *= 10;
16 power_ten--;
19 return integral+decimal;
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 } } } } } */