1 /* { dg-do compile } */
2 /* { dg-skip-if "" { ! { clmcpu } } } */
3 /* { dg-options "-mcpu=nps400 -O2 -mbitops" } */
4
5 struct { unsigned a: 5, b: 8, c: 19; } foo;
6 struct { unsigned a: 3, b: 8, c: 21; } bar;
7
8 void
f(void)9 f (void)
10 {
11 bar.b = foo.b;
12 }
13 /* { dg-final { scan-assembler "movb\[ \t\]+r\[0-5\]+, *r\[0-5\]+, *r\[0-5\]+, *5, *3, *8" { target arceb-*-* } } } */
14 /* { dg-final { scan-assembler "movb\[ \t\]+r\[0-5\]+, *r\[0-5\]+, *r\[0-5\]+, *3, *5, *8" { target arc-*-* } } } */
15