summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compat/vector-1_x.c
blob: 29a8170d1843f17ab20b6f1680290333695496d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/* { dg-options "-w" } */
/* { dg-options "-w -Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */

#ifndef SKIP_ATTRIBUTE

#include "compat-common.h"
#include "vector-defs.h"
#include "vector-setup.h"

SETUP (8, qi);
SETUP (16, qi);
SETUP (32, qi);
SETUP (2, hi);
SETUP (4, hi);
SETUP (8, hi);
SETUP (16, hi);
SETUP (2, si);
SETUP (4, si);
SETUP (8, si);
SETUP (1, di);
SETUP (2, di);
SETUP (4, di);

#endif

void
vector_1_x (void)
{
#ifndef SKIP_ATTRIBUTE
  DEBUG_INIT

  CHECK (8, qi);
  CHECK (16, qi);
  CHECK (32, qi);
  CHECK (2, hi);
  CHECK (4, hi);
  CHECK (8, hi);
  CHECK (16, hi);
  CHECK (2, si);
  CHECK (4, si);
  CHECK (8, si);
  CHECK (1, di);
  CHECK (2, di);
  CHECK (4, di);

  DEBUG_FINI

  if (fails != 0)
    abort ();
#endif
}