aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/tree-ssa/pr71078-1.c
blob: 6ca08a58dd8d6b539b7981d8de1019c32165850e (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 = x / t1;
  return t2;
}
 
/* { dg-final { scan-tree-dump "__builtin_copysignf" "forwprop1" } } */