annotate gcc/testsuite/gcc.dg/vmx/3a-01m.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 "harness.h"
kono
parents:
diff changeset
2
kono
parents:
diff changeset
3 /* Simple use of a non-overloaded specific vector intrinsic. */
kono
parents:
diff changeset
4
kono
parents:
diff changeset
5 vector unsigned int
kono
parents:
diff changeset
6 f(vector unsigned int a, vector unsigned int b)
kono
parents:
diff changeset
7 {
kono
parents:
diff changeset
8 return vec_vaddcuw(a,b);
kono
parents:
diff changeset
9 }
kono
parents:
diff changeset
10
kono
parents:
diff changeset
11 static void test()
kono
parents:
diff changeset
12 {
kono
parents:
diff changeset
13 check(vec_all_eq(f(((vector unsigned int){1,1,3,2}),
kono
parents:
diff changeset
14 ((vector unsigned int){-1,-2,3,-4})),
kono
parents:
diff changeset
15 ((vector unsigned int){1,0,0,0})),
kono
parents:
diff changeset
16 "f");
kono
parents:
diff changeset
17 }