Require target lra in gcc.dg/pr108095.c
[official-gcc.git] / gcc / testsuite / gcc.dg / pr89984.c
blob471fe92bc86ab25622569cec80e71536f7e60ec3
1 /* PR target/89984 */
2 /* { dg-do run } */
3 /* { dg-options "-O2" } */
5 __attribute__((noipa)) float
6 foo (float x, float y)
8 return x * __builtin_copysignf (1.0f, y) + y;
11 int
12 main ()
14 if (foo (1.25f, 7.25f) != 1.25f + 7.25f
15 || foo (1.75f, -3.25f) != -1.75f + -3.25f
16 || foo (-2.25f, 7.5f) != -2.25f + 7.5f
17 || foo (-3.0f, -4.0f) != 3.0f + -4.0f)
18 __builtin_abort ();
19 return 0;