1 /* Verify that overloaded built-ins for vec_sub with char
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec" } */
11 test1 (vector
bool char x
, vector
signed char y
)
13 return vec_sub (x
, y
);
17 test2 (vector
signed char x
, vector
bool char y
)
19 return vec_sub (x
, y
);
23 test3 (vector
signed char x
, vector
signed char y
)
25 return vec_sub (x
, y
);
29 test4 (vector
bool char x
, vector
unsigned char y
)
31 return vec_sub (x
, y
);
35 test5 (vector
unsigned char x
, vector
bool char y
)
37 return vec_sub (x
, y
);
41 test6 (vector
unsigned char x
, vector
unsigned char y
)
43 return vec_sub (x
, y
);
46 /* { dg-final { scan-assembler-times "vsububm" 6 } } */