From 23b49dbe8dfb1560c196edbe693e46fb0aa46698 Mon Sep 17 00:00:00 2001 From: Catherine Moore Date: Mon, 10 Nov 2008 19:06:10 -0500 Subject: [PATCH] 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 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c | 8 ++++++++ gcc/testsuite/gcc.target/mips/no-smartmips-ror-1.c | 9 +++++++++ 3 files changed, 22 insertions(+) create mode 100644 gcc/testsuite/gcc.target/mips/no-smartmips-lwxs.c create mode 100644 gcc/testsuite/gcc.target/mips/no-smartmips-ror-1.c 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" } } */ + -- 2.30.2