1 /* { dg-do compile } */
2 /* { dg-skip-if "" { *-*-* } { "-mcpu=msp430" } { "" } } */
3 /* { dg-options "-Os" } */
4 /* { dg-final { scan-assembler-not "mspabi_srli" } } */
5 /* { dg-final { scan-assembler "RRUM" } } */
6
7 /* Ensure that HImode shifts with source operand in memory are emulated with a
8 rotate instructions. */
9
10 unsigned int a;
11
12 void
13 foo (void)
14 {
15 a = a >> 4;
16 }