2018-04-09 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / testsuite / gcc.dg / pr14796-1.c
blob69328a91bb755a5446ca638ac1f5791e96080fc9
1 /* { dg-do compile } */
2 /* { dg-options "-fdump-tree-gimple" } */
4 int f (int a) {
5 return (a << 3) << 6;
8 int g (int b) {
9 return (b >> 5) << 5;
12 unsigned long long h (unsigned long long c) {
13 return (c << 60) >> 60;
16 int l (int d) {
17 return (d << 6) >> 6;
20 /* { dg-final { scan-tree-dump "a << 9" "gimple" } } */
21 /* { dg-final { scan-tree-dump "b & -32" "gimple" } } */
22 /* { dg-final { scan-tree-dump "c & 15" "gimple" } } */
23 /* { dg-final { scan-tree-dump "d << 6" "gimple" } } */