1 /* { dg-options "-ffast-math" } */
2 /* { dg-do compile } */
3 /* This test used to crash the vectorizer as the ifconvert pass
4 used to convert the if to copysign but called update_stmt on
5 the old statement after calling fold_stmt. */
6 double sg[18];
7 void f(void)
8 {
9 for (int i = 0 ;i < 18;i++)
10 {
11 if (sg[i] < 0.0)
12 sg[i] = -1.0;
13 else
14 sg[i] = 1.0;
15 }
16 }