]>
Commit | Line | Data |
---|---|---|
519e0faa PB |
1 | /* { dg-do compile } */\r |
2 | /* { dg-options "-O -fdump-tree-original" } */\r | |
3 | \r | |
4 | int f(int x)\r | |
5 | {\r | |
6 | return (x >> 2) & 128;\r | |
7 | }\r | |
8 | \r | |
9 | int g(int x)\r | |
10 | {\r | |
11 | return !!(x & 512) << 7;\r | |
12 | }\r | |
13 | \r | |
14 | int h(int x)\r | |
15 | {\r | |
16 | return ((x >> 9) & 1) << 7;\r | |
17 | }\r | |
18 | \r | |
19 | int i(int x)\r | |
20 | {\r | |
21 | return (x & 512) >> 9 << 7;\r | |
22 | }\r | |
23 | \r | |
24 | int j(int x)\r | |
25 | {\r | |
26 | return ((x >> 9) & 1) ? 128 : 0;\r | |
27 | }\r | |
28 | \r | |
29 | int 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 |