public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at config/i386/i386.cc:19460
@ 2023-08-06 18:08 Toon Moene
  2023-08-07  1:35 ` Hongtao Liu
  0 siblings, 1 reply; 5+ messages in thread
From: Toon Moene @ 2023-08-06 18:08 UTC (permalink / raw)
  To: gcc mailing list

Wonder if I am the only one to see this:

https://gcc.gnu.org/pipermail/gcc-testresults/2023-August/792616.html

To quote:

during RTL pass: split1
/home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c: In function 
'matmul_i1_avx512f':
/home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1: 
internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 
'w' (rtx const_int) in vpternlog_redundant_operand_mask, at 
config/i386/i386.cc:19460
  1781 | }
       | ^
during RTL pass: split1
/home/toon/compilers/gcc/libgfortran/generated/matmul_i2.c: In function 
'matmul_i2_avx512f':
/home/toon/compilers/gcc/libgfortran/generated/matmul_i2.c:1781:1: 
internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 
'w' (rtx const_int) in vpternlog_redundant_operand_mask, at 
config/i386/i386.cc:19460
  1781 | }
       | ^
0x7a5cc7 rtl_check_failed_type2(rtx_def const*, int, int, int, char 
const*, int, char const*)
	/home/toon/compilers/gcc/gcc/rtl.cc:761
0x82bf8d vpternlog_redundant_operand_mask(rtx_def**)
	/home/toon/compilers/gcc/gcc/config/i386/i386.cc:19460
0x1f1295b split_44
	/home/toon/compilers/gcc/gcc/config/i386/sse.md:12730
0x1f1295b split_63
	/home/toon/compilers/gcc/gcc/config/i386/sse.md:28428
0xe7663b try_split(rtx_def*, rtx_insn*, int)
	/home/toon/compilers/gcc/gcc/emit-rtl.cc:3800
0xe76cff try_split(rtx_def*, rtx_insn*, int)
	/home/toon/compilers/gcc/gcc/emit-rtl.cc:3972
0x11b2938 split_insn
	/home/toon/compilers/gcc/gcc/recog.cc:3385
0x11b2eff split_all_insns()
	/home/toon/compilers/gcc/gcc/recog.cc:3489
0x11dd9c8 execute
	/home/toon/compilers/gcc/gcc/recog.cc:4413
Please submit a full bug report, with preprocessed source (by using 
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
make[3]: *** [Makefile:4584: matmul_i1.lo] Error 1
make[3]: *** Waiting for unfinished jobs....

-- 
Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at config/i386/i386.cc:19460
  2023-08-06 18:08 /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at config/i386/i386.cc:19460 Toon Moene
@ 2023-08-07  1:35 ` Hongtao Liu
  2023-08-07  1:38   ` Hongtao Liu
  0 siblings, 1 reply; 5+ messages in thread
From: Hongtao Liu @ 2023-08-07  1:35 UTC (permalink / raw)
  To: Toon Moene; +Cc: gcc mailing list, Yan Simonaytes

On Mon, Aug 7, 2023 at 2:08 AM Toon Moene <toon@moene.org> wrote:
>
> Wonder if I am the only one to see this:
>
> https://gcc.gnu.org/pipermail/gcc-testresults/2023-August/792616.html
>
> To quote:
>
> during RTL pass: split1
> /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c: In function
> 'matmul_i1_avx512f':
> /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1:
> internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have
> 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at
> config/i386/i386.cc:19460
>   1781 | }
>        | ^
> during RTL pass: split1
> /home/toon/compilers/gcc/libgfortran/generated/matmul_i2.c: In function
> 'matmul_i2_avx512f':
> /home/toon/compilers/gcc/libgfortran/generated/matmul_i2.c:1781:1:
> internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have
> 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at
> config/i386/i386.cc:19460
>   1781 | }
>        | ^
> 0x7a5cc7 rtl_check_failed_type2(rtx_def const*, int, int, int, char
> const*, int, char const*)
>         /home/toon/compilers/gcc/gcc/rtl.cc:761
> 0x82bf8d vpternlog_redundant_operand_mask(rtx_def**)
>         /home/toon/compilers/gcc/gcc/config/i386/i386.cc:19460
> 0x1f1295b split_44
>         /home/toon/compilers/gcc/gcc/config/i386/sse.md:12730
> 0x1f1295b split_63
>         /home/toon/compilers/gcc/gcc/config/i386/sse.md:28428
> 0xe7663b try_split(rtx_def*, rtx_insn*, int)
>         /home/toon/compilers/gcc/gcc/emit-rtl.cc:3800
> 0xe76cff try_split(rtx_def*, rtx_insn*, int)
>         /home/toon/compilers/gcc/gcc/emit-rtl.cc:3972
> 0x11b2938 split_insn
>         /home/toon/compilers/gcc/gcc/recog.cc:3385
> 0x11b2eff split_all_insns()
>         /home/toon/compilers/gcc/gcc/recog.cc:3489
> 0x11dd9c8 execute
>         /home/toon/compilers/gcc/gcc/recog.cc:4413
> Please submit a full bug report, with preprocessed source (by using
> -freport-bug).
> Please include the complete backtrace with any bug report.
> See <https://gcc.gnu.org/bugs/> for instructions.
> make[3]: *** [Makefile:4584: matmul_i1.lo] Error 1
> make[3]: *** Waiting for unfinished jobs....
>
> --
> Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
> Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands

Looks like related to

https://gcc.gnu.org/g:567d06bb357a39ece865cef67ada44124f227e45

commit r14-2999-g567d06bb357a39ece865cef67ada44124f227e45
Author: Yan Simonaytes <simonaytes.yan@ispras.ru>
Date:   Tue Jul 25 20:43:19 2023 +0300

    i386: eliminate redundant operands of VPTERNLOG

    As mentioned in PR 110202, GCC may be presented with input where control
    word of the VPTERNLOG intrinsic implies that some of its operands do not
    affect the result.  In that case, we can eliminate redundant operands
    of the instruction by substituting any other operand in their place.
    This removes false dependencies.


-- 
BR,
Hongtao

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at config/i386/i386.cc:19460
  2023-08-07  1:35 ` Hongtao Liu
@ 2023-08-07  1:38   ` Hongtao Liu
  2023-08-07  2:39     ` Hongtao Liu
  0 siblings, 1 reply; 5+ messages in thread
From: Hongtao Liu @ 2023-08-07  1:38 UTC (permalink / raw)
  To: Toon Moene; +Cc: gcc mailing list, Yan Simonaytes

On Mon, Aug 7, 2023 at 9:35 AM Hongtao Liu <crazylht@gmail.com> wrote:
>
> On Mon, Aug 7, 2023 at 2:08 AM Toon Moene <toon@moene.org> wrote:
> >
> > Wonder if I am the only one to see this:
> >
> > https://gcc.gnu.org/pipermail/gcc-testresults/2023-August/792616.html
Could you share your GCC configure, I guess
--enable-checking=yes,rtl,extra is key to reproduce the issue?
> >
> > To quote:
> >
> > during RTL pass: split1
> > /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c: In function
> > 'matmul_i1_avx512f':
> > /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1:
> > internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have
> > 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at
> > config/i386/i386.cc:19460
> >   1781 | }
> >        | ^
> > during RTL pass: split1
> > /home/toon/compilers/gcc/libgfortran/generated/matmul_i2.c: In function
> > 'matmul_i2_avx512f':
> > /home/toon/compilers/gcc/libgfortran/generated/matmul_i2.c:1781:1:
> > internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have
> > 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at
> > config/i386/i386.cc:19460
> >   1781 | }
> >        | ^
> > 0x7a5cc7 rtl_check_failed_type2(rtx_def const*, int, int, int, char
> > const*, int, char const*)
> >         /home/toon/compilers/gcc/gcc/rtl.cc:761
> > 0x82bf8d vpternlog_redundant_operand_mask(rtx_def**)
> >         /home/toon/compilers/gcc/gcc/config/i386/i386.cc:19460
> > 0x1f1295b split_44
> >         /home/toon/compilers/gcc/gcc/config/i386/sse.md:12730
> > 0x1f1295b split_63
> >         /home/toon/compilers/gcc/gcc/config/i386/sse.md:28428
> > 0xe7663b try_split(rtx_def*, rtx_insn*, int)
> >         /home/toon/compilers/gcc/gcc/emit-rtl.cc:3800
> > 0xe76cff try_split(rtx_def*, rtx_insn*, int)
> >         /home/toon/compilers/gcc/gcc/emit-rtl.cc:3972
> > 0x11b2938 split_insn
> >         /home/toon/compilers/gcc/gcc/recog.cc:3385
> > 0x11b2eff split_all_insns()
> >         /home/toon/compilers/gcc/gcc/recog.cc:3489
> > 0x11dd9c8 execute
> >         /home/toon/compilers/gcc/gcc/recog.cc:4413
> > Please submit a full bug report, with preprocessed source (by using
> > -freport-bug).
> > Please include the complete backtrace with any bug report.
> > See <https://gcc.gnu.org/bugs/> for instructions.
> > make[3]: *** [Makefile:4584: matmul_i1.lo] Error 1
> > make[3]: *** Waiting for unfinished jobs....
> >
> > --
> > Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
> > Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
>
> Looks like related to
>
> https://gcc.gnu.org/g:567d06bb357a39ece865cef67ada44124f227e45
>
> commit r14-2999-g567d06bb357a39ece865cef67ada44124f227e45
> Author: Yan Simonaytes <simonaytes.yan@ispras.ru>
> Date:   Tue Jul 25 20:43:19 2023 +0300
>
>     i386: eliminate redundant operands of VPTERNLOG
>
>     As mentioned in PR 110202, GCC may be presented with input where control
>     word of the VPTERNLOG intrinsic implies that some of its operands do not
>     affect the result.  In that case, we can eliminate redundant operands
>     of the instruction by substituting any other operand in their place.
>     This removes false dependencies.
>
>
> --
> BR,
> Hongtao



-- 
BR,
Hongtao

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at config/i386/i386.cc:19460
  2023-08-07  1:38   ` Hongtao Liu
@ 2023-08-07  2:39     ` Hongtao Liu
  2023-08-07  2:54       ` Andrew Pinski
  0 siblings, 1 reply; 5+ messages in thread
From: Hongtao Liu @ 2023-08-07  2:39 UTC (permalink / raw)
  To: Toon Moene; +Cc: gcc mailing list, Yan Simonaytes

On Mon, Aug 7, 2023 at 9:38 AM Hongtao Liu <crazylht@gmail.com> wrote:
>
> On Mon, Aug 7, 2023 at 9:35 AM Hongtao Liu <crazylht@gmail.com> wrote:
> >
> > On Mon, Aug 7, 2023 at 2:08 AM Toon Moene <toon@moene.org> wrote:
> > >
> > > Wonder if I am the only one to see this:
> > >
> > > https://gcc.gnu.org/pipermail/gcc-testresults/2023-August/792616.html
> Could you share your GCC configure, I guess
> --enable-checking=yes,rtl,extra is key to reproduce the issue?
Reproduce with  --with-cpu=native --with-arch=native
---enable-checking=yes,rtl,extra on an AVX512 machine.
So on non-avx512 machine --with-cpu=cascadelake
--with-arch=cascadelake --enable-checking=yes,rtl,extra should be
enough.
> > >
> > > To quote:
> > >
> > > during RTL pass: split1
> > > /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c: In function
> > > 'matmul_i1_avx512f':
> > > /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1:
> > > internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have
> > > 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at
> > > config/i386/i386.cc:19460
> > >   1781 | }
> > >        | ^
> > > during RTL pass: split1
> > > /home/toon/compilers/gcc/libgfortran/generated/matmul_i2.c: In function
> > > 'matmul_i2_avx512f':
> > > /home/toon/compilers/gcc/libgfortran/generated/matmul_i2.c:1781:1:
> > > internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have
> > > 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at
> > > config/i386/i386.cc:19460
> > >   1781 | }
> > >        | ^
> > > 0x7a5cc7 rtl_check_failed_type2(rtx_def const*, int, int, int, char
> > > const*, int, char const*)
> > >         /home/toon/compilers/gcc/gcc/rtl.cc:761
> > > 0x82bf8d vpternlog_redundant_operand_mask(rtx_def**)
> > >         /home/toon/compilers/gcc/gcc/config/i386/i386.cc:19460
> > > 0x1f1295b split_44
> > >         /home/toon/compilers/gcc/gcc/config/i386/sse.md:12730
> > > 0x1f1295b split_63
> > >         /home/toon/compilers/gcc/gcc/config/i386/sse.md:28428
> > > 0xe7663b try_split(rtx_def*, rtx_insn*, int)
> > >         /home/toon/compilers/gcc/gcc/emit-rtl.cc:3800
> > > 0xe76cff try_split(rtx_def*, rtx_insn*, int)
> > >         /home/toon/compilers/gcc/gcc/emit-rtl.cc:3972
> > > 0x11b2938 split_insn
> > >         /home/toon/compilers/gcc/gcc/recog.cc:3385
> > > 0x11b2eff split_all_insns()
> > >         /home/toon/compilers/gcc/gcc/recog.cc:3489
> > > 0x11dd9c8 execute
> > >         /home/toon/compilers/gcc/gcc/recog.cc:4413
> > > Please submit a full bug report, with preprocessed source (by using
> > > -freport-bug).
> > > Please include the complete backtrace with any bug report.
> > > See <https://gcc.gnu.org/bugs/> for instructions.
> > > make[3]: *** [Makefile:4584: matmul_i1.lo] Error 1
> > > make[3]: *** Waiting for unfinished jobs....
> > >
> > > --
> > > Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
> > > Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
> >
> > Looks like related to
> >
> > https://gcc.gnu.org/g:567d06bb357a39ece865cef67ada44124f227e45
> >
> > commit r14-2999-g567d06bb357a39ece865cef67ada44124f227e45
> > Author: Yan Simonaytes <simonaytes.yan@ispras.ru>
> > Date:   Tue Jul 25 20:43:19 2023 +0300
> >
> >     i386: eliminate redundant operands of VPTERNLOG
> >
> >     As mentioned in PR 110202, GCC may be presented with input where control
> >     word of the VPTERNLOG intrinsic implies that some of its operands do not
> >     affect the result.  In that case, we can eliminate redundant operands
> >     of the instruction by substituting any other operand in their place.
> >     This removes false dependencies.
> >
> >
> > --
> > BR,
> > Hongtao
>
>
>
> --
> BR,
> Hongtao



-- 
BR,
Hongtao

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at config/i386/i386.cc:19460
  2023-08-07  2:39     ` Hongtao Liu
@ 2023-08-07  2:54       ` Andrew Pinski
  0 siblings, 0 replies; 5+ messages in thread
From: Andrew Pinski @ 2023-08-07  2:54 UTC (permalink / raw)
  To: Hongtao Liu; +Cc: Toon Moene, gcc mailing list, Yan Simonaytes

On Sun, Aug 6, 2023 at 7:41 PM Hongtao Liu via Gcc <gcc@gcc.gnu.org> wrote:
>
> On Mon, Aug 7, 2023 at 9:38 AM Hongtao Liu <crazylht@gmail.com> wrote:
> >
> > On Mon, Aug 7, 2023 at 9:35 AM Hongtao Liu <crazylht@gmail.com> wrote:
> > >
> > > On Mon, Aug 7, 2023 at 2:08 AM Toon Moene <toon@moene.org> wrote:
> > > >
> > > > Wonder if I am the only one to see this:
> > > >
> > > > https://gcc.gnu.org/pipermail/gcc-testresults/2023-August/792616.html
> > Could you share your GCC configure, I guess
> > --enable-checking=yes,rtl,extra is key to reproduce the issue?
> Reproduce with  --with-cpu=native --with-arch=native
> ---enable-checking=yes,rtl,extra on an AVX512 machine.
> So on non-avx512 machine --with-cpu=cascadelake
> --with-arch=cascadelake --enable-checking=yes,rtl,extra should be
> enough.

Also filed as https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110926 .

Thanks,
Andrew

> > > >
> > > > To quote:
> > > >
> > > > during RTL pass: split1
> > > > /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c: In function
> > > > 'matmul_i1_avx512f':
> > > > /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1:
> > > > internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have
> > > > 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at
> > > > config/i386/i386.cc:19460
> > > >   1781 | }
> > > >        | ^
> > > > during RTL pass: split1
> > > > /home/toon/compilers/gcc/libgfortran/generated/matmul_i2.c: In function
> > > > 'matmul_i2_avx512f':
> > > > /home/toon/compilers/gcc/libgfortran/generated/matmul_i2.c:1781:1:
> > > > internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have
> > > > 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at
> > > > config/i386/i386.cc:19460
> > > >   1781 | }
> > > >        | ^
> > > > 0x7a5cc7 rtl_check_failed_type2(rtx_def const*, int, int, int, char
> > > > const*, int, char const*)
> > > >         /home/toon/compilers/gcc/gcc/rtl.cc:761
> > > > 0x82bf8d vpternlog_redundant_operand_mask(rtx_def**)
> > > >         /home/toon/compilers/gcc/gcc/config/i386/i386.cc:19460
> > > > 0x1f1295b split_44
> > > >         /home/toon/compilers/gcc/gcc/config/i386/sse.md:12730
> > > > 0x1f1295b split_63
> > > >         /home/toon/compilers/gcc/gcc/config/i386/sse.md:28428
> > > > 0xe7663b try_split(rtx_def*, rtx_insn*, int)
> > > >         /home/toon/compilers/gcc/gcc/emit-rtl.cc:3800
> > > > 0xe76cff try_split(rtx_def*, rtx_insn*, int)
> > > >         /home/toon/compilers/gcc/gcc/emit-rtl.cc:3972
> > > > 0x11b2938 split_insn
> > > >         /home/toon/compilers/gcc/gcc/recog.cc:3385
> > > > 0x11b2eff split_all_insns()
> > > >         /home/toon/compilers/gcc/gcc/recog.cc:3489
> > > > 0x11dd9c8 execute
> > > >         /home/toon/compilers/gcc/gcc/recog.cc:4413
> > > > Please submit a full bug report, with preprocessed source (by using
> > > > -freport-bug).
> > > > Please include the complete backtrace with any bug report.
> > > > See <https://gcc.gnu.org/bugs/> for instructions.
> > > > make[3]: *** [Makefile:4584: matmul_i1.lo] Error 1
> > > > make[3]: *** Waiting for unfinished jobs....
> > > >
> > > > --
> > > > Toon Moene - e-mail: toon@moene.org - phone: +31 346 214290
> > > > Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
> > >
> > > Looks like related to
> > >
> > > https://gcc.gnu.org/g:567d06bb357a39ece865cef67ada44124f227e45
> > >
> > > commit r14-2999-g567d06bb357a39ece865cef67ada44124f227e45
> > > Author: Yan Simonaytes <simonaytes.yan@ispras.ru>
> > > Date:   Tue Jul 25 20:43:19 2023 +0300
> > >
> > >     i386: eliminate redundant operands of VPTERNLOG
> > >
> > >     As mentioned in PR 110202, GCC may be presented with input where control
> > >     word of the VPTERNLOG intrinsic implies that some of its operands do not
> > >     affect the result.  In that case, we can eliminate redundant operands
> > >     of the instruction by substituting any other operand in their place.
> > >     This removes false dependencies.
> > >
> > >
> > > --
> > > BR,
> > > Hongtao
> >
> >
> >
> > --
> > BR,
> > Hongtao
>
>
>
> --
> BR,
> Hongtao

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-08-07  2:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-06 18:08 /home/toon/compilers/gcc/libgfortran/generated/matmul_i1.c:1781:1: internal compiler error: RTL check: expected elt 0 type 'i' or 'n', have 'w' (rtx const_int) in vpternlog_redundant_operand_mask, at config/i386/i386.cc:19460 Toon Moene
2023-08-07  1:35 ` Hongtao Liu
2023-08-07  1:38   ` Hongtao Liu
2023-08-07  2:39     ` Hongtao Liu
2023-08-07  2:54       ` Andrew Pinski

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).