summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/thumb-andsi.c
blob: 992d437c52489eea5b1adbc50ebe716d8d69196e (plain)
1
2
3
4
5
6
7
8
9
10
11
/* { dg-do compile } */
/* { dg-options "-mthumb -Os" }  */
/* { dg-require-effective-target arm_thumb1_ok } */

unsigned get_least_bits(unsigned value)
{
  return value << 9 >> 9;
}

/* { dg-final { scan-assembler "lsl" } } */
/* { dg-final { scan-assembler "lsr" } } */