Fix warning with -Wsign-compare -Wsystem-headers
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / builtin-vec-sums-be-int.c
blobb4dfd0637e472c88660069d3bfc8b258e5073f83
1 /* Test for the __builtin_altivec_vsumsws_be() builtin.
2 It produces just the instruction vsumsws in LE and BE modes. */
4 /* { dg-do compile } */
5 /* { dg-require-effective-target powerpc_altivec_ok } */
6 /* { dg-options "-maltivec -O2" } */
8 #include <altivec.h>
10 vector signed int
11 test_vec_sums (vector signed int vsi2, vector signed int vsi3)
13 return __builtin_altivec_vsumsws_be (vsi2, vsi3);
16 /* { dg-final { scan-assembler-times "vsumsws" 1 } } */