view gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr64909.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
line wrap: on
line source

/* { dg-do compile } */
/* { dg-require-effective-target vect_int } */
/* { dg-additional-options "-mtune=bdver1" } */

unsigned short a[32];
unsigned int b[32];
void t()
{
  int i;
  for (i=0;i<12;i++)
    b[i]=a[i];
}

/* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" } } */