From: Bill Schmidt Date: Fri, 26 Oct 2018 19:21:21 +0000 (+0000) Subject: sse-addss-1.c: Call abort under DEBUG also; formatting cleanup. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ffd0bbe152496a667d0854ccb68f36bf3e853205;p=gcc.git sse-addss-1.c: Call abort under DEBUG also; formatting cleanup. 2018-10-26 Bill Schmidt Jinsong Ji * gcc.target/powerpc/sse-addss-1.c: Call abort under DEBUG also; formatting cleanup. * gcc.target/powerpc/sse-pavgw-1.c: Likewise. * gcc.target/powerpc/sse2-addsd-1.c: Likewise. * gcc.target/powerpc/sse2-cvtdq2pd-1.c: Likewise. * gcc.target/powerpc/sse2-cvtpd2dq-1.c: Likewise. * gcc.target/powerpc/sse2-cvtpd2ps-1.c: Likewise. * gcc.target/powerpc/sse2-cvtps2dq-1.c: Likewise. * gcc.target/powerpc/sse2-cvtps2pd-1.c: Likewise. * gcc.target/powerpc/sse2-cvtsd2si-1.c: Likewise. * gcc.target/powerpc/sse2-cvtsd2si-2.c: Likewise. * gcc.target/powerpc/sse2-cvtsd2ss-1.c: Likewise. * gcc.target/powerpc/sse2-cvtss2sd-1.c: Likewise. * gcc.target/powerpc/sse2-cvttpd2dq-1.c: Likewise. * gcc.target/powerpc/sse2-cvttsd2si-1.c: Likewise. * gcc.target/powerpc/sse2-divpd-1.c: Likewise. * gcc.target/powerpc/sse2-divsd-1.c: Likewise. * gcc.target/powerpc/sse2-maxsd-1.c: Likewise. * gcc.target/powerpc/sse2-minsd-1.c: Likewise. * gcc.target/powerpc/sse2-movmskpd-1.c: Likewise. * gcc.target/powerpc/sse2-movq-1.c: Likewise. * gcc.target/powerpc/sse2-movsd-3.c: Likewise. * gcc.target/powerpc/sse2-mulpd-1.c: Likewise. * gcc.target/powerpc/sse2-mulsd-1.c: Likewise. * gcc.target/powerpc/sse2-packssdw-1.c: Likewise. * gcc.target/powerpc/sse2-packsswb-1.c: Likewise. * gcc.target/powerpc/sse2-packuswb-1.c: Likewise. * gcc.target/powerpc/sse2-paddsb-1.c: Likewise. * gcc.target/powerpc/sse2-paddsw-1.c: Likewise. * gcc.target/powerpc/sse2-paddusb-1.c: Likewise. * gcc.target/powerpc/sse2-pmovmskb-1.c: Likewise. * gcc.target/powerpc/sse2-pmulhw-1.c: Likewise. * gcc.target/powerpc/sse2-pmuludq1.c: Likewise. * gcc.target/powerpc/sse2-psadbw-1.c: Likewise. * gcc.target/powerpc/sse2-pshufd-1.c: Likewise. * gcc.target/powerpc/sse2-pshufhw-1.c: Likewise. * gcc.target/powerpc/sse2-pshuflw-1.c: Likewise. * gcc.target/powerpc/sse2-pslld-2.c: Likewise. * gcc.target/powerpc/sse2-pslldq-1.c: Likewise. * gcc.target/powerpc/sse2-psrld-1.c: Likewise. * gcc.target/powerpc/sse2-psrld-2.c: Likewise. * gcc.target/powerpc/sse2-psrldq-1.c: Likewise. * gcc.target/powerpc/sse2-psubusb-1.c: Likewise. * gcc.target/powerpc/sse2-sqrtpd-1.c: Likewise. * gcc.target/powerpc/sse2-subsd-1.c: Likewise. Co-Authored-By: Jinsong Ji From-SVN: r265545 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 10b4f755149..1d159e09fef 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,52 @@ +2018-10-26 Bill Schmidt + Jinsong Ji + + * gcc.target/powerpc/sse-addss-1.c: Call abort under DEBUG also; + formatting cleanup. + * gcc.target/powerpc/sse-pavgw-1.c: Likewise. + * gcc.target/powerpc/sse2-addsd-1.c: Likewise. + * gcc.target/powerpc/sse2-cvtdq2pd-1.c: Likewise. + * gcc.target/powerpc/sse2-cvtpd2dq-1.c: Likewise. + * gcc.target/powerpc/sse2-cvtpd2ps-1.c: Likewise. + * gcc.target/powerpc/sse2-cvtps2dq-1.c: Likewise. + * gcc.target/powerpc/sse2-cvtps2pd-1.c: Likewise. + * gcc.target/powerpc/sse2-cvtsd2si-1.c: Likewise. + * gcc.target/powerpc/sse2-cvtsd2si-2.c: Likewise. + * gcc.target/powerpc/sse2-cvtsd2ss-1.c: Likewise. + * gcc.target/powerpc/sse2-cvtss2sd-1.c: Likewise. + * gcc.target/powerpc/sse2-cvttpd2dq-1.c: Likewise. + * gcc.target/powerpc/sse2-cvttsd2si-1.c: Likewise. + * gcc.target/powerpc/sse2-divpd-1.c: Likewise. + * gcc.target/powerpc/sse2-divsd-1.c: Likewise. + * gcc.target/powerpc/sse2-maxsd-1.c: Likewise. + * gcc.target/powerpc/sse2-minsd-1.c: Likewise. + * gcc.target/powerpc/sse2-movmskpd-1.c: Likewise. + * gcc.target/powerpc/sse2-movq-1.c: Likewise. + * gcc.target/powerpc/sse2-movsd-3.c: Likewise. + * gcc.target/powerpc/sse2-mulpd-1.c: Likewise. + * gcc.target/powerpc/sse2-mulsd-1.c: Likewise. + * gcc.target/powerpc/sse2-packssdw-1.c: Likewise. + * gcc.target/powerpc/sse2-packsswb-1.c: Likewise. + * gcc.target/powerpc/sse2-packuswb-1.c: Likewise. + * gcc.target/powerpc/sse2-paddsb-1.c: Likewise. + * gcc.target/powerpc/sse2-paddsw-1.c: Likewise. + * gcc.target/powerpc/sse2-paddusb-1.c: Likewise. + * gcc.target/powerpc/sse2-pmovmskb-1.c: Likewise. + * gcc.target/powerpc/sse2-pmulhw-1.c: Likewise. + * gcc.target/powerpc/sse2-pmuludq1.c: Likewise. + * gcc.target/powerpc/sse2-psadbw-1.c: Likewise. + * gcc.target/powerpc/sse2-pshufd-1.c: Likewise. + * gcc.target/powerpc/sse2-pshufhw-1.c: Likewise. + * gcc.target/powerpc/sse2-pshuflw-1.c: Likewise. + * gcc.target/powerpc/sse2-pslld-2.c: Likewise. + * gcc.target/powerpc/sse2-pslldq-1.c: Likewise. + * gcc.target/powerpc/sse2-psrld-1.c: Likewise. + * gcc.target/powerpc/sse2-psrld-2.c: Likewise. + * gcc.target/powerpc/sse2-psrldq-1.c: Likewise. + * gcc.target/powerpc/sse2-psubusb-1.c: Likewise. + * gcc.target/powerpc/sse2-sqrtpd-1.c: Likewise. + * gcc.target/powerpc/sse2-subsd-1.c: Likewise. + 2018-10-26 Paul A. Clarke * gcc.target/powerpc/ssse3-check.h: New file. diff --git a/gcc/testsuite/gcc.target/powerpc/sse-addss-1.c b/gcc/testsuite/gcc.target/powerpc/sse-addss-1.c index b4bb7a7c1d9..782bae8de0d 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse-addss-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse-addss-1.c @@ -39,17 +39,16 @@ TEST (void) e[3] = s1.a[3]; if (check_union128 (u, e)) -#if DEBUG { - printf ("sse_test_addss_1; check_union128 failed\n"); - printf ("\t add ([%f,%f,%f,%f], [%f,%f,%f,%f]) -> [%f,%f,%f,%F]\n", - s1.x[0], s1.x[1], s1.x[2], s1.x[3], - s2.x[0], s2.x[1], s2.x[2], s2.x[3], - u.x[0], u.x[1], u.x[2], u.x[3]); - printf ("\t expect [%f,%f,%f%f]\n", - e[0], e[1], e[2], e[3]); - } -#else - abort (); +#if DEBUG + printf ("sse_test_addss_1; check_union128 failed\n"); + printf ("\t add ([%f,%f,%f,%f], [%f,%f,%f,%f]) -> [%f,%f,%f,%F]\n", + s1.x[0], s1.x[1], s1.x[2], s1.x[3], + s2.x[0], s2.x[1], s2.x[2], s2.x[3], + u.x[0], u.x[1], u.x[2], u.x[3]); + printf ("\t expect [%f,%f,%f%f]\n", + e[0], e[1], e[2], e[3]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse-pavgw-1.c b/gcc/testsuite/gcc.target/powerpc/sse-pavgw-1.c index 6c80d336972..6f8721ad38c 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse-pavgw-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse-pavgw-1.c @@ -42,13 +42,12 @@ TEST (void) } if (u.as_m64 != e.as_m64) -#if DEBUG { +#if DEBUG printf ("test_mmx_pavgw_1; failed\n"); printf ("\t _mm_avg_pu16 (%llx, %llx) -> %llx != %llx\n", s1.as_m64, s2.as_m64, u.as_m64, e.as_m64); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-addsd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-addsd-1.c index a08025afaaf..634746a2a97 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-addsd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-addsd-1.c @@ -40,14 +40,13 @@ TEST (void) e[1] = s1.a[1]; if (check_union128d (u, e)) + { #if DEBUG - { printf ("sse2_test_addsd_1; check_union128d failed\n"); printf ("\t [%f,%f] + [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], s2.a[1], u.a[0], u.a[1]); printf ("\t expect [%f,%f]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-cvtdq2pd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-cvtdq2pd-1.c index 480bd378c37..6565b42dd00 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-cvtdq2pd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-cvtdq2pd-1.c @@ -38,17 +38,15 @@ TEST (void) e[1] = (double)s.a[1]; if (check_union128d (u, e)) + { #if DEBUG - { printf ("sse2_test_cvtepi32_pd; check_union128d failed\n"); printf ("\t [%d,%d, %d, %d] -> [%f,%f]\n", - s.a[0], s.a[1], s.a[2], s.a[3], - u.a[0], u.a[1]); - printf ("\t expect [%f,%f]\n", - e[0], e[1]); - } -#else - abort (); + s.a[0], s.a[1], s.a[2], s.a[3], + u.a[0], u.a[1]); + printf ("\t expect [%f,%f]\n", e[0], e[1]); #endif + abort (); + } #endif } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-cvtpd2dq-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-cvtpd2dq-1.c index 8f353720506..26efa7f9354 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-cvtpd2dq-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-cvtpd2dq-1.c @@ -36,14 +36,13 @@ TEST (void) e[1] = (int)(s.a[1] + 0.5); if (check_union128i_d (u, e)) + { #if DEBUG - { printf ("sse2_test_cvtpd_epi32; check_union128i_d failed\n"); printf ("\t [%f,%f] -> [%d,%d,%d,%d]\n", s.a[0], s.a[1], u.a[0], u.a[1], u.a[2], u.a[3]); printf ("\t expect [%d,%d,%d,%d]\n", e[0], e[1], e[2], e[3]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-cvtpd2ps-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-cvtpd2ps-1.c index 118e5125144..80be7fdeb94 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-cvtpd2ps-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-cvtpd2ps-1.c @@ -36,14 +36,13 @@ TEST (void) e[1] = (float)s.a[1]; if (check_union128 (u, e)) + { #if DEBUG - { - printf ("sse2_test_cvtpd_ps; check_union128 failed\n"); + printf ("sse2_test_cvtpd_ps; check_union128 failed\n"); printf ("\t [%f,%f] -> [%f,%f,%f,%f]\n", s.a[0], s.a[1], u.a[0], u.a[1], u.a[2], u.a[3]); printf ("\t expect [%f,%f,%f,%f]\n", e[0], e[1], e[2], e[3]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-cvtps2dq-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-cvtps2dq-1.c index 60f8babe97e..b9cd6f1d753 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-cvtps2dq-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-cvtps2dq-1.c @@ -38,14 +38,13 @@ TEST (void) e[3] = (int)(s.a[3] + 0.5); if (check_union128i_d (u, e)) + { #if DEBUG - { printf ("sse2_test_cvtps2dq_1; check_union128i_d failed\n"); printf ("\t [%f,%f,%f,%f] -> [%d,%d,%d,%d]\n", s.a[0], s.a[1], s.a[2], s.a[3], u.a[0], u.a[1], u.a[2], u.a[3]); printf ("\t expect [%d,%d,%d,%d]\n", e[0], e[1], e[2], e[3]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-cvtps2pd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-cvtps2pd-1.c index ef17514fbc3..8e1b67b683e 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-cvtps2pd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-cvtps2pd-1.c @@ -36,14 +36,13 @@ TEST (void) e[1] = (double)s.a[1]; if (check_union128d (u, e)) + { #if DEBUG - { printf ("sse2_test_cvtps2pd_1; check_union128d failed\n"); printf ("\t cvt\t [%f,%f,%f,%f] -> [%f,%f]\n", s.a[0], s.a[1], s.a[2], s.a[3], u.a[0], u.a[1]); printf ("\t expect\t [%f,%f]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2si-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2si-1.c index 5978ce579a0..7f71527fcff 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2si-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2si-1.c @@ -36,13 +36,12 @@ TEST (void) e = (int)(s.a[0] + 0.5); if (d != e) + { #if DEBUG - { printf ("sse2_test_cvtsd2si_1; failed\n"); printf ("\t [%f,%f] -> [%d]\n", s.a[0], s.a[1], d); printf ("\t expect [%d]\n", e); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2si-2.c b/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2si-2.c index fb88e70a576..00387a7a25b 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2si-2.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2si-2.c @@ -35,13 +35,12 @@ TEST (void) e = (long long)(s.a[0] + 0.5); if (d != e) + { #if DEBUG - { printf ("sse2_test_cvtsd2si_2; failed\n"); printf ("\t [%f,%f] -> [%ld]\n", s.a[0], s.a[1], d); printf ("\t expect [%ld]\n", e); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2ss-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2ss-1.c index 1aa31047ae2..fc76d3ba9ec 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2ss-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-cvtsd2ss-1.c @@ -38,15 +38,14 @@ TEST (void) e[0] = (float)source1[0]; if (check_union128(u, e)) + { #if DEBUG - { printf ("sse2_test_cvtsd2ss_1; check_union128 failed\n"); printf ("\t [%f,%f,%f,%f],[%f,%f]\n", s2.a[0], s2.a[1], s2.a[2], s2.a[3], - s1.a[0], s1.a[1]); + s1.a[0], s1.a[1]); printf ("\t -> \t[%f,%f,%f,%f]\n", u.a[0], u.a[1], u.a[2], u.a[3]); printf ("\texpect\t[%f,%f,%f,%f]\n", e[0], e[1], e[2], e[3]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-cvtss2sd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-cvtss2sd-1.c index 421365e0f06..5b3ebe60e43 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-cvtss2sd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-cvtss2sd-1.c @@ -37,15 +37,14 @@ TEST (void) e[1] = s1.a[1]; if (check_union128d (u, e)) + { #if DEBUG - { printf ("sse2_test_cvtss2sd_1; check_union128d failed\n"); - printf ("\t [%f,%f], [%f,%f,%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], s2.a[1], - s2.a[2], s2.a[3]); + printf ("\t [%f,%f], [%f,%f,%f,%f]\n", s1.a[0], s1.a[1], + s2.a[0], s2.a[1], s2.a[2], s2.a[3]); printf ("\t -> \t[%f,%f]\n", u.a[0], u.a[1]); printf ("\texpect\t[%f,%f]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-cvttpd2dq-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-cvttpd2dq-1.c index cc172477e57..8ea6bef7fcd 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-cvttpd2dq-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-cvttpd2dq-1.c @@ -36,14 +36,13 @@ TEST (void) e[1] = (int)s.a[1]; if (check_union128i_d (u, e)) + { #if DEBUG - { - printf ("sse2_test_cvttpd_epi32; check_union128i_d failed\n"); + printf ("sse2_test_cvttpd_epi32; check_union128i_d failed\n"); printf ("\t [%f,%f] -> [%d,%d,%d,%d]\n", s.a[0], s.a[1], u.a[0], u.a[1], u.a[2], u.a[3]); printf ("\t expect [%d,%d,%d,%d]\n", e[0], e[1], e[2], e[3]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-cvttsd2si-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-cvttsd2si-1.c index 90536d54dee..0523a136956 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-cvttsd2si-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-cvttsd2si-1.c @@ -35,13 +35,12 @@ TEST (void) e = (int)(s.a[0]); if (d != e) + { #if DEBUG - { printf ("sse2_test_cvttsd2si_1; failed\n"); printf ("\t [%f,%f] -> [%d]\n", s.a[0], s.a[1], d); printf ("\t expect [%d]\n", e); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-divpd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-divpd-1.c index 08ef35fdc9d..2350289e2e8 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-divpd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-divpd-1.c @@ -36,14 +36,13 @@ TEST (void) e[1] = s1.a[1] / s2.a[1]; if (check_union128d (u, e)) + { #if DEBUG - { - printf ("sse2_test_divpd_1; check_union128d failed\n"); - printf ("\t [%f,%f] * [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], + printf ("sse2_test_divpd_1; check_union128d failed\n"); + printf ("\t [%f,%f] * [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], s2.a[1], u.a[0], u.a[1]); - printf ("\t expect [%f,%f]\n", e[0], e[1]); - } -#else - abort (); + printf ("\t expect [%f,%f]\n", e[0], e[1]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-divsd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-divsd-1.c index d7880fd5bb4..6d5ac9aff53 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-divsd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-divsd-1.c @@ -36,14 +36,13 @@ TEST (void) e[1] = s1.a[1]; if (check_union128d (u, e)) + { #if DEBUG - { - printf ("sse2_test_divsd_1; check_union128d failed\n"); - printf ("\t [%f,%f] / [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], + printf ("sse2_test_divsd_1; check_union128d failed\n"); + printf ("\t [%f,%f] / [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], s2.a[1], u.a[0], u.a[1]); - printf ("\t expect [%f,%f]\n", e[0], e[1]); - } -#else - abort (); + printf ("\t expect [%f,%f]\n", e[0], e[1]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-maxsd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-maxsd-1.c index d5c704b94e0..7bb70b7f3f2 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-maxsd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-maxsd-1.c @@ -36,14 +36,13 @@ TEST (void) e[1] = s1.a[1]; if (check_union128d (u, e)) + { #if DEBUG - { printf ("sse2_test_maxsd_3; check_union128d failed\n"); printf ("\t [%f,%f] + [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], s2.a[1], u.a[0], u.a[1]); printf ("\t expect [%f,%f]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-minsd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-minsd-1.c index 51441b42356..1d085a3043d 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-minsd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-minsd-1.c @@ -36,14 +36,13 @@ TEST (void) e[1] = s1.a[1]; if (check_union128d (u, e)) + { #if DEBUG - { printf ("sse2_test_minsd_3; check_union128d failed\n"); printf ("\t [%f,%f] + [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], s2.a[1], u.a[0], u.a[1]); printf ("\t expect [%f,%f]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-movmskpd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-movmskpd-1.c index 74b66b32a00..933412afadc 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-movmskpd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-movmskpd-1.c @@ -45,16 +45,13 @@ TEST (void) e |= 1 << 1; if (checkVi (&d, &e, 1)) + { #if DEBUG - { - printf ("sse2_test_movmskpd_1; check_union128d failed\n"); - printf ("\t [%f,%f] -> [%d]\n", - s1.a[0], s1.a[1], d); - printf ("\t expect [%d]\n", - e); - } -#else - abort (); + printf ("sse2_test_movmskpd_1; check_union128d failed\n"); + printf ("\t [%f,%f] -> [%d]\n", s1.a[0], s1.a[1], d); + printf ("\t expect [%d]\n", e); #endif + abort (); + } #endif } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-movq-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-movq-1.c index 54392ddb36c..1eaf2f39ea1 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-movq-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-movq-1.c @@ -33,14 +33,13 @@ TEST (void) e[0] = s1.a[0]; if (check_union128i_q (u, e)) + { #if DEBUG - { printf ("sse2_test_movq_1; check_union128i_q failed\n"); printf ("\t move_epi64 ([%llx, %llx]) -> [%llx, %llx]\n", s1.a[0], s1.a[1], u.a[0], u.a[1]); printf ("\t expect [%llx, %llx]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-movsd-3.c b/gcc/testsuite/gcc.target/powerpc/sse2-movsd-3.c index 6e7513dac4a..beb908dc755 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-movsd-3.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-movsd-3.c @@ -34,14 +34,13 @@ TEST (void) u.x = test (s1.x, s2.x); if (check_union128d (u, e)) + { #if DEBUG - { printf ("sse2_test_movsd_3; check_union128d failed\n"); printf ("\t [%f,%f], [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], s2.a[1], u.a[0], u.a[1]); printf ("\t expect [%f,%f]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-mulpd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-mulpd-1.c index 2700e068148..06adddd1458 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-mulpd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-mulpd-1.c @@ -36,14 +36,13 @@ TEST (void) e[1] = s1.a[1] * s2.a[1]; if (check_union128d (u, e)) + { #if DEBUG - { printf ("sse2_test_mul_pd_1; check_union128d failed\n"); printf ("\t [%f,%f] * [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], s2.a[1], u.a[0], u.a[1]); printf ("\t expect [%f,%f]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-mulsd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-mulsd-1.c index b284d9a6e43..02b50d0d445 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-mulsd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-mulsd-1.c @@ -36,14 +36,13 @@ TEST (void) e[1] = s1.a[1]; if (check_union128d (u, e)) + { #if DEBUG - { printf ("sse2_test_mul_sd_1; check_union128d failed\n"); printf ("\t [%f,%f] * [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], s2.a[1], u.a[0], u.a[1]); printf ("\t expect [%f,%f]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-packssdw-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-packssdw-1.c index 11a79f0a279..9fbc750df31 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-packssdw-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-packssdw-1.c @@ -55,18 +55,17 @@ TEST (void) } if (check_union128i_w (u, e)) + { #if DEBUG - { printf ("sse2_test_packssdw_1; check_union128i_w failed\n"); - printf ( - "\t ([%x,%x,%x,%x], [%x,%x,%x,%x]) -> [%x,%x,%x,%x, %x,%x,%x,%x]\n", - s1.a[0], s1.a[1], s1.a[2], s1.a[3], s2.a[0], s2.a[1], s2.a[2], - s2.a[3], u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], - u.a[7]); + printf ("\t ([%x,%x,%x,%x], [%x,%x,%x,%x])" + " -> [%x,%x,%x,%x, %x,%x,%x,%x]\n", + s1.a[0], s1.a[1], s1.a[2], s1.a[3], s2.a[0], s2.a[1], s2.a[2], + s2.a[3], u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], + u.a[7]); printf ("\t expect [%x,%x,%x,%x, %x,%x,%x,%x]\n", e[0], e[1], e[2], e[3], - e[4], e[5], e[6], e[7]); - } -#else - abort (); + e[4], e[5], e[6], e[7]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-packsswb-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-packsswb-1.c index ce5bf8d7dd8..ed09138f169 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-packsswb-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-packsswb-1.c @@ -55,8 +55,8 @@ TEST (void) } if (check_union128i_b (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_packsswb_1; check_union128i_w failed\n"); printf ("\t ([%x,%x,%x,%x, %x,%x,%x,%x], [%x,%x,%x,%x, %x,%x,%x,%x])\n", s1.a[0], s1.a[1], s1.a[2], s1.a[3], s1.a[4], s1.a[5], s1.a[6], @@ -66,12 +66,11 @@ TEST (void) u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7], u.a[8], u.a[9], u.a[10], u.a[11], u.a[12], u.a[13], u.a[14], u.a[15]); - printf ( - "\t expect [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x]\n", - e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], e[10], - e[11], e[12], e[13], e[14], e[15]); - } -#else - abort (); + printf ("\t expect [%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x]\n", + e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], + e[10], e[11], e[12], e[13], e[14], e[15]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-packuswb-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-packuswb-1.c index 2f08cdb2e96..3024e54e05f 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-packuswb-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-packuswb-1.c @@ -46,8 +46,8 @@ TEST (void) } if (check_union128i_ub (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_packuswb_1; check_union128i_w failed\n"); printf ("\t ([%x,%x,%x,%x, %x,%x,%x,%x], [%x,%x,%x,%x, %x,%x,%x,%x])\n", s1.a[0], s1.a[1], s1.a[2], s1.a[3], s1.a[4], s1.a[5], s1.a[6], @@ -57,12 +57,11 @@ TEST (void) u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7], u.a[8], u.a[9], u.a[10], u.a[11], u.a[12], u.a[13], u.a[14], u.a[15]); - printf ( - "\t expect [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x]\n", - e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], e[10], - e[11], e[12], e[13], e[14], e[15]); - } -#else - abort (); + printf ("\t expect [%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x]\n", + e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], + e[10], e[11], e[12], e[13], e[14], e[15]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-paddsb-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-paddsb-1.c index 29758a93fe5..3864185dbc9 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-paddsb-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-paddsb-1.c @@ -46,28 +46,27 @@ TEST (void) } if (check_union128i_b (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_paddsb_1; check_union128i_b failed\n"); - printf ( - "\tadds\t([%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x],\n", + printf ("\tadds\t([%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x],\n", s1.a[0], s1.a[1], s1.a[2], s1.a[3], s1.a[4], s1.a[5], s1.a[6], - s1.a[7], s1.a[8], s1.a[9], s1.a[10], s1.a[11], s1.a[12], s1.a[13], - s1.a[14], s1.a[15]); + s1.a[7], s1.a[8], s1.a[9], s1.a[10], s1.a[11], s1.a[12], + s1.a[13], s1.a[14], s1.a[15]); printf ("\t\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x])\n", s2.a[0], s2.a[1], s2.a[2], s2.a[3], s2.a[4], s2.a[5], s2.a[6], - s2.a[7], s2.a[8], s2.a[9], s2.a[10], s2.a[11], s2.a[12], s2.a[13], - s2.a[14], s2.a[15]); + s2.a[7], s2.a[8], s2.a[9], s2.a[10], s2.a[11], s2.a[12], + s2.a[13], s2.a[14], s2.a[15]); printf ("\t ->\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x]\n", u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7], u.a[8], u.a[9], u.a[10], u.a[11], u.a[12], u.a[13], u.a[14], u.a[15]); - printf ( - "\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x]\n", - e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], e[10], - e[11], e[12], e[13], e[14], e[15]); - } -#else - abort (); + printf ("\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x]\n", + e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], + e[10], e[11], e[12], e[13], e[14], e[15]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-paddsw-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-paddsw-1.c index 3603e6f868e..40e36650925 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-paddsw-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-paddsw-1.c @@ -46,8 +46,8 @@ TEST (void) } if (check_union128i_w (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_paddsw_1; check_union128i_w failed\n"); printf ("\tadds\t([%x,%x,%x,%x, %x,%x,%x,%x],\n", s1.a[0], s1.a[1], s1.a[2], s1.a[3], s1.a[4], s1.a[5], s1.a[6], s1.a[7]); @@ -55,10 +55,9 @@ TEST (void) s2.a[3], s2.a[4], s2.a[5], s2.a[6], s2.a[7]); printf ("\t ->\t [%x,%x,%x,%x, %x,%x,%x,%x]\n", u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7]); - printf ("\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x]\n", e[0], e[1], e[2], e[3], - e[4], e[5], e[6], e[7]); - } -#else - abort (); + printf ("\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x]\n", e[0], e[1], e[2], + e[3], e[4], e[5], e[6], e[7]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-paddusb-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-paddusb-1.c index d5bd18563d5..b7066094487 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-paddusb-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-paddusb-1.c @@ -46,28 +46,27 @@ TEST (void) } if (check_union128i_b (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_paddusb_1; check_union128i_b failed\n"); - printf ( - "\tadds\t([%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x],\n", + printf ("\tadds\t([%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x],\n", s1.a[0], s1.a[1], s1.a[2], s1.a[3], s1.a[4], s1.a[5], s1.a[6], - s1.a[7], s1.a[8], s1.a[9], s1.a[10], s1.a[11], s1.a[12], s1.a[13], - s1.a[14], s1.a[15]); + s1.a[7], s1.a[8], s1.a[9], s1.a[10], s1.a[11], s1.a[12], + s1.a[13], s1.a[14], s1.a[15]); printf ("\t\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x])\n", s2.a[0], s2.a[1], s2.a[2], s2.a[3], s2.a[4], s2.a[5], s2.a[6], - s2.a[7], s2.a[8], s2.a[9], s2.a[10], s2.a[11], s2.a[12], s2.a[13], - s2.a[14], s2.a[15]); + s2.a[7], s2.a[8], s2.a[9], s2.a[10], s2.a[11], s2.a[12], + s2.a[13], s2.a[14], s2.a[15]); printf ("\t ->\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x]\n", u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7], u.a[8], u.a[9], u.a[10], u.a[11], u.a[12], u.a[13], u.a[14], u.a[15]); - printf ( - "\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x]\n", - e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], e[10], - e[11], e[12], e[13], e[14], e[15]); - } -#else - abort (); + printf ("\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x]\n", + e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], + e[10], e[11], e[12], e[13], e[14], e[15]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-pmovmskb-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-pmovmskb-1.c index 6d5f7e85a7b..921cfe3dbd7 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-pmovmskb-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-pmovmskb-1.c @@ -40,17 +40,17 @@ TEST (void) e = e | (1< %x)\n", + printf ("\t ([%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x], -> %x)\n", s1.a[0], s1.a[1], s1.a[2], s1.a[3], s1.a[4], s1.a[5], s1.a[6], - s1.a[7], s1.a[8], s1.a[9], s1.a[10], s1.a[11], s1.a[12], s1.a[13], - s1.a[14], s1.a[15], u); + s1.a[7], s1.a[8], s1.a[9], s1.a[10], s1.a[11], s1.a[12], + s1.a[13], s1.a[14], s1.a[15], u); printf ("\t expect %x\n", e); - } -#else - abort (); #endif + abort (); + } #endif } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-pmulhw-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-pmulhw-1.c index 6495b0f4e7c..b15d2e2b87d 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-pmulhw-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-pmulhw-1.c @@ -41,8 +41,8 @@ TEST (void) } if (check_union128i_w (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_pmulhw_1; check_union128i_w failed\n"); printf ("\tmulhi\t([%x,%x,%x,%x, %x,%x,%x,%x],\n", s1.a[0], s1.a[1], s1.a[2], s1.a[3], s1.a[4], s1.a[5], s1.a[6], s1.a[7]); @@ -50,10 +50,9 @@ TEST (void) s2.a[3], s2.a[4], s2.a[5], s2.a[6], s2.a[7]); printf ("\t ->\t [%x,%x,%x,%x, %x,%x,%x,%x]\n", u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7]); - printf ("\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x]\n", e[0], e[1], e[2], e[3], - e[4], e[5], e[6], e[7]); - } -#else - abort (); + printf ("\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x]\n", e[0], e[1], e[2], + e[3], e[4], e[5], e[6], e[7]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-pmuludq-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-pmuludq-1.c index 4dc54cbe880..1e41d464b14 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-pmuludq-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-pmuludq-1.c @@ -38,15 +38,14 @@ TEST (void) e[1] = s1.a[2] * s2.a[2]; if (check_union128i_q (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_pmuludq_1; check_union128i_q failed\n"); printf ("\t ([%x,%x,%x,%x], [%x,%x,%x,%x], -> [%llx, %llx])\n", s1.a[0], s1.a[1], s1.a[2], s1.a[3], s2.a[0], s2.a[1], s2.a[2], s2.a[3], u.a[0], u.a[1]); printf ("\t expect [%llx, %llx]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-psadbw-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-psadbw-1.c index 4ac9109bbff..82b8230c599 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-psadbw-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-psadbw-1.c @@ -45,24 +45,23 @@ TEST (void) if (check_union128i_w (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_psadbw_1; check_union128i_w failed\n"); - printf ( - "\tadds\t([%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x],\n", + printf ("\tadds\t([%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x],\n", s1.a[0], s1.a[1], s1.a[2], s1.a[3], s1.a[4], s1.a[5], s1.a[6], - s1.a[7], s1.a[8], s1.a[9], s1.a[10], s1.a[11], s1.a[12], s1.a[13], - s1.a[14], s1.a[15]); + s1.a[7], s1.a[8], s1.a[9], s1.a[10], s1.a[11], s1.a[12], + s1.a[13], s1.a[14], s1.a[15]); printf ("\t\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x])\n", s2.a[0], s2.a[1], s2.a[2], s2.a[3], s2.a[4], s2.a[5], s2.a[6], - s2.a[7], s2.a[8], s2.a[9], s2.a[10], s2.a[11], s2.a[12], s2.a[13], - s2.a[14], s2.a[15]); + s2.a[7], s2.a[8], s2.a[9], s2.a[10], s2.a[11], s2.a[12], + s2.a[13], s2.a[14], s2.a[15]); printf ("\t ->\t [%x,%x,%x,%x, %x,%x,%x,%x]\n", u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7]); - printf ("\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x]\n", e[0], e[1], e[2], e[3], - e[4], e[5], e[6], e[7]); - } -#else - abort (); + printf ("\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x]\n", e[0], e[1], e[2], + e[3], e[4], e[5], e[6], e[7]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-pshufd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-pshufd-1.c index 73070b5222b..b8263bae031 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-pshufd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-pshufd-1.c @@ -37,14 +37,13 @@ TEST (void) e[i] = s1.a[((N & (0x3<<(2*i)))>>(2*i))]; if (check_union128i_d(u, e)) + { #if DEBUG - { printf ("sse2_test_pshufd_1; check_union128i_d failed\n"); printf ("\t ([%x,%x,%x,%x]) -> [%x,%x,%x,%x]\n", s1.a[0], s1.a[1], s1.a[2], s1.a[3], u.a[0], u.a[1], u.a[2], u.a[3]); printf ("\t expect [%x,%x,%x,%x]\n", e[0], e[1], e[2], e[3]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-pshufhw-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-pshufhw-1.c index 90b62c9474f..cee0d9f8f6d 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-pshufhw-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-pshufhw-1.c @@ -46,19 +46,18 @@ TEST (void) e[i+4] = (s1.a[1] >> (16 * m2[i])) & 0xffff; if (check_union128i_w(u, e)) + { #if DEBUG - { - union128i_w s; - s.x = s1.x; - printf ("sse2_test_pshufhw_1; check_union128i_w failed\n"); - printf ("\t ([%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx])\n", s.a[0], s.a[1], + union128i_w s; + s.x = s1.x; + printf ("sse2_test_pshufhw_1; check_union128i_w failed\n"); + printf ("\t ([%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx])\n", s.a[0], s.a[1], s.a[2], s.a[3], s.a[4], s.a[5], s.a[6], s.a[7]); - printf ("\t\t -> [%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx]\n", u.a[0], u.a[1], + printf ("\t\t -> [%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx]\n", u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7]); - printf ("\t expect [%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx]\n", e[0], e[1], + printf ("\t expect [%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx]\n", e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-pshuflw-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-pshuflw-1.c index 548e8bdf721..c7c357b9f05 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-pshuflw-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-pshuflw-1.c @@ -46,19 +46,18 @@ TEST (void) e[i] = (s1.a[0] >> (16 * m2[i])) & 0xffff; if (check_union128i_w(u, e)) + { #if DEBUG - { - union128i_w s; - s.x = s1.x; - printf ("sse2_test_pshuflw_1; check_union128i_w failed\n"); - printf ("\t ([%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx])\n", s.a[0], s.a[1], + union128i_w s; + s.x = s1.x; + printf ("sse2_test_pshuflw_1; check_union128i_w failed\n"); + printf ("\t ([%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx])\n", s.a[0], s.a[1], s.a[2], s.a[3], s.a[4], s.a[5], s.a[6], s.a[7]); - printf ("\t\t -> [%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx]\n", u.a[0], u.a[1], + printf ("\t\t -> [%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx]\n", u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7]); - printf ("\t expect [%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx]\n", e[0], e[1], + printf ("\t expect [%hx,%hx,%hx,%hx, %hx,%hx,%hx,%hx]\n", e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-pslld-2.c b/gcc/testsuite/gcc.target/powerpc/sse2-pslld-2.c index 88822b2ad3b..00a85963efd 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-pslld-2.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-pslld-2.c @@ -40,15 +40,14 @@ TEST (void) e[i] = s.a[i] << c.a[0]; if (check_union128i_d (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_pslld_2; check_union128i_d failed\n"); printf ("\tsll\t([%x,%x,%x,%x], [%llx,%llx]\n", s.a[0], s.a[1], s.a[2], s.a[3], c.a[0], c.a[1]); printf ("\t ->\t [%x,%x,%x,%x]\n", u.a[0], u.a[1], u.a[2], u.a[3]); printf ("\texpect\t [%x,%x,%x,%x]\n", e[0], e[1], e[2], e[3]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-pslldq-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-pslldq-1.c index 38cb15919bc..22a31d0e9bd 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-pslldq-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-pslldq-1.c @@ -41,24 +41,23 @@ TEST (void) e[i + N] = src[i]; if (check_union128i_b (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_pslldq_1; check_union128i_b failed\n"); - printf ("\t s ([%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x])\n", s.a[0], s.a[1], s.a[2], s.a[3], s.a[4], s.a[5], s.a[6], s.a[7], s.a[8], s.a[9], s.a[10], s.a[11], s.a[12], s.a[13], s.a[14], s.a[15]); - printf ( - "\t u ->\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x]\n", - u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7], - u.a[8], u.a[9], u.a[10], u.a[11], u.a[12], u.a[13], u.a[14], u.a[15]); - printf ( - "\t expect\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x]\n", - e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], e[10], - e[11], e[12], e[13], e[14], e[15]); - } -#else - abort (); + printf ("\t u ->\t [%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x]\n", + u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7], + u.a[8], u.a[9], u.a[10], u.a[11], u.a[12], u.a[13], u.a[14], + u.a[15]); + printf ("\t expect\t [%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x]\n", + e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], + e[10], e[11], e[12], e[13], e[14], e[15]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-psrld-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-psrld-1.c index 0edbf6f5dea..594cd15178c 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-psrld-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-psrld-1.c @@ -43,14 +43,13 @@ TEST (void) } if (check_union128i_d (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_psrld_1; check_union128i_d failed\n"); printf ("\tsrl\t([%x,%x,%x,%x],%d\n", s.a[0], s.a[1], s.a[2], s.a[3], N); printf ("\t ->\t [%x,%x,%x,%x]\n", u.a[0], u.a[1], u.a[2], u.a[3]); printf ("\texpect\t [%x,%x,%x,%x]\n", e[0], e[1], e[2], e[3]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-psrld-2.c b/gcc/testsuite/gcc.target/powerpc/sse2-psrld-2.c index 6c2e7a1dfef..083c09a7684 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-psrld-2.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-psrld-2.c @@ -44,15 +44,14 @@ TEST (void) } if (check_union128i_d (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_psrld_2; check_union128i_d failed\n"); printf ("\tsrld\t([%x,%x,%x,%x], [%llx,%llx]\n", s.a[0], s.a[1], s.a[2], s.a[3], c.a[0], c.a[1]); printf ("\t ->\t [%x,%x,%x,%x]\n", u.a[0], u.a[1], u.a[2], u.a[3]); printf ("\texpect\t [%x,%x,%x,%x]\n", e[0], e[1], e[2], e[3]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-psrldq-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-psrldq-1.c index 513f24190b4..41bfc4f6477 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-psrldq-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-psrldq-1.c @@ -39,10 +39,11 @@ TEST (void) e[i] = src[i+N]; if (check_union128i_b (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_psrldq_1; check_union128i_b failed\n"); - printf ("\tsrl\t([%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x],\n", + printf ("\tsrl\t([%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x],\n", s.a[0], s.a[1], s.a[2], s.a[3], s.a[4], s.a[5], s.a[6], s.a[7], s.a[8], s.a[9], s.a[10], s.a[11], s.a[12], s.a[13], s.a[14], s.a[15]); @@ -50,12 +51,11 @@ TEST (void) u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7], u.a[8], u.a[9], u.a[10], u.a[11], u.a[12], u.a[13], u.a[14], u.a[15]); - printf ( - "\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x]\n", - e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], e[10], - e[11], e[12], e[13], e[14], e[15]); - } -#else - abort (); + printf ("\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x]\n", + e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], + e[10], e[11], e[12], e[13], e[14], e[15]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-psubusb-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-psubusb-1.c index 71e6bf37993..b9efa6cd158 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-psubusb-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-psubusb-1.c @@ -46,28 +46,27 @@ TEST (void) } if (check_union128i_b (u, e)) -#if DEBUG { +#if DEBUG printf ("sse2_test_psubusb_1; check_union128i_b failed\n"); - printf ( - "\tadds\t([%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x],\n", + printf ("\tadds\t([%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x],\n", s1.a[0], s1.a[1], s1.a[2], s1.a[3], s1.a[4], s1.a[5], s1.a[6], - s1.a[7], s1.a[8], s1.a[9], s1.a[10], s1.a[11], s1.a[12], s1.a[13], - s1.a[14], s1.a[15]); + s1.a[7], s1.a[8], s1.a[9], s1.a[10], s1.a[11], s1.a[12], + s1.a[13], s1.a[14], s1.a[15]); printf ("\t\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x])\n", s2.a[0], s2.a[1], s2.a[2], s2.a[3], s2.a[4], s2.a[5], s2.a[6], - s2.a[7], s2.a[8], s2.a[9], s2.a[10], s2.a[11], s2.a[12], s2.a[13], - s2.a[14], s2.a[15]); + s2.a[7], s2.a[8], s2.a[9], s2.a[10], s2.a[11], s2.a[12], + s2.a[13], s2.a[14], s2.a[15]); printf ("\t ->\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x]\n", u.a[0], u.a[1], u.a[2], u.a[3], u.a[4], u.a[5], u.a[6], u.a[7], u.a[8], u.a[9], u.a[10], u.a[11], u.a[12], u.a[13], u.a[14], u.a[15]); - printf ( - "\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x, %x,%x,%x,%x]\n", - e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], e[10], - e[11], e[12], e[13], e[14], e[15]); - } -#else - abort (); + printf ("\texpect\t [%x,%x,%x,%x, %x,%x,%x,%x," + " %x,%x,%x,%x, %x,%x,%x,%x]\n", + e[0], e[1], e[2], e[3], e[4], e[5], e[6], e[7], e[8], e[9], + e[10], e[11], e[12], e[13], e[14], e[15]); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-sqrtpd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-sqrtpd-1.c index e0c1bb1191f..44dd42178e5 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-sqrtpd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-sqrtpd-1.c @@ -41,13 +41,12 @@ TEST (void) } if (check_union128d (u, e)) + { #if DEBUG - { printf ("sse2_test_sqrt_pd_1; check_union128d failed\n"); printf ("\t [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], u.a[0], u.a[1]); printf ("\t expect [%f,%f]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } } diff --git a/gcc/testsuite/gcc.target/powerpc/sse2-subsd-1.c b/gcc/testsuite/gcc.target/powerpc/sse2-subsd-1.c index 23c90aedcf9..7962bafeebb 100644 --- a/gcc/testsuite/gcc.target/powerpc/sse2-subsd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/sse2-subsd-1.c @@ -36,14 +36,13 @@ TEST (void) e[1] = s1.a[1]; if (check_union128d (u, e)) + { #if DEBUG - { printf ("sse2_test_subsd_1; check_union128d failed\n"); printf ("\t [%f,%f] - [%f,%f] -> [%f,%f]\n", s1.a[0], s1.a[1], s2.a[0], s2.a[1], u.a[0], u.a[1]); printf ("\t expect [%f,%f]\n", e[0], e[1]); - } -#else - abort (); #endif + abort (); + } }