1 /* Header file for fold-vec-cmp-char*.c tests.  Used to verify codegen results
2    for vec_cmp{eq,ge,gt,le,lt,ne} builtins.  */
3 
4 #include <altivec.h>
5 
6 vector bool char
test3_eq(vector signed char x,vector signed char y)7 test3_eq (vector signed char x, vector signed char y)
8 {
9   return vec_cmpeq (x, y);
10 }
11 
12 vector bool char
test6_eq(vector unsigned char x,vector unsigned char y)13 test6_eq (vector unsigned char x, vector unsigned char y)
14 {
15   return vec_cmpeq (x, y);
16 }
17 
18 vector bool char
test3_ge(vector signed char x,vector signed char y)19 test3_ge (vector signed char x, vector signed char y)
20 {
21   return vec_cmpge (x, y);
22 }
23 
24 vector bool char
test6_ge(vector unsigned char x,vector unsigned char y)25 test6_ge (vector unsigned char x, vector unsigned char y)
26 {
27   return vec_cmpge (x, y);
28 }
29 
30 vector bool char
test3_gt(vector signed char x,vector signed char y)31 test3_gt (vector signed char x, vector signed char y)
32 {
33   return vec_cmpgt (x, y);
34 }
35 
36 vector bool char
test6_gt(vector unsigned char x,vector unsigned char y)37 test6_gt (vector unsigned char x, vector unsigned char y)
38 {
39   return vec_cmpgt (x, y);
40 }
41 
42 vector bool char
test3_le(vector signed char x,vector signed char y)43 test3_le (vector signed char x, vector signed char y)
44 {
45   return vec_cmple (x, y);
46 }
47 
48 vector bool char
test6_le(vector unsigned char x,vector unsigned char y)49 test6_le (vector unsigned char x, vector unsigned char y)
50 {
51   return vec_cmple (x, y);
52 }
53 
54 vector bool char
test3_lt(vector signed char x,vector signed char y)55 test3_lt (vector signed char x, vector signed char y)
56 {
57   return vec_cmplt (x, y);
58 }
59 
60 vector bool char
test6_lt(vector unsigned char x,vector unsigned char y)61 test6_lt (vector unsigned char x, vector unsigned char y)
62 {
63   return vec_cmplt (x, y);
64 }
65 
66 vector bool char
test3_ne(vector signed char x,vector signed char y)67 test3_ne (vector signed char x, vector signed char y)
68 {
69   return vec_cmpne (x, y);
70 }
71 
72 vector bool char
test6_ne(vector unsigned char x,vector unsigned char y)73 test6_ne (vector unsigned char x, vector unsigned char y)
74 {
75   return vec_cmpne (x, y);
76 }
77 
78