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

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