* gcc.dg/stack-check-5.c: Skip with -fstack-protector.
[official-gcc.git] / gcc / testsuite / gcc.dg / ifcvt-fabs-1.c
blob409bbc4fea080ebe01abab2f0ef6b0e922144752
1 /* { dg-do run } */
2 /* { dg-options "-O" } */
3 /* { dg-options "-O -march=i686" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
5 extern void abort(void);
7 float foo(float f)
9 if (f < 0.0f)
10 f = -f;
12 return f;
15 int main(void)
17 if (foo (-1.0f) != 1.0f)
18 abort ();
20 return 0;