Debian Codegraph @

gcc/testsuite/gcc.dg/vect/pr119155.c

raw
1 #include <stdlib.h>
2 #include "tree-vect.h"
3
4 struct s { int x; } __attribute__((packed));
5
6 void __attribute__((noipa))
7 f (char *xc, char *yc, int z)
8 {
9 for (int i = 0; i < 100; ++i)
10 {
11 struct s *x = (struct s *) xc;
12 struct s *y = (struct s *) yc;
13 x->x += y->x;
14 xc += z;
15 yc += z;
16 }
17 }
18
19 int main ()
20 {
21 check_vect ();
22 char *x = malloc (100 * sizeof (struct s) + 1);
23 char *y = malloc (100 * sizeof (struct s) + 1);
24 f (x + 1, y + 1, sizeof (struct s));
25 return 0;
26 }