Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vect/bb-slp-pr69907.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-additional-options "-O3" } */ /* { dg-require-effective-target vect_unpack } */ #include "tree-vect.h" #if VECTOR_BITS > 512 #define N (VECTOR_BITS * 10 / 16) #else #define N 320 #endif void foo(unsigned *p1, unsigned short *p2) { int n; for (n = 0; n < N; n++) p1[n] = p2[n * 2]; } /* Disable for SVE because for long or variable-length vectors we don't get an unrolled epilogue loop. Also disable for AArch64 Advanced SIMD, because there we can vectorize the epilogue using mixed vector sizes. */ /* { dg-final { scan-tree-dump "BB vectorization with gaps at the end of a load is not supported" "slp1" { target { ! aarch64*-*-* } } } } */