PR middle-end/27945
[official-gcc.git] / gcc / testsuite / gcc.dg / 20050111-1.c
blob7cf04e806d6a76290f4f2937645100369ecb5764
1 /* PR middle-end/19084, rtl-optimization/19348 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2" } */
4 /* { dg-options "-O2 -march=i686" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } */
6 unsigned int
7 foo (unsigned long long x)
9 unsigned int u;
11 if (x == 0)
12 return 0;
13 u = (unsigned int) (x >> 32);
14 return u;
17 unsigned long long
18 bar (unsigned short x)
20 return (unsigned long long) x << 32;