From: Carl Love Date: Fri, 23 Oct 2020 17:52:31 +0000 (-0500) Subject: PPC testsuite fixes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=edea991d2ca520906e7a9581248db5eb96b20ac2;p=gcc.git PPC testsuite fixes 2020-10-27 Carl Love gcc/testsuite * gcc.target/powerpc/vec-blend-runnable.c: Change #ifdef DEBUG to #if DEBUG. Fix printf line so it is less then 80 characters long. * gcc.target/powerpc/vec-insert-word-runnable.c: Change #ifdef DEBUG to #if DEBUG. * gcc.target/powerpc/vec-permute-ext-runnable.c: Change #ifdef DEBUG to #if DEBUG. * gcc.target/powerpc/vec-replace-word-runnable.c: Change #ifdef DEBUG to #if DEBUG. Fix printf lines so they are less then 80 characters long. * gcc.target/powerpc/vec-shift-double-runnable.c: Change #ifdef DEBUG to #if DEBUG. --- diff --git a/gcc/testsuite/gcc.target/powerpc/vec-blend-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-blend-runnable.c index 774960bbcd3..f614ade49b2 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-blend-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-blend-runnable.c @@ -6,7 +6,7 @@ #define DEBUG 0 -#ifdef DEBUG +#if DEBUG #include #endif @@ -145,7 +145,8 @@ main (int argc, char *argv []) if (!vec_all_eq (vresult_ushort, expected_vresult_ushort)) { #if DEBUG - printf("ERROR, vec_blendv (vsrc_a_ushort, vsrc_b_ushort, vsrc_c_ushort)\n"); + printf("ERROR, vec_blendv (vsrc_a_ushort, vsrc_b_ushort, " + "vsrc_c_ushort)\n"); for(i = 0; i < 8; i++) printf(" vresult_ushort[%d] = %d, expected_vresult_ushort[%d] = %d\n", i, vresult_ushort[i], i, expected_vresult_ushort[i]); diff --git a/gcc/testsuite/gcc.target/powerpc/vec-insert-word-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-insert-word-runnable.c index 55ca1c4b35d..c458e001d74 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-insert-word-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-insert-word-runnable.c @@ -6,7 +6,7 @@ #define DEBUG 0 -#ifdef DEBUG +#if DEBUG #include #endif diff --git a/gcc/testsuite/gcc.target/powerpc/vec-permute-ext-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-permute-ext-runnable.c index 2626d876d3d..069581fb608 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-permute-ext-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-permute-ext-runnable.c @@ -6,7 +6,7 @@ #define DEBUG 0 -#ifdef DEBUG +#if DEBUG #include #endif diff --git a/gcc/testsuite/gcc.target/powerpc/vec-replace-word-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-replace-word-runnable.c index 413b9048eca..81c475f2908 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-replace-word-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-replace-word-runnable.c @@ -7,7 +7,7 @@ #define DEBUG 0 -#ifdef DEBUG +#if DEBUG #include #endif @@ -213,7 +213,8 @@ main (int argc, char *argv []) if (!vec_all_eq (vresult_float, expected_vresult_float)) { #if DEBUG - printf("ERROR, vec_replace_unaligned (src_vb_float, src_va_float, index)\n"); + printf("ERROR, vec_replace_unaligned (src_vb_float, src_va_float, " + "index)\n"); for(i = 0; i < 4; i++) printf(" vresult_float[%d] = %f, expected_vresult_float[%d] = %f\n", i, vresult_float[i], i, expected_vresult_float[i]); @@ -234,7 +235,8 @@ main (int argc, char *argv []) if (!vec_all_eq (vresult_ullint, expected_vresult_ullint)) { #if DEBUG - printf("ERROR, vec_replace_unaligned (src_vb_ullint, src_va_ullint, index)\n"); + printf("ERROR, vec_replace_unaligned (src_vb_ullint, src_va_ullint, " + "index)\n"); for(i = 0; i < 2; i++) printf(" vresult_ullint[%d] = %d, expected_vresult_ullint[%d] = %d\n", i, vresult_ullint[i], i, expected_vresult_ullint[i]); @@ -253,7 +255,8 @@ main (int argc, char *argv []) if (!vec_all_eq (vresult_llint, expected_vresult_llint)) { #if DEBUG - printf("ERROR, vec_replace_unaligned (src_vb_llint, src_va_llint, index)\n"); + printf("ERROR, vec_replace_unaligned (src_vb_llint, src_va_llint, " + "index)\n"); for(i = 0; i < 2; i++) printf(" vresult_llint[%d] = %d, expected_vresult_llint[%d] = %d\n", i, vresult_llint[i], i, expected_vresult_llint[i]); @@ -271,8 +274,8 @@ main (int argc, char *argv []) if (!vec_all_eq (vresult_double, expected_vresult_double)) { #if DEBUG - printf("ERROR, vec_replace_unaligned (src_vb_double, src_va_double, index)\ -n"); + printf("ERROR, vec_replace_unaligned (src_vb_double, src_va_double, " + "index)\n"); for(i = 0; i < 2; i++) printf(" vresult_double[%d] = %f, expected_vresult_double[%d] = %f\n", i, vresult_double[i], i, expected_vresult_double[i]); diff --git a/gcc/testsuite/gcc.target/powerpc/vec-shift-double-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-shift-double-runnable.c index b8478f5c32d..4c1e0c4e793 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-shift-double-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-shift-double-runnable.c @@ -6,7 +6,7 @@ #define DEBUG 0 -#ifdef DEBUG +#if DEBUG #include #endif