aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr123027.c
blob: b7effac99f7e02afbd785f77aec35c75333c6360 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -msse -mfpmath=sse -ffinite-math-only" } */

float foo (float a, float b)
{
  return a < b ? a : b;
}

float bar (float a, float b)
{
  return a > b ? a : b;
}

/* { dg-final { scan-assembler-times "minss" 1 } } */
/* { dg-final { scan-assembler-times "maxss" 1 } } */