1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 int
5 f255 (int x)
6 {
7 if (x & 255)
8 return 1;
9 return x;
10 }
11
12 int
13 f65535 (int x)
14 {
15 if (x & 65535)
16 return 1;
17 return x;
18 }
19
20 /* { dg-final { scan-assembler "tst\t(x|w)\[0-9\]+,\[ \t\]*255" } } */
21 /* { dg-final { scan-assembler "tst\t(x|w)\[0-9\]+,\[ \t\]*65535" } } */