]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/tree-ssa/pr107490.c
Fix profile update in tree_transform_and_unroll_loop
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / pr107490.c
CommitLineData
bdf00185
AH
1// { dg-do compile }
2// { dg-options "-Os -fno-trapping-math -w" }
3
4extern void abort (void);
5
6#define MIN2(a,b) (((a)<(b)) ? (a) : (b))
7#define MAX2(a,b) (((a)>(b)) ? (a) : (b))
8
9double p[2] = { 4.f, 5.f };
10
11int main()
12{
13 long j;
14 double R, n, x;
15 n = 1.e300f;
16 x = -1.e300f;
17 for( j=0; j < 2; j++ )
18 {
19 x = MAX2(x,p[j]);
20 n = MIN2(n,p[j]);
21 }
22 R = x-n;
23
24 if( R < 0.1 )
25 abort ();
26
27 return 0;
28}