Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/gcc.dg/vect/pr81136.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children |
rev | line source |
---|---|
111 | 1 /* { dg-do compile } */ |
2 | |
131 | 3 #include "tree-vect.h" |
4 | |
5 #if VECTOR_BITS > 256 | |
6 #define ALIGNMENT (VECTOR_BITS / 8) | |
7 #else | |
8 #define ALIGNMENT 32 | |
9 #endif | |
10 | |
11 struct __attribute__((aligned (ALIGNMENT))) | |
111 | 12 { |
13 char misaligner; | |
14 int foo[100]; | |
15 int bar[100]; | |
16 } *a; | |
17 | |
18 void | |
19 fn1 (int n) | |
20 { | |
21 int *b = a->foo; | |
22 for (int i = 0; i < n; i++) | |
23 a->bar[i] = b[i]; | |
24 } | |
25 | |
26 /* { dg-final { scan-tree-dump-not "Unknown misalignment" "vect" } } */ |