Commit 4bfb347c by Robin Dapp Committed by Andreas Krebbel

Vector peeling cost model 5/6

gcc/testsuite/ChangeLog:

2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>

	* gcc.target/s390/vector/vec-nopeel-2.c: New test.

From-SVN: r248679
parent 64812d33
2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
* gcc.target/s390/vector/vec-nopeel-2.c: New test.
2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com> 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
PR target/78838 PR target/78838
......
/* { dg-do compile } */
/* { dg-require-effective-target s390_vx } */
/* { dg-options "-O2 -mzarch -march=z13 -ftree-vectorize -fdump-tree-vect-details -fvect-cost-model=dynamic" } */
void foo(int *restrict a, int *restrict b, unsigned int n)
{
for (unsigned int i = 0; i < n; i++)
b[i] = a[i] * 2 + 1;
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
/* { dg-final { scan-tree-dump-times "Vectorizing an unaligned access" 2 "vect" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment