diff options
author | Catherine Moore <clm@codesourcery.com> | 2008-11-10 19:06:10 -0500 |
---|---|---|
committer | Catherine Moore <clm@gcc.gnu.org> | 2008-11-10 19:06:10 -0500 |
commit | 23b49dbe8dfb1560c196edbe693e46fb0aa46698 (patch) | |
tree | a493da49bdc5b6d9400fbd7b99521e8dae6e3b65 | |
parent | b297d612f7667a62f9d60ff0bd4103c587f13ba5 (diff) | |
download | gcc-23b49dbe8dfb1560c196edbe693e46fb0aa46698.zip gcc-23b49dbe8dfb1560c196edbe693e46fb0aa46698.tar.gz gcc-23b49dbe8dfb1560c196edbe693e46fb0aa46698.tar.bz2 |
no-smartmips-lwxs.c: New test.
* gcc.target/mips/no-smartmips-lwxs.c: New test.
* gcc.target/mips/no-smartmips-ror-1.c: New test.
From-SVN: r141759
-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" } } */ + |