blob: c4a00ad6e4830bb6e4cb95839c47bd7afd8cc213 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
/* { dg-do compile } */
/* { dg-options "-O2 -mavx -mfpmath=sse" } */
/* { dg-final { scan-assembler "vmaxsd" } } */
/* { dg-final { scan-assembler "vminsd" } } */
double x;
void
q()
{
x=x<5?5:x;
}
double x;
void
q1()
{
x=x>5?5:x;
}
|