1 /* { dg-do compile } */
2 /* { dg-options "-mcmse" } */
3 
4 #include "../../bitfield-and-union.x"
5 
6 /* { dg-final { scan-assembler "movw\tip, #7939" } } */
7 /* { dg-final { scan-assembler "movt\tip, 15" } } */
8 /* { dg-final { scan-assembler "and\tr0, r0, ip" } } */
9 /* { dg-final { scan-assembler "movw\tip, #65535" } } */
10 /* { dg-final { scan-assembler "movt\tip, 2047" } } */
11 /* { dg-final { scan-assembler "and\tr1, r1, ip" } } */
12 /* { dg-final { scan-assembler "mov\tip, #1" } } */
13 /* { dg-final { scan-assembler "movt\tip, 65535" } } */
14 /* { dg-final { scan-assembler "and\tr2, r2, ip" } } */
15 /* { dg-final { scan-assembler "movw\tip, #65535" } } */
16 /* { dg-final { scan-assembler "movt\tip, 31" } } */
17 /* { dg-final { scan-assembler "and\tr3, r3, ip" } } */
18 /* { dg-final { scan-assembler "lsrs\tr4, r4, #1" } } */
19 /* { dg-final { scan-assembler "lsls\tr4, r4, #1" } } */
20 /* { dg-final { scan-assembler "bl\t__gnu_cmse_nonsecure_call" } } */
21