Deduplicate explicitly-sized types
[official-gcc.git] / gcc / testsuite / gcc.target / arc / movh_cl-1.c
blob7e838bb2a69a9db04f850ebffa7e514fba6ad9f4
1 /* { dg-do compile } */
2 /* { dg-skip-if "" { ! { clmcpu } } } */
3 /* { dg-options "-mcpu=nps400 -O2 -mbitops" } */
5 struct thing
7 union
9 int raw;
10 struct
12 unsigned a : 1;
13 unsigned b : 1;
14 unsigned c : 28;
15 unsigned d : 1;
16 unsigned e : 1;
21 extern void func (int);
23 void
24 blah ()
26 struct thing xx;
27 xx.a = xx.b = 1;
28 func (xx.raw);
31 void
32 woof ()
34 struct thing xx;
35 xx.d = xx.e = 1;
36 func (xx.raw);
39 /* { dg-final { scan-assembler "movh\.cl\\s+r\[0-9\]+,0xc0000000>>16" } } */