AVR: target/84211 - Add a post reload register optimization pass.
[official-gcc.git] / gcc / testsuite / gcc.dg / torture / pr81245.c
blobb2ee7bb3a9bf09194cee0db4f1562f94484f8e18
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)
9 for (int i = 0 ;i < 18;i++)
11 if (sg[i] < 0.0)
12 sg[i] = -1.0;
13 else
14 sg[i] = 1.0;