summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/compat/vector-2_x.c
blob: 899a3ab11f51da0d2df75aef5d772b0e3cd13f3e (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
/* { dg-options "-w" } */
/* { dg-options "-w -mno-mmx -Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */


#ifndef SKIP_ATTRIBUTE

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

SETUP (2, sf);
SETUP (4, sf);
SETUP (16, sf);
SETUP (8, sf);
SETUP (2, df);
SETUP (4, df);

#endif

void
vector_2_x (void)
{
#ifndef SKIP_ATTRIBUTE
  DEBUG_INIT

  CHECK (2, sf);
  CHECK (4, sf);
  CHECK (8, sf);
  CHECK (16, sf);
  CHECK (4, df);
  CHECK (2, df);

  DEBUG_FINI

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