This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / gcc.dg / 20050111-1.c
blob0cc4b7e195f8c4f291f2032ff5e1b3b491bdced3
1 /* PR middle-end/19084, rtl-optimization/19348 */
2 /* { dg-do compile } */
3 /* The following ensures that this test is compiled with -O2, unless
4 on i?86 or x86_64 with -m32 option. */
5 /* { dg-options "-O2" } */
6 /* { dg-options "-O2 -march=i686" { target i?86-*-* x86_64-*-* } } */
7 /* { dg-options "-O2" { target lp64 } } */
9 unsigned int
10 foo (unsigned long long x)
12 unsigned int u;
14 if (x == 0)
15 return 0;
16 u = (unsigned int) (x >> 32);
17 return u;
20 unsigned long long
21 bar (unsigned short x)
23 return (unsigned long long) x << 32;