libstdc++: Add missing 'inline' to always_inline function
[official-gcc.git] / gcc / testsuite / gcc.dg / tree-ssa / gen-vect-26.c
blobfdcec67bde61c19ebcc1c9b5482a0d83186ddecd
1 /* { dg-do run { target vect_cmdline_needed } } */
2 /* { dg-options "-O2 -fno-tree-loop-distribute-patterns -ftree-vectorize -fdump-tree-vect-details -fvect-cost-model=dynamic" } */
3 /* { dg-additional-options "-mno-sse" { target { i?86-*-* x86_64-*-* } } } */
5 #include <stdlib.h>
7 #define N 128
9 /* unaligned store. */
11 int main ()
13 int i;
14 char ia[N+1];
16 for (i = 1; i <= N; i++)
18 ia[i] = 5;
21 /* check results: */
22 #pragma GCC novector
23 for (i = 1; i <= N; i++)
25 if (ia[i] != 5)
26 abort ();
29 return 0;
33 /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { ! { avr-*-* pru-*-* } } } } } */
34 /* IBM Z does not require special alignment for vectorization. */
35 /* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 0 "vect" { target { ! { avr-*-* pru-*-* s390*-*-* } } } } } */
36 /* { dg-final { scan-tree-dump-times "Alignment of access forced using peeling" 1 "vect" { target { ! { avr-*-* pru-*-* s390*-*-* } } } } } */