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/] [vmx/] [7d-02.c] - Blame information for rev 298

Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

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