2005-06-12 James A. Morrison <phython@gcc.gnu.org>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr14796-2.c
blobde4ec27da910bffb3aebbcd047e5ef4815f5473f
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-gimple" } */
4 int f (int a) {
5 return (a << 31) << 6;
8 unsigned int g (unsigned int a) {
9 return (a >> 7) >> 25;
12 int h (int b) {
13 return (b >> 30) >> 30;
16 long long j (long long c) {
17 return (c >> 35) << 35;
19 /* { dg-final { scan-tree-dump-times "= 0" 2 "gimple" } } */
20 /* { dg-final { scan-tree-dump "b >> 31" "gimple" } } */
21 /* { dg-final { scan-tree-dump "c & -34359738368" "gimple" } } */
22 /* { dg-final { cleanup-tree-dump "gimple" } } */