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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [3b-15.c] - Blame information for rev 154

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

Line No. Rev Author Line
1 149 jeremybenn
#include "harness.h"
2
 
3
vector unsigned char
4
f (vector unsigned char a, vector unsigned char b, vector unsigned char c)
5
{
6
  return vec_perm(a,b,c);
7
}
8
 
9
static void test()
10
{
11
  check(vec_all_eq(f(((vector unsigned char){0,1,2,3,4,5,6,7,
12
                                            8,9,10,11,12,13,14,15}),
13
                     ((vector unsigned char){70,71,72,73,74,75,76,77,
14
                                            78,79,80,81,82,83,84,85}),
15
                     ((vector unsigned char){0x1,0x14,0x18,0x10,0x16,0x15,0x19,0x1a,
16
                                            0x1c,0x1c,0x1c,0x12,0x8,0x1d,0x1b,0xe})),
17
                   ((vector unsigned char){1,74,78,70,76,75,79,80,82,82,82,72,8,83,81,14})),
18
        "f");
19
}

powered by: WebSVN 2.1.0

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