aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/tic6x/fpcmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.target/tic6x/fpcmp.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.target/tic6x/fpcmp.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.target/tic6x/fpcmp.c b/gcc-4.9/gcc/testsuite/gcc.target/tic6x/fpcmp.c
new file mode 100644
index 000000000..25eaff410
--- /dev/null
+++ b/gcc-4.9/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;
+}