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

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