diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/tic6x/fpcmp.c')
-rw-r--r-- | gcc/testsuite/gcc.target/tic6x/fpcmp.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/tic6x/fpcmp.c b/gcc/testsuite/gcc.target/tic6x/fpcmp.c new file mode 100644 index 00000000000..25eaff4109d --- /dev/null +++ b/gcc/testsuite/gcc.target/tic6x/fpcmp.c @@ -0,0 +1,24 @@ +/* { dg-do compile } */ +/* { dg-require-effective-target ti_c67x } */ +/* { dg-options "-O2" } */ +/* { dg-final { scan-assembler-times "cmpeq.p" 4 } } */ + +double gedf (double x, double y) +{ + return x >= y; +} + +double ledf (double x, double y) +{ + return x <= y; +} + +float gesf (float x, float y) +{ + return x >= y; +} + +float lesf (float x, float y) +{ + return x <= y; +} |