1 /* { dg-do compile } */
2 /* { dg-options "-O1" } */
3 /* { dg-final { scan-assembler-times "bclr" 6 } } */
4 /* { dg-final { scan-assembler-times "bset" 7 } } */
5 /* { dg-final { scan-assembler-times "bnot" 7 } } */
8 test_0 (char* x
, unsigned int y
)
10 /* Expect 4x bclr here. */
18 test_1 (unsigned int x
, unsigned int y
)
20 /* Expect 1x bclr here. */
25 test_2 (unsigned int x
)
27 /* Expect 1x bclr here. */
32 test_3 (char* x
, unsigned int y
, unsigned int z
)
34 /* Expect 5x bset here. */
43 test_4 (unsigned int x
, unsigned int y
)
45 /* Expect 1x bset here. */
50 test_5 (unsigned int x
)
52 /* Expect 1x bset here. */
57 test_6 (char* x
, unsigned int y
, unsigned int z
)
59 /* Expect 5x bnot here. */
68 test_7 (unsigned int x
, unsigned int y
)
70 /* Expect 1x bnot here. */
75 test_8 (unsigned int x
)
77 /* Expect 1x bnot here. */