aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr65014.c
blob: c76e95729b09caa9772ddd639bea262ec9d15386 (plain)
1
2
3
4
5
6
7
8
9
10
/* PR tree-optimization/65014 */
/* { dg-do compile { target int32plus } } */

extern int x;

unsigned
foo (unsigned int y)
{
  return (y << ((__INTPTR_TYPE__) &x)) | (y >> (32 - ((__INTPTR_TYPE__) &x)));
}