[RS6000] Tests that use int128_t and -m32
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-select-char.c
blobe055c017536beedbfb716fdff20c24cc6707c247
1 /* Verify that overloaded built-ins for vec_sel with char
2 inputs produce the right code. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_vsx_ok } */
6 /* { dg-options "-maltivec -O2" } */
8 #include <altivec.h>
10 vector bool char
11 test1_0 (vector bool char x, vector bool char y, vector bool char z)
13 return vec_sel (x, y, z);
16 vector bool char
17 test1_1 (vector bool char x,vector bool char y, vector unsigned char z)
19 return vec_sel (x, y, z);
22 vector signed char
23 test3_0 (vector signed char x,vector signed char y, vector bool char z)
25 return vec_sel (x, y, z);
28 vector signed char
29 test3_1 (vector signed char x,vector signed char y, vector unsigned char z)
31 return vec_sel (x, y, z);
34 vector unsigned char
35 test6_0 (vector unsigned char x,vector unsigned char y,vector bool char z)
37 return vec_sel (x, y, z);
40 vector unsigned char
41 test6_1 (vector unsigned char x,vector unsigned char y, vector unsigned char z)
43 return vec_sel (x, y, z);
46 /* { dg-final { scan-assembler-times {\mxxsel\M|\mvsel\M} 6 } } */