aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/vmx/vsums.c
blob: d678aceec10ad549131db03b6e8755726ec6f60b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "harness.h"

static void test()
{
  vector signed int va = {-7,11,-13,17};
  vector signed int vb = {0,0,0,128};
  vector signed int evd = {0,0,0,136};

  vector signed int vd = vec_sums (va, vb);

  check (vec_all_eq (vd, evd), "sums");
}