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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [3c-03.c] - Blame information for rev 701

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

Line No. Rev Author Line
1 689 jeremybenn
#include "harness.h"
2
 
3
vector unsigned char u8;
4
 
5
static void f(int i, void *p)
6
{
7
  u8 = vec_ld(i, (unsigned char *)p);
8
}
9
 
10
static void test()
11
{
12
  static vector unsigned int value = {1,-2,3,-4};
13
  static vector unsigned int buffer[2];
14
  buffer[1] = value;
15
  f(37,(void *)(-37+(char*)(buffer+1)));
16
  check(vec_all_eq((vector unsigned int) u8, value), "u8");
17
}

powered by: WebSVN 2.1.0

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