aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/altivec-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/testsuite/gcc.dg/altivec-1.c')
-rw-r--r--gcc/testsuite/gcc.dg/altivec-1.c42
1 files changed, 0 insertions, 42 deletions
diff --git a/gcc/testsuite/gcc.dg/altivec-1.c b/gcc/testsuite/gcc.dg/altivec-1.c
deleted file mode 100644
index 65c8fa7..0000000
--- a/gcc/testsuite/gcc.dg/altivec-1.c
+++ /dev/null
@@ -1,42 +0,0 @@
-/* { dg-do run { target powerpc*-*-* } } */
-/* { dg-xfail-if "" { "powerpc-*-eabispe*" "powerpc-ibm-aix*" } { "-maltivec" } { "" } } */
-/* { dg-options "-maltivec" } */
-
-/* Program to test PowerPC AltiVec instructions. */
-
-#include <altivec.h>
-#include "altivec_check.h"
-
-extern void abort (void);
-
-vector int a1 = { 100, 200, 300, 400 };
-vector int a2 = { 500, 600, 700, 800 };
-vector int addi = { 600, 800, 1000, 1200 };
-vector int avgi = { 300, 400, 500, 600 };
-
-vector float f1 = { 1.0, 2.0, 3.0, 4.0 };
-vector float f2 = { 5.0, 6.0, 7.0, 8.0 };
-vector float f3;
-vector float addf = { 6.0, 8.0, 10.0, 12.0 };
-
-vector int k;
-vector float f, g, h;
-
-int main ()
-{
- altivec_check(); /* Exits if AltiVec not supported */
-
- k = vec_add (a1, a2);
- if (!vec_all_eq (addi, k))
- abort ();
-
- k = vec_avg (a1, a2);
- if (!vec_all_eq (k, avgi))
- abort ();
-
- h = vec_add (f1, f2);
- if (!vec_all_eq (h, addf))
- abort ();
-
- return 0;
-}