i386: Adjust rtx cost for imulq and imulw [PR115749]
[official-gcc.git] / gcc / testsuite / gcc.dg / vect / bb-slp-pr98854.c
blob0c8141e1d17ad5e5e8c909cc65776b6b8f182ec6
1 /* { dg-do compile } */
3 double a[1024];
5 int bar();
6 void foo (int n)
8 double x = 0, y = 0;
9 int i = 1023;
12 x += a[i] + a[i+1];
13 y += a[i] / a[i+1];
14 if (bar ())
15 break;
17 while (--i);
18 /* We want to avoid vectorizing the LC PHI and insert vector CTORs
19 inside of the loop where it is only needed here. */
20 a[0] = x;
21 a[1] = y;
24 /* { dg-final { scan-tree-dump-not "vectorizing SLP node starting from: ._\[0-9\]+ = PHI" "slp1" } } */