* 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
+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.
--- /dev/null
+/* { 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" } } */
--- /dev/null
+/* { 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" } } */
+