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

#define S 13

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