blob: 1c8459cfec5b29da8dba937058a8658e27e59c02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/* { dg-do compile } */
/* { dg-skip-if "" { *-*-* } { "-mcpu=msp430" } { "" } } */
/* { dg-options "-Os" } */
/* { dg-final { scan-assembler-not "mspabi_slli" } } */
/* { dg-final { scan-assembler "RLAM.W\t#4" } } */
/* { dg-final { scan-assembler "RPT\t#5 \{ RLAX.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;
}
|