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

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