blob: f3f6dae94eaa797cc960691b01b88896ca49398b [file] [log] [blame]
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-mcpu=msp430" } { "" } } */
/* { dg-options "-Os" } */
/* { dg-final { scan-assembler-not "mspabi_srai" } } */
/* { dg-final { scan-assembler "RRAM.W\t#4" } } */
/* { dg-final { scan-assembler "RPT\t#5 \{ RRAX.W" } } */
/* Ensure that HImode shifts with source operand in memory are emulated with a
rotate instructions. */
int a;
int b;
void
foo (void)
{
a = a >> 4;
b = b >> 5;
}