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

double x;
void
q1()
{
  x=x>5?5:x;
}