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-02.c] - Blame information for rev 816

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
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.