* [PATCH, rs6000] fold-vec testcase fix-ups
@ 2017-08-10 13:39 Will Schmidt
2017-08-10 14:09 ` Segher Boessenkool
0 siblings, 1 reply; 2+ messages in thread
From: Will Schmidt @ 2017-08-10 13:39 UTC (permalink / raw)
To: GCC Patches; +Cc: Segher Boessenkool, Bill Schmidt
Hi,
A testcase coverage issue and an obvious typo fix.
Mostly obvious,.. OK for trunk?
Thanks,
-Will
[gcc/testsuite]
2017-08-10 Will Schmidt <will_schmidt@vnet.ibm.com>
* gcc.target/powerpc/fold-vec-msum-short.c: Fix typo.
* gcc.target/powerpc/fold-vec/pack-longlong.c: Mark for 64-bit only.
diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-msum-short.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-msum-short.c
index 61e1d35..2e590ab 100644
--- a/gcc/testsuite/gcc.target/powerpc/fold-vec-msum-short.c
+++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-msum-short.c
@@ -13,11 +13,11 @@ test_msum_si (vector signed short vss2, vector signed short vss3,
{
return vec_msum (vss2, vss3, vsi2);
}
vector unsigned int
-test_msum)ui (vector unsigned short vus2, vector unsigned short vus3,
+test_msum_ui (vector unsigned short vus2, vector unsigned short vus3,
vector unsigned int vui2)
{
return vec_msum (vus2, vus3, vui2);
}
diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-pack-longlong.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-pack-longlong.c
index d8acc3c..73131bb 100644
--- a/gcc/testsuite/gcc.target/powerpc/fold-vec-pack-longlong.c
+++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-pack-longlong.c
@@ -1,9 +1,9 @@
/* Verify that overloaded built-ins for vec_pack with long long
inputs produce the right results. */
-/* { dg-do compile } */
+/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
/* { dg-require-effective-target powerpc_p8vector_ok } */
/* { dg-options "-mvsx -mpower8-vector -O2" } */
#include <altivec.h>
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH, rs6000] fold-vec testcase fix-ups
2017-08-10 13:39 [PATCH, rs6000] fold-vec testcase fix-ups Will Schmidt
@ 2017-08-10 14:09 ` Segher Boessenkool
0 siblings, 0 replies; 2+ messages in thread
From: Segher Boessenkool @ 2017-08-10 14:09 UTC (permalink / raw)
To: Will Schmidt; +Cc: GCC Patches, Bill Schmidt
On Thu, Aug 10, 2017 at 08:27:17AM -0500, Will Schmidt wrote:
> A testcase coverage issue and an obvious typo fix.
>
> Mostly obvious,.. OK for trunk?
Yes; one comment:
> diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-pack-longlong.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-pack-longlong.c
> index d8acc3c..73131bb 100644
> --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-pack-longlong.c
> +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-pack-longlong.c
> @@ -1,9 +1,9 @@
> /* Verify that overloaded built-ins for vec_pack with long long
> inputs produce the right results. */
>
> -/* { dg-do compile } */
> +/* { dg-do compile { target { powerpc*-*-* && lp64 } } } */
> /* { dg-require-effective-target powerpc_p8vector_ok } */
> /* { dg-options "-mvsx -mpower8-vector -O2" } */
You can just say
/* { dg-do compile { target lp64 } } */
(make sure to test before you commit :-) )
Segher
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-08-10 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-10 13:39 [PATCH, rs6000] fold-vec testcase fix-ups Will Schmidt
2017-08-10 14:09 ` Segher Boessenkool
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).