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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [7d-01.c] - Blame information for rev 856

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

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile } */
2
#include <altivec.h>
3
extern vector unsigned char a[];
4
 
5
vector unsigned char
6
f(vector unsigned char *p, int i, int b)
7
{
8
  if (b)
9
    return p[i];
10
  return vec_ld(i*16,p);
11
}
12
 
13
vector unsigned char
14
g(int i, int b)
15
{
16
  if (b)
17
    return a[i];
18
  return vec_ld(i*16,a);
19
}

powered by: WebSVN 2.1.0

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