summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr71078-2.c
blob: b74dbf536ab3e4171b47932836c2d928fc2abe00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/* { dg-do compile } */
/* { dg-require-effective-target c99_runtime } */
/* { dg-options "-O2 -ffast-math -fdump-tree-forwprop-details" } */

#include <math.h>

float f1(float x)
{
  float t1 = fabsf (x);
  float t2 = t1 / x; 
  return t2;
}
 
/* { dg-final { scan-tree-dump "__builtin_copysignf" "forwprop1" } } */