PR middle-end/77357 - strlen of constant strings not folded
[official-gcc.git] / gcc / testsuite / gcc.c-torture / compile / 20030220-1.c
blob59a03e42c45645ba100de48fae1375b624c70097
1 /* PR optimization/9768 */
2 /* Originator: Randolph Chung <tausq@debian.org> */
4 inline int fixfloor (long x)
6 if (x >= 0)
7 return (x >> 16);
8 else
9 return ~((~x) >> 16);
12 inline int fixtoi (long x)
14 return fixfloor(x) + ((x & 0x8000) >> 15);
17 int foo(long x, long y)
19 return fixtoi(x*y);