summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/i386-ssefp-2.c
blob: 687902416781c3f4e9f91c257bcf2da73d221be4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { 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;
q()
{
  x=x<5?5:x;
}

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