octeon3-pipe-1.c: New test.
authorNaveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
Wed, 14 Jan 2015 06:08:24 +0000 (06:08 +0000)
committerNaveen H.S <naveenh@gcc.gnu.org>
Wed, 14 Jan 2015 06:08:24 +0000 (06:08 +0000)
* gcc.target/mips/octeon3-pipe-1.c: New test.

From-SVN: r219575

gcc/testsuite/ChangeLog
gcc/testsuite/ChangeLog-2014
gcc/testsuite/gcc.target/mips/octeon3-pipe-1.c [new file with mode: 0644]

index 334e3e5af6567ee5b9612624a50c04930a0816b4..bc0cd1fa8abce82b934a2e776d6ddd541b56d3f5 100644 (file)
@@ -1,3 +1,7 @@
+2015-01-14  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
+
+       * gcc.target/mips/octeon3-pipe-1.c: New test.
+
 2015-01-13  David Malcolm  <dmalcolm@redhat.com>
 
        * jit.dg/harness.h (set_up_logging): Move string concatenation
index 3e8fdc2ea32405b2b403962b8518d7d28b1ee68a..54a4c594d37dadce59585489a2097221f095e2d0 100644 (file)
 
        * gcc.target/arm/ifcvt-size-check.c: New test.
 
-2014-11-03  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
-
-       * gcc.target/mips/octeon3-pipe-1.c: New test.
-
 2014-11-02  Uros Bizjak  <ubizjak@gmail.com>
 
        * g++.dg/cpp0x/gen-attrs-42.C: Add x86_64-*-* target.
diff --git a/gcc/testsuite/gcc.target/mips/octeon3-pipe-1.c b/gcc/testsuite/gcc.target/mips/octeon3-pipe-1.c
new file mode 100644 (file)
index 0000000..3b83266
--- /dev/null
@@ -0,0 +1,12 @@
+/* Check that we use the octeon3 pipeline description.  */
+/* { dg-do compile } */
+/* { dg-options "-fschedule-insns2 -fdump-rtl-sched2 -march=octeon3" } */
+/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
+
+NOMIPS16 int f (int a, int b)
+{
+  return a / b;
+}
+
+/* { dg-final { scan-rtl-dump "octeon_mult\\*17" "sched2" } }  */
+/* { dg-final { cleanup-rtl-dump "sched2" } }  */