aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/powerpc/fold-vec-sums-int.c
blob: eba75a860bee7a8301706c310315c0fd89f37ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* Verify that overloaded built-ins for vec_sums with int
   inputs produce the right code.  */

/* { dg-do compile } */
/* { dg-options "-maltivec -O2" } */
/* { dg-require-effective-target powerpc_altivec } */

#include <altivec.h>

vector signed int
test_vec_sums (vector signed int vsi2, vector signed int vsi3)
{
  return vec_sums (vsi2, vsi3);
}

/* { dg-final { scan-assembler-times "vsumsws" 1 } } */