diff options
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c | 8 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/mips/no-smartmips-ror-1.c | 9 |
3 files changed, 22 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 393e9e9..dc4ae56 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 index 0000000..6d1d7e8 --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c @@ -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 index 0000000..6af2efd --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/no-smartmips-ror-1.c @@ -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" } } */ + |