summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/ssefp-1.c
blob: 621e362f490ca452bc2aea24c3459fc9229116c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-options "-O2 -msse2 -march=k8 -mfpmath=sse" } */
/* { dg-final { scan-assembler "maxsd" } } */
/* { dg-final { scan-assembler "minsd" } } */
double x;
t()
{
  x=x>5?x:5;
}

double x;
q()
{
  x=x<5?x:5;
}