c++: normalizing ttp constraints [PR115656]
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-cmp-char.h
blob53161213ca9a0c1249b2d61bc3237e6798adb51d
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. */
4 #include <altivec.h>
6 vector bool char
7 test3_eq (vector signed char x, vector signed char y)
9 return vec_cmpeq (x, y);
12 vector bool char
13 test6_eq (vector unsigned char x, vector unsigned char y)
15 return vec_cmpeq (x, y);
18 vector bool char
19 test3_ge (vector signed char x, vector signed char y)
21 return vec_cmpge (x, y);
24 vector bool char
25 test6_ge (vector unsigned char x, vector unsigned char y)
27 return vec_cmpge (x, y);
30 vector bool char
31 test3_gt (vector signed char x, vector signed char y)
33 return vec_cmpgt (x, y);
36 vector bool char
37 test6_gt (vector unsigned char x, vector unsigned char y)
39 return vec_cmpgt (x, y);
42 vector bool char
43 test3_le (vector signed char x, vector signed char y)
45 return vec_cmple (x, y);
48 vector bool char
49 test6_le (vector unsigned char x, vector unsigned char y)
51 return vec_cmple (x, y);
54 vector bool char
55 test3_lt (vector signed char x, vector signed char y)
57 return vec_cmplt (x, y);
60 vector bool char
61 test6_lt (vector unsigned char x, vector unsigned char y)
63 return vec_cmplt (x, y);
66 vector bool char
67 test3_ne (vector signed char x, vector signed char y)
69 return vec_cmpne (x, y);
72 vector bool char
73 test6_ne (vector unsigned char x, vector unsigned char y)
75 return vec_cmpne (x, y);