Mercurial > hg > CbC > CbC_gcc
comparison gcc/testsuite/gcc.dg/vect/bb-slp-pr69907.c @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
comparison
equal
deleted
inserted
replaced
111:04ced10e8804 | 131:84e7813d76e9 |
---|---|
1 /* { dg-do compile } */ | 1 /* { dg-do compile } */ |
2 /* { dg-additional-options "-O3" } */ | 2 /* { dg-additional-options "-O3" } */ |
3 /* { dg-require-effective-target vect_unpack } */ | 3 /* { dg-require-effective-target vect_unpack } */ |
4 | 4 |
5 #include "tree-vect.h" | |
6 | |
7 #if VECTOR_BITS > 512 | |
8 #define N (VECTOR_BITS * 10 / 16) | |
9 #else | |
10 #define N 320 | |
11 #endif | |
12 | |
5 void foo(unsigned *p1, unsigned short *p2) | 13 void foo(unsigned *p1, unsigned short *p2) |
6 { | 14 { |
7 int n; | 15 int n; |
8 for (n = 0; n < 320; n++) | 16 for (n = 0; n < N; n++) |
9 p1[n] = p2[n * 2]; | 17 p1[n] = p2[n * 2]; |
10 } | 18 } |
11 | 19 |
12 /* { dg-final { scan-tree-dump "BB vectorization with gaps at the end of a load is not supported" "slp1" } } */ | 20 /* Disable for SVE because for long or variable-length vectors we don't |
21 get an unrolled epilogue loop. */ | |
22 /* { dg-final { scan-tree-dump "BB vectorization with gaps at the end of a load is not supported" "slp1" { target { ! aarch64_sve } } } } */ |