aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.dg/compat/vector-2_x.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.9/gcc/testsuite/gcc.dg/compat/vector-2_x.c')
-rw-r--r--gcc-4.9/gcc/testsuite/gcc.dg/compat/vector-2_x.c38
1 files changed, 38 insertions, 0 deletions
diff --git a/gcc-4.9/gcc/testsuite/gcc.dg/compat/vector-2_x.c b/gcc-4.9/gcc/testsuite/gcc.dg/compat/vector-2_x.c
new file mode 100644
index 000000000..899a3ab11
--- /dev/null
+++ b/gcc-4.9/gcc/testsuite/gcc.dg/compat/vector-2_x.c
@@ -0,0 +1,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
+}