aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/msp430/emulate-srli.c
blob: 35207b7c458a6fbc44c11bb113bf30a414f97291 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-mcpu=msp430" } { "" } } */
/* { dg-options "-Os" } */
/* { dg-final { scan-assembler-not "mspabi_srli" } } */
/* { dg-final { scan-assembler "RRUM" } } */

/* Ensure that HImode shifts with source operand in memory are emulated with a
   rotate instructions.  */

unsigned int a;

void
foo (void)
{
  a = a >> 4;
}