rt_gccstream/gcc/testsuite/gcc.target/mips/smartmips-ror-4.c

11 lines
214 B
C

/* { dg-do compile } */
/* { dg-options "-O -msmartmips" } */
#define S 13
NOMIPS16 int rotate_right_constant (unsigned a)
{
return (a >> S) | (a << (32 - S));
}
/* { dg-final { scan-assembler "\tror\t" } } */