OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [costmodel/] [ppc/] [costmodel-pr37194.c] - Blame information for rev 801

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-require-effective-target vect_float } */
2
/* { dg-do compile } */
3
 
4
#include <stdlib.h>
5
#include "../../tree-vect.h"
6
 
7
__attribute__ ((noinline)) void
8
ggSpectrum_Set8(float * data, float d)
9
{
10
   int i;
11
 
12
   for (i = 0; i < 8; i++)
13
      data[i] = d;
14
}
15
 
16
__attribute__ ((noinline)) void
17
ggSpectrum_Set20(float * data, float d)
18
{
19
   int i;
20
 
21
   for (i = 0; i < 20; i++)
22
      data[i] = d;
23
}
24
 
25
/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" } } */
26
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
27
/* { dg-final { cleanup-tree-dump "vect" } } */
28
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.