summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr36073.c
blob: b1587579e321509c9156bb0ecc4eaf130f4849f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* { dg-do compile } */
/* { dg-options "-O -march=core2 -mfpmath=sse,387 -ffast-math" } */

extern double log (double x);
extern int f (void);

double cached_value;

void g (void)
{
  cached_value = log (f ());
}