bd52d17906
too large to list, but see: http://gcc.gnu.org/gcc-3.4/changes.html http://gcc.gnu.org/gcc-4.0/changes.html http://gcc.gnu.org/gcc-4.1/changes.html for the details.
23 lines
516 B
C
23 lines
516 B
C
/* { dg-do compile } */
|
|
/* { dg-options "-fdump-tree-gimple" } */
|
|
|
|
int f (int a) {
|
|
return (a << 31) << 6;
|
|
}
|
|
|
|
unsigned int g (unsigned int a) {
|
|
return (a >> 7) >> 25;
|
|
}
|
|
|
|
int h (int b) {
|
|
return (b >> 30) >> 30;
|
|
}
|
|
|
|
long long j (long long c) {
|
|
return (c >> 35) << 35;
|
|
}
|
|
/* { dg-final { scan-tree-dump-times "= 0" 2 "gimple" } } */
|
|
/* { dg-final { scan-tree-dump "b >> 31" "gimple" } } */
|
|
/* { dg-final { scan-tree-dump "c & -(34359738368|800000000)" "gimple" } } */
|
|
/* { dg-final { cleanup-tree-dump "gimple" } } */
|