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

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