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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [3a-01m.c] - Blame information for rev 826

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 298 jeremybenn
#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
static 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.