libcpp, c, middle-end: Optimize initializers using #embed in C
[official-gcc.git] / gcc / testsuite / gcc.dg / vmx / bug-3.c
blobaacca266769d7b0bb0f053aec4c0bc5f9cd96a4a
1 #include "harness.h"
3 static vector unsigned int value = { 9, 9, 9, 9 };
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)
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;
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;
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");
42 void test()
44 varargsC2 (1, 2, 3, 4, 5, 6, 7, 8, ((vector unsigned int){9,9,9,9}), 10);