summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/sparc/ultrasp4.c
blob: f3958cbe781a9ffccc66c67a14c469b06d17b6b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Simplified from PR target/5309.  */

/* { dg-do compile } */
/* { dg-options "-O2 -mcpu=ultrasparc" } */

extern long bar (unsigned int);

long
foo (long x, unsigned int y)
{
  return *(((long *) (bar (y) - 1)) + 1 + (x >> 2) % 359);
}