gcc/testsuite/gcc.target/tic6x/fpcmp.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-require-effective-target ti_c67x } */ |
| 3 | /* { dg-options "-O2" } */ |
| 4 | /* { dg-final { scan-assembler-times "cmpeq.p" 4 } } */ |
| 5 | |
| 6 | double gedf (double x, double y) |
| 7 | { |
| 8 | return x >= y; |
| 9 | } |
| 10 | |
| 11 | double ledf (double x, double y) |
| 12 | { |
| 13 | return x <= y; |
| 14 | } |
| 15 | |
| 16 | float gesf (float x, float y) |
| 17 | { |
| 18 | return x >= y; |
| 19 | } |
| 20 | |
| 21 | float lesf (float x, float y) |
| 22 | { |
| 23 | return x <= y; |
| 24 | } |