Merge reload-branch up to revision 101000
[official-gcc.git] / gcc / testsuite / gcc.dg / ultrasp10.c
blobffa3229fa4f26f4c00115095c37e51d4807870e3
1 /* PR target/11965 */
2 /* Originator: <jk@tools.de> */
3 /* { dg-do run { target sparc*-*-* } } */
4 /* { dg-options "-O -mcpu=ultrasparc" } */
6 /* This used to fail on 32-bit Ultrasparc because GCC emitted
7 an invalid shift instruction. */
10 static inline unsigned int shift(int n, unsigned int value)
12 return value << n;
15 unsigned int val = 1;
17 int main(void)
19 int i;
21 for (i = 0; i < 4; i++)
22 val = shift(32, val);
24 return 0;