Handle T_HRESULT types in CodeView records
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / fold-vec-msum-short.c
blob805dc140519202d620c697a8af6e918835b83dfa
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 } */
8 #include <altivec.h>
10 vector signed int
11 test_msum_si (vector signed short vss2, vector signed short vss3,
12 vector signed int vsi2)
14 return vec_msum (vss2, vss3, vsi2);
17 vector unsigned int
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 } } */