| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options " -O2 -msse4.1 -mfpmath=sse" } */ |
| 3 |
/* { dg-final { scan-assembler-times {(?n)mins[sd]} 2 } } */ |
| 4 |
/* { dg-final { scan-assembler-times {(?n)maxs[sd]} 2 } } */ |
| 5 |
|
| 6 |
void __cond_swap_df(double* __x, double* __y) { |
| 7 |
_Bool __r = (*__x < *__y); |
| 8 |
double __tmp = __r ? *__x : *__y; |
| 9 |
*__y = __r ? *__y : *__x; |
| 10 |
*__x = __tmp; |
| 11 |
} |
| 12 |
|
| 13 |
void __cond_swap_sf(float* __x, float* __y) { |
| 14 |
_Bool __r = (*__x < *__y); |
| 15 |
float __tmp = __r ? *__x : *__y; |
| 16 |
*__y = __r ? *__y : *__x; |
| 17 |
*__x = __tmp; |
| 18 |
} |