From: Catherine Moore Date: Tue, 11 Nov 2008 00:06:10 +0000 (-0500) Subject: no-smartmips-lwxs.c: New test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=23b49dbe8dfb1560c196edbe693e46fb0aa46698;p=gcc.git 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 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 393e9e9c688..dc4ae56ef20 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2008-11-10 Catherine Moore + + * gcc.target/mips/no-smartmips-lwxs.c: New test. + * gcc.target/mips/no-smartmips-ror-1.c: New test. + 2008-11-10 Kaz Kojima * 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 00000000000..6d1d7e8c0ec --- /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 00000000000..6af2efd3f6b --- /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" } } */ +