summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vmx/3a-07.c
blob: 197fd23c86e1e2b9554c42a94dc4a58dd1beb716 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "harness.h"

static vector unsigned char 
zero() 
{
  /* MCC allocates a stack slot for and loads an uninitialized local
     variable.  */
  vector unsigned char a;
  return vec_sub(a,a);
}

static void test()
{
  static vector unsigned char zerov;
  check(vec_all_eq(zero(), zerov), "zero");
}