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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [pr30843.c] - Blame information for rev 298

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 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 } } } } */
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.