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

Subversion Repositories scarts

[/] [scarts/] [trunk/] [toolchain/] [scarts-gcc/] [gcc-4.1.1/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [3c-02.c] - Blame information for rev 12

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 12 jlechner
#include "harness.h"
2
 
3
vector unsigned char u8;
4
 
5
static void f(void *p)
6
{
7
  u8 = vec_ld(1, (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((void *)(-1+(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.