]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/gcc.dg/pr99882.c
Update copyright years.
[thirdparty/gcc.git] / gcc / testsuite / gcc.dg / pr99882.c
1 /* PR tree-optimization/99882 */
2 /* { dg-do compile } */
3 /* { dg-options "-O3" } */
4
5 void
6 foo (char *p, void *q)
7 {
8 __INTPTR_TYPE__ i = (__INTPTR_TYPE__) q;
9 p[2] = i;
10 i >>= 8;
11 p[3] = i;
12 i >>= 8;
13 p[4] = i;
14 i >>= 8;
15 p[5] = i;
16 i >>= 8;
17 p[6] = i;
18 i >>= 8;
19 p[7] = i;
20 i >>= 8;
21 p[8] = i;
22 i >>= 8;
23 p[9] = i;
24 }
25
26 void
27 bar (char *p, void *q)
28 {
29 __INTPTR_TYPE__ i = (__INTPTR_TYPE__) q;
30 p[2] = i;
31 i >>= 8;
32 p[3] = i;
33 i >>= 8;
34 p[4] = i;
35 i >>= 8;
36 p[5] = i;
37 }