Debian Codegraph @

gcc/testsuite/gcc.target/msp430/emulate-slli.c

raw
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { *-*-* } { "-mcpu=msp430" } { "" } } */
3 /* { dg-options "-Os" } */
4 /* { dg-final { scan-assembler-not "mspabi_slli" } } */
5 /* { dg-final { scan-assembler "RLAM.W\t#4" } } */
6 /* { dg-final { scan-assembler "RPT\t#5 \{ RLAX.W" } } */
7
8 /* Ensure that HImode shifts with source operand in memory are emulated with a
9 rotate instructions. */
10
11 int a;
12 int b;
13
14 void
15 foo (void)
16 {
17 a = a << 4;
18 b = b << 5;
19 }