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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [7d-01.c] - Rev 701

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

/* { dg-do compile } */
#include <altivec.h>
extern vector unsigned char a[];
 
vector unsigned char
f(vector unsigned char *p, int i, int b)
{
  if (b)
    return p[i];
  return vec_ld(i*16,p);
}
 
vector unsigned char
g(int i, int b)
{
  if (b)
    return a[i];
  return vec_ld(i*16,a);
}
 

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.