summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/smartmips-ror-2.c
blob: 73561c8b3c172a7c936a7ef190e3dc98fd7e93f7 (plain)
1
2
3
4
5
6
7
8
/* { dg-do compile } */
/* { dg-mips-options "-O -msmartmips" } */

NOMIPS16 int rotate_right (unsigned a, unsigned s)
{
  return (a >> s) | (a << (32 - s));
}
/* { dg-final { scan-assembler "\tror\t" } } */