annotate gcc/testsuite/gcc.dg/vmx/x-02.c @ 131:84e7813d76e9

gcc-8.2
author mir3636
date Thu, 25 Oct 2018 07:37:49 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 #include <altivec.h>
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 static vector bool char
kono
parents:
diff changeset
4 g(vector unsigned char, vector bool char);
kono
parents:
diff changeset
5
kono
parents:
diff changeset
6 static int q(void);
kono
parents:
diff changeset
7
kono
parents:
diff changeset
8 static vector bool char
kono
parents:
diff changeset
9 f(vector bool char b, vector unsigned char d)
kono
parents:
diff changeset
10 {
kono
parents:
diff changeset
11 vector bool char *p = &b;
kono
parents:
diff changeset
12 *p = g(d,b);
kono
parents:
diff changeset
13 return q() ? *p : b;
kono
parents:
diff changeset
14 }
kono
parents:
diff changeset
15
kono
parents:
diff changeset
16 static vector bool char b8;
kono
parents:
diff changeset
17 static vector unsigned char u8;
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 static vector bool char
kono
parents:
diff changeset
20 g(vector unsigned char a, vector bool char b)
kono
parents:
diff changeset
21 {
kono
parents:
diff changeset
22 return b8;
kono
parents:
diff changeset
23 }
kono
parents:
diff changeset
24
kono
parents:
diff changeset
25 static int q ()
kono
parents:
diff changeset
26 {
kono
parents:
diff changeset
27 return 1;
kono
parents:
diff changeset
28 }
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 int main()
kono
parents:
diff changeset
31 {
kono
parents:
diff changeset
32 f(b8, u8);
kono
parents:
diff changeset
33 return 0;
kono
parents:
diff changeset
34 }