1 /* Verify that overloaded built-ins for vec_mule,vec_mulo with char
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2" } */
11 test_even (vector
signed char x
, vector
signed char y
)
13 return vec_mule (x
, y
);
17 test_uns_even (vector
unsigned char x
, vector
unsigned char y
)
19 return vec_mule (x
, y
);
23 test_odd (vector
signed char x
, vector
signed char y
)
25 return vec_mulo (x
, y
);
29 test_uns_odd (vector
unsigned char x
, vector
unsigned char y
)
31 return vec_mulo (x
, y
);
34 /* { dg-final { scan-assembler-times "vmuleub" 1 } } */
35 /* { dg-final { scan-assembler-times "vmulesb" 1 } } */
36 /* { dg-final { scan-assembler-times "vmuloub" 1 } } */
37 /* { dg-final { scan-assembler-times "vmulosb" 1 } } */