OSDN Git Service

* gcc.target/mips/no-smartmips-lwxs.c: New test.
authorclm <clm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Nov 2008 00:06:10 +0000 (00:06 +0000)
committerclm <clm@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Nov 2008 00:06:10 +0000 (00:06 +0000)
* gcc.target/mips/no-smartmips-ror-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141759 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c [new file with mode: 0644]
gcc/testsuite/gcc.target/mips/no-smartmips-ror-1.c [new file with mode: 0644]

index 393e9e9..dc4ae56 100644 (file)
@@ -1,3 +1,8 @@
+2008-11-10  Catherine Moore  <clm@codesourcery.com>
+
+       * gcc.target/mips/no-smartmips-lwxs.c: New test.
+       * gcc.target/mips/no-smartmips-ror-1.c: New test.
+
 2008-11-10  Kaz Kojima  <kkojima@gcc.gnu.org>
 
        * gcc.target/sh/pr37514.c: New test.
diff --git a/gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c b/gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c
new file mode 100644 (file)
index 0000000..6d1d7e8
--- /dev/null
@@ -0,0 +1,8 @@
+/* { dg-do compile } */
+/* { dg-mips-options "-O -mno-smartmips" } */
+
+NOMIPS16 int scaled_indexed_word_load (int a[], int b)
+{
+  return a[b];
+}
+/* { dg-final { scan-assembler-not "\tlwxs\t" } } */
diff --git a/gcc/testsuite/gcc.target/mips/no-smartmips-ror-1.c b/gcc/testsuite/gcc.target/mips/no-smartmips-ror-1.c
new file mode 100644 (file)
index 0000000..6af2efd
--- /dev/null
@@ -0,0 +1,9 @@
+/* { dg-do compile } */
+/* { dg-mips-options "-O -mno-smartmips -march=mips32r2" } */
+
+NOMIPS16 int rotate_left (unsigned a, unsigned s)
+{
+  return (a << s) | (a >> (32 - s));
+}
+/* { dg-final { scan-assembler-not "\tror\t" } } */
+