diff options
Diffstat (limited to 'gcc/testsuite/gcc.target/mips/smartmips-ror-3.c')
-rw-r--r-- | gcc/testsuite/gcc.target/mips/smartmips-ror-3.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.target/mips/smartmips-ror-3.c b/gcc/testsuite/gcc.target/mips/smartmips-ror-3.c new file mode 100644 index 000000000..360f3c463 --- /dev/null +++ b/gcc/testsuite/gcc.target/mips/smartmips-ror-3.c @@ -0,0 +1,10 @@ +/* { dg-do compile } */ +/* { dg-options "-O -msmartmips" } */ + +#define S 13 + +NOMIPS16 int rotate_left_constant (unsigned a) +{ + return (a << S) | (a >> (32 - S)); +} +/* { dg-final { scan-assembler "\tror\t" } } */ |