Revise -mdisable-fpregs option and add new -msoft-mult option
[official-gcc.git] / gcc / testsuite / gcc.dg / pr96377-2.c
blob835504011565856e82a4d839d9f671722b455025
1 /* { dg-options "-flax-vector-conversions -Wno-psabi" } */
3 typedef int v4si __attribute__((vector_size(16)));
4 typedef short v8hi __attribute__((vector_size(16)));
6 struct s { v8hi x; v4si y; };
7 union u1 { v8hi x; v4si y; };
8 union u2 { v4si s; v8hi y; };
10 void
11 foo (v4si i, v8hi h)
13 struct s x1 = { i, i };
14 struct s x2 = { h, h };
15 struct s x3 = { i, h };
16 struct s x4 = { h, i };
18 union u1 y1 = { i };
19 union u1 y2 = { h };
20 union u2 y3 = { i };
21 union u2 y4 = { h };
23 v4si z1[] = { i, i };
24 v4si z2[] = { i, h };
25 v4si z3[] = { h, i };
26 v4si z4[] = { h, h };
27 v8hi z5[] = { i, i };
28 v8hi z6[] = { i, h };
29 v8hi z7[] = { h, i };
30 v8hi z8[] = { h, h };