1 /* Test for the __builtin_altivec_vsumsws_be() builtin.
2    It produces just the instruction vsumsws in LE and BE modes.  */
3 
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2" } */
7 
8 #include <altivec.h>
9 
10 vector signed int
test_vec_sums(vector signed int vsi2,vector signed int vsi3)11 test_vec_sums (vector signed int vsi2, vector signed int vsi3)
12 {
13   return  __builtin_altivec_vsumsws_be (vsi2, vsi3);
14 }
15 
16 /* { dg-final { scan-assembler-times "vsumsws" 1 } } */
17