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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vmx/] [bug-3.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
static vector unsigned int value = { 9, 9, 9, 9 };
4
 
5
void varargsC2 (int p1, int p2, int p3, int p4, int p5, int p6, int p7,
6
                int p8, vector unsigned int p9, int p10)
7
{
8
  int i1;
9
  int i2;
10
  int i3;
11
  int i4;
12
  int i5;
13
  int i6;
14
  int i7;
15
  int i8;
16
  vector unsigned int i9;
17
  int i10;
18
 
19
  i1 = p1;
20
  i2 = p2;
21
  i3 = p3;
22
  i4 = p4;
23
  i5 = p5;
24
  i6 = p6;
25
  i7 = p7;
26
  i8 = p8;
27
  i9 = p9;
28
  i10 = p10;
29
 
30
  check(i1 == 1, "i1");
31
  check(i2 == 2, "i2");
32
  check(i3 == 3, "i3");
33
  check(i4 == 4, "i4");
34
  check(i5 == 5, "i5");
35
  check(i6 == 6, "i6");
36
  check(i7 == 7, "i7");
37
  check(i8 == 8, "i8");
38
  check(vec_all_eq(i9, value), "i9");
39
  check(i10 == 10, "i10");
40
}
41
 
42
void test()
43
{
44
  varargsC2 (1, 2, 3, 4, 5, 6, 7, 8, ((vector unsigned int){9,9,9,9}), 10);
45
}

powered by: WebSVN 2.1.0

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