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

Subversion Repositories openrisc

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

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

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

powered by: WebSVN 2.1.0

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