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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr30843.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-do compile } */
2
/* { dg-require-effective-target vect_long } */
3
 
4
#include <stdarg.h>
5
#include "tree-vect.h"
6
 
7
#define N 16
8
 
9
void dacP98FillRGBMap (unsigned char *pBuffer)
10
{
11
    unsigned long dw, dw1;
12
    unsigned long *pdw = (unsigned long *)(pBuffer);
13
 
14
    for( dw = 256, dw1 = 0; dw; dw--, dw1 += 0x01010101)
15
    {
16
       *pdw++ = dw1;
17
       *pdw++ = dw1;
18
       *pdw++ = dw1;
19
       *pdw++ = dw1;
20
    }
21
}
22
 
23
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { target { vect_interleave || vect_strided4 } } } } */
24
/* { dg-final { cleanup-tree-dump "vect" } } */
25
 

powered by: WebSVN 2.1.0

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