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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vect/] [O3-vect-pr32243.c] - Rev 801

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

/* { dg-do compile } */
 
typedef struct __GLcontextRec GLcontext;
 
struct gl_renderbuffer
{
  struct gl_renderbuffer *Wrapped;
  void (*PutValues) (GLcontext * ctx, struct gl_renderbuffer * rb,
		     int count, const int x[], const int y[],
		     const void *values, const char *mask);
};
 
void
put_mono_values_s8 (GLcontext * ctx, struct gl_renderbuffer *s8rb,
		    int count, const int x[], const int y[],
		    const void *value, const char *mask)
{
  struct gl_renderbuffer *dsrb = s8rb->Wrapped;
  int temp[4096], i;
  const char val = *((char *) value);
  for (i = 0; i < count; i++)
    if (!mask || mask[i])
      temp[i] = (temp[i] & 0xffffff) | val;
  dsrb->PutValues (ctx, dsrb, count, x, y, temp, mask);
}
 
/* { dg-final { cleanup-tree-dump "vect" } } */
 

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

powered by: WebSVN 2.1.0

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