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/] [3a-01a.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
/* Simple use of a non-overloaded specific vector intrinsic.  */
4
 
5
vector unsigned int
6
f(vector unsigned int a, vector unsigned int b)
7
{
8
  return vec_vaddcuw(a,b);
9
}
10
 
11
void test()
12
{
13
  check(vec_all_eq(f(((vector unsigned int){1,1,3,2}),
14
                     ((vector unsigned int){-1,-2,3,-4})),
15
                   ((vector unsigned int){1,0,0,0})),
16
        "f");
17
}

powered by: WebSVN 2.1.0

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