1 /* Verify that overloaded built-ins for vec_msum with int
2 inputs produce the right results. */
4 /* { dg-do compile } */
5 /* { dg-options "-maltivec -O2" } */
6 /* { dg-require-effective-target powerpc_altivec } */
11 test_msum_si (vector
signed short vss2
, vector
signed short vss3
,
12 vector
signed int vsi2
)
14 return vec_msum (vss2
, vss3
, vsi2
);
18 test_msum_ui (vector
unsigned short vus2
, vector
unsigned short vus3
,
19 vector
unsigned int vui2
)
21 return vec_msum (vus2
, vus3
, vui2
);
24 /* { dg-final { scan-assembler-times "vmsumshm" 1 } } */
25 /* { dg-final { scan-assembler-times "vmsumuhm" 1 } } */