This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] PR target/78748: S/390: Fix ICE with ANDC splitter.
- From: Jakub Jelinek <jakub at redhat dot com>
- To: vogt at linux dot vnet dot ibm dot com, gcc-patches at gcc dot gnu dot org, Andreas Krebbel <krebbel at linux dot vnet dot ibm dot com>
- Date: Mon, 12 Dec 2016 15:50:14 +0100
- Subject: Re: [PATCH] PR target/78748: S/390: Fix ICE with ANDC splitter.
- Authentication-results: sourceware.org; auth=none
- References: <20161212143601.GA2136@linux.vnet.ibm.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Dec 12, 2016 at 03:36:01PM +0100, Dominik Vogt wrote:
> diff --git a/gcc/testsuite/gcc.c-torture/compile/pr78748.c b/gcc/testsuite/gcc.c-torture/compile/pr78748.c
> new file mode 100644
> index 0000000..d24a334
> --- /dev/null
> +++ b/gcc/testsuite/gcc.c-torture/compile/pr78748.c
> @@ -0,0 +1,16 @@
> +/* PR target/78748 */
> +/* { dg-options "-march=zEC12" { target { s390*-*-* } } } */
> +
> +void
> +foo (int *p, int *q)
> +{
> + *q = *p & ~*q;
> +}
> +
> +#if 0 /*!!!*/
> +void
> +bar (int *p, int *q)
> +{
> + *q = ~*p & *q;
> +}
> +#endif
Why the #if 0 /*!!!*/? The test just verifies the compiler doesn't ICE
and stuff assembles, I'd hope bar also compiles and assembles.
Jakub