2 /* { dg-do compile } */
3 /* { dg-options "-O2 -mtune=core2" } */
7 __extension__
typedef __INTPTR_TYPE__
intptr_t;
10 test1 (intptr_t x
, intptr_t n
)
12 n
&= sizeof (intptr_t) * __CHAR_BIT__
- 1;
14 if (x
& ((intptr_t) 1 << n
))
21 test2 (intptr_t x
, intptr_t n
)
23 if (x
& ((intptr_t) 1 << ((int) n
& (sizeof (intptr_t) * __CHAR_BIT__
- 1))))
30 test3 (intptr_t x
, intptr_t n
)
32 if (x
& ((intptr_t) 1 << ((int) n
& ((int) sizeof (intptr_t) * __CHAR_BIT__
- 1))))
38 /* { dg-final { scan-assembler-not "and\[lq\]\[ \t\]" } } */