aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/recip-5.c
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2016-02-24 13:48:45 -0800
committerDan Albert <danalbert@google.com>2016-02-24 13:51:18 -0800
commitb9de1157289455b0ca26daff519d4a0ddcd1fa13 (patch)
tree4c56cc0a34b91f17033a40a455f26652304f7b8d /gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/recip-5.c
parent098157a754787181cfa10e71325832448ddcea98 (diff)
downloadtoolchain_gcc-b9de1157289455b0ca26daff519d4a0ddcd1fa13.tar.gz
toolchain_gcc-b9de1157289455b0ca26daff519d4a0ddcd1fa13.tar.bz2
toolchain_gcc-b9de1157289455b0ca26daff519d4a0ddcd1fa13.zip
Update 4.8.1 to 4.8.3.
My previous drop was the wrong version. The platform mingw is currently using 4.8.3, not 4.8.1 (not sure how I got that wrong). From ftp://ftp.gnu.org/gnu/gcc/gcc-4.8.3/gcc-4.8.3.tar.bz2. Bug: http://b/26523949 Change-Id: Id85f1bdcbbaf78c7d0b5a69e74c798a08f341c35
Diffstat (limited to 'gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/recip-5.c')
-rw-r--r--gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/recip-5.c96
1 files changed, 0 insertions, 96 deletions
diff --git a/gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/recip-5.c b/gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/recip-5.c
deleted file mode 100644
index 3d7d691d5..000000000
--- a/gcc-4.8.1/gcc/testsuite/gcc.target/powerpc/recip-5.c
+++ /dev/null
@@ -1,96 +0,0 @@
-/* { dg-do compile { target { powerpc*-*-* } } } */
-/* { dg-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
-/* { dg-require-effective-target powerpc_vsx_ok } */
-/* { dg-options "-O3 -ftree-vectorize -mrecip=all -ffast-math -mcpu=power7 -fno-unroll-loops" } */
-/* { dg-final { scan-assembler-times "xvredp" 4 } } */
-/* { dg-final { scan-assembler-times "xvresp" 5 } } */
-/* { dg-final { scan-assembler-times "xsredp" 2 } } */
-/* { dg-final { scan-assembler-times "fres" 2 } } */
-
-#include <altivec.h>
-
-float f_recip (float a, float b) { return __builtin_recipdivf (a, b); }
-double d_recip (double a, double b) { return __builtin_recipdiv (a, b); }
-
-float f_div (float a, float b) { return a / b; }
-double d_div (double a, double b) { return a / b; }
-
-#define SIZE 1024
-
-double d_a[SIZE] __attribute__((__aligned__(32)));
-double d_b[SIZE] __attribute__((__aligned__(32)));
-double d_c[SIZE] __attribute__((__aligned__(32)));
-
-float f_a[SIZE] __attribute__((__aligned__(32)));
-float f_b[SIZE] __attribute__((__aligned__(32)));
-float f_c[SIZE] __attribute__((__aligned__(32)));
-
-void vec_f_recip (void)
-{
- int i;
-
- for (i = 0; i < SIZE; i++)
- f_a[i] = __builtin_recipdivf (f_b[i], f_c[i]);
-}
-
-void vec_d_recip (void)
-{
- int i;
-
- for (i = 0; i < SIZE; i++)
- d_a[i] = __builtin_recipdiv (d_b[i], d_c[i]);
-}
-
-void vec_f_div (void)
-{
- int i;
-
- for (i = 0; i < SIZE; i++)
- f_a[i] = f_b[i] / f_c[i];
-}
-
-void vec_f_div2 (void)
-{
- int i;
-
- for (i = 0; i < SIZE; i++)
- f_a[i] = f_b[i] / 2.0f;
-}
-
-void vec_f_div53 (void)
-{
- int i;
-
- for (i = 0; i < SIZE; i++)
- f_a[i] = f_b[i] / 53.0f;
-}
-
-void vec_d_div (void)
-{
- int i;
-
- for (i = 0; i < SIZE; i++)
- d_a[i] = d_b[i] / d_c[i];
-}
-
-void vec_d_div2 (void)
-{
- int i;
-
- for (i = 0; i < SIZE; i++)
- d_a[i] = d_b[i] / 2.0;
-}
-
-void vec_d_div53 (void)
-{
- int i;
-
- for (i = 0; i < SIZE; i++)
- d_a[i] = d_b[i] / 53.0;
-}
-
-vector float v4sf_recip1 (vector float a, vector float b) { return vec_recipdiv (a, b); }
-vector float v4sf_recip2 (vector float a, vector float b) { return __builtin_altivec_vrecipdivfp (a, b); }
-vector double v2df_recip1 (vector double a, vector double b) { return vec_recipdiv (a, b); }
-vector float v4sf_recip3 (vector float a, vector float b) { return __builtin_vsx_xvrecipdivsp (a, b); }
-vector double v2df_recip2 (vector double a, vector double b) { return __builtin_vsx_xvrecipdivdp (a, b); }