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

Subversion Repositories openrisc

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

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

Line No. Rev Author Line
1 689 jeremybenn
#include "harness.h"
2
/* Simple use of a non-overloaded generic vector intrinsic.  */
3
 
4
static vector unsigned int
5
f(vector unsigned int a, vector unsigned int b)
6
{
7
  return vec_addc(a,b);
8
}
9
 
10
static void test()
11
{
12
  check(vec_all_eq(f(((vector unsigned int){1,1,3,2}),
13
                     ((vector unsigned int){-1,-2,3,-4})),
14
                   ((vector unsigned int){1,0,0,0})),
15
        "f");
16
}

powered by: WebSVN 2.1.0

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