Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / aarch64 / tst_5.c
blob0de40a6c47a7d63c1b7a81aeba438a096c0041b8
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
4 int
5 f255 (int x)
7 if (x & 255)
8 return 1;
9 return x;
12 int
13 f65535 (int x)
15 if (x & 65535)
16 return 1;
17 return x;
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" } } */