i386-ssefp-1.c   [plain text]


/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
/* { 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;
}