Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.dg/vect/costmodel/ppc/costmodel-pr37194.c @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children | 84e7813d76e9 |
line wrap: on
line source
/* { dg-do compile } */ /* { dg-require-effective-target vect_float } */ #include <stdlib.h> #include "../../tree-vect.h" __attribute__ ((noinline)) void ggSpectrum_Set8(float * data, float d) { int i; for (i = 0; i < 8; i++) data[i] = d; } __attribute__ ((noinline)) void ggSpectrum_Set20(float * data, float d) { int i; for (i = 0; i < 20; i++) data[i] = d; } /* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" } } */ /* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */