| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-mhard-float -march=mips32r6" } */ |
| 3 |
|
| 4 |
NOMIPS16 float |
| 5 |
test01 (float a, float b) |
| 6 |
{ |
| 7 |
return __builtin_mipsr6_min_a_s (a, b); |
| 8 |
} |
| 9 |
|
| 10 |
NOMIPS16 double |
| 11 |
test02 (double a, double b) |
| 12 |
{ |
| 13 |
return __builtin_mipsr6_min_a_d (a, b); |
| 14 |
} |
| 15 |
|
| 16 |
NOMIPS16 float |
| 17 |
test03 (float a, float b) |
| 18 |
{ |
| 19 |
return __builtin_mipsr6_max_a_s (a, b); |
| 20 |
} |
| 21 |
|
| 22 |
NOMIPS16 double |
| 23 |
test04 (double a, double b) |
| 24 |
{ |
| 25 |
return __builtin_mipsr6_max_a_d (a, b); |
| 26 |
} |
| 27 |
|
| 28 |
/* { dg-final { scan-assembler "mina\\.s" } } */ |
| 29 |
/* { dg-final { scan-assembler "mina\\.d" } } */ |
| 30 |
/* { dg-final { scan-assembler "maxa\\.s" } } */ |
| 31 |
/* { dg-final { scan-assembler "maxa\\.d" } } */ |