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

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