]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/gcc.dg/fold-and-rshift-1.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / fold-and-rshift-1.c
CommitLineData
519e0faa
PB
1/* { dg-do compile } */\r
2/* { dg-options "-O -fdump-tree-original" } */\r
3\r
4int f(int x)\r
5{\r
6 return (x >> 2) & 128;\r
7}\r
8\r
9int g(int x)\r
10{\r
11 return !!(x & 512) << 7;\r
12}\r
13\r
14int h(int x)\r
15{\r
16 return ((x >> 9) & 1) << 7;\r
17}\r
18\r
19int i(int x)\r
20{\r
21 return (x & 512) >> 9 << 7;\r
22}\r
23\r
24int j(int x)\r
25{\r
26 return ((x >> 9) & 1) ? 128 : 0;\r
27}\r
28\r
29int k(int x)\r
30{\r
31 return (x & 512) ? 128 : 0;\r
32}\r
33\r
34/* { dg-final { scan-tree-dump-not " \\? " "original" } } */\r
35/* { dg-final { scan-assembler-not "sall" { target i?86-*-* x86_64-*-* } } }" */\r