public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/98093] New: ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276
@ 2020-12-02  7:46 marxin at gcc dot gnu.org
  2020-12-02  7:46 ` [Bug target/98093] " marxin at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-02  7:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98093

            Bug ID: 98093
           Summary: ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: segher at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-linux
            Target: ppc64le-linux-gnu

The following fails:

$ ppc64le-linux-gnu-gcc
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/uninit-pr78295.c -Ofast
--param=max-completely-peeled-insns=0 -fno-ivopts -c
during RTL pass: expand
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/uninit-pr78295.c: In function
‘f’:
/home/marxin/Programming/gcc/gcc/testsuite/gcc.dg/uninit-pr78295.c:11:10:
internal compiler error: in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276
   11 |     t[i] = x; /* { dg-bogus "uninitialized" } */
      |     ~~~~~^~~
0x5d77b8 gen_vsx_set_v2df(rtx_def*, rtx_def*, rtx_def*, rtx_def*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc/config/rs6000/vsx.md:3276
0xdcdc82 rs6000_expand_vector_set(rtx_def*, rtx_def*, rtx_def*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc/config/rs6000/rs6000.c:7000
0x10c6990 ???
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc/config/rs6000/vector.md:1251
0xa09b68 maybe_expand_insn(insn_code, unsigned int, expand_operand*)
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc/optabs.c:7705
0x8cddbc expand_vec_set_optab_fn
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc/internal-fn.c:2879
0x8cddbc expand_VEC_SET
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc/internal-fn.def:148
0x70ed87 expand_call_stmt
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc/cfgexpand.c:2740
0x70ed87 expand_gimple_stmt_1
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc/cfgexpand.c:3835
0x70ed87 expand_gimple_stmt
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc/cfgexpand.c:3999
0x7146b7 expand_gimple_basic_block
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc/cfgexpand.c:6040
0x7146b7 execute
       
/home/marxin/BIG/buildbot/buildworker/marxinbox-gcc-trunk-ppc64le/build/gcc/cfgexpand.c:6724
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug target/98093] ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276
  2020-12-02  7:46 [Bug target/98093] New: ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276 marxin at gcc dot gnu.org
@ 2020-12-02  7:46 ` marxin at gcc dot gnu.org
  2020-12-03  1:29 ` luoxhu at gcc dot gnu.org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-12-02  7:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98093

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-12-02
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

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

* [Bug target/98093] ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276
  2020-12-02  7:46 [Bug target/98093] New: ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276 marxin at gcc dot gnu.org
  2020-12-02  7:46 ` [Bug target/98093] " marxin at gcc dot gnu.org
@ 2020-12-03  1:29 ` luoxhu at gcc dot gnu.org
  2020-12-03  1:30 ` luoxhu at gcc dot gnu.org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: luoxhu at gcc dot gnu.org @ 2020-12-03  1:29 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98093

luoxhu at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |luoxhu at gcc dot gnu.org

--- Comment #1 from luoxhu at gcc dot gnu.org ---
Confirmed, I will fix it. 

Actually I have pending patch not committed yet. [PATCH 2/4] which generate
VIEW_CONVERT_EXPR is not committed, but V2DF VIEW_CONVERT_EXPR will be convert
to IFN VEC_SET in gimple-isel now which caused the ICE.

VIEW_CONVERT_EXPR<double[2]>(t)[i_12] = x_6(D);

(https://gcc.gnu.org/pipermail/gcc-patches/2020-October/555906.html)

IFN VEC_SET is not expanded on Power8 yet, [PATCH 3/4] could fix this. Need
Segher's approval.

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

* [Bug target/98093] ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276
  2020-12-02  7:46 [Bug target/98093] New: ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276 marxin at gcc dot gnu.org
  2020-12-02  7:46 ` [Bug target/98093] " marxin at gcc dot gnu.org
  2020-12-03  1:29 ` luoxhu at gcc dot gnu.org
@ 2020-12-03  1:30 ` luoxhu at gcc dot gnu.org
  2021-01-22 14:05 ` cvs-commit at gcc dot gnu.org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: luoxhu at gcc dot gnu.org @ 2020-12-03  1:30 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98093

--- Comment #2 from luoxhu at gcc dot gnu.org ---
https://gcc.gnu.org/pipermail/gcc-patches/2020-October/555907.html

[PATCH 3/4] rs6000: Enable vec_insert for P8 with
rs6000_expand_vector_set_var_p8

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

* [Bug target/98093] ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276
  2020-12-02  7:46 [Bug target/98093] New: ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2020-12-03  1:30 ` luoxhu at gcc dot gnu.org
@ 2021-01-22 14:05 ` cvs-commit at gcc dot gnu.org
  2021-02-01 11:31 ` asolokha at gmx dot com
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-01-22 14:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98093

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Xiong Hu Luo <luoxhu@gcc.gnu.org>:

https://gcc.gnu.org/g:e3a8ef8ef2ac077b393687624b09db6ab31c7746

commit r11-6858-ge3a8ef8ef2ac077b393687624b09db6ab31c7746
Author: Xionghu Luo <luoxhu@linux.ibm.com>
Date:   Thu Jan 21 21:03:28 2021 -0600

    rs6000: Enable vec_insert for P8 with rs6000_expand_vector_set_var_p8
[PR98093]

    Support P8 variable vec_insert and Update testcases' instruction count.

    gcc/ChangeLog:

    2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>

            PR target/98093

            * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
            Generate ARRAY_REF(VIEW_CONVERT_EXPR) for P8 and later
            platforms.
            * config/rs6000/rs6000.c (rs6000_expand_vector_set_var): Update
            to call different path for P8 and P9.
            (rs6000_expand_vector_set_var_p9): New function.
            (rs6000_expand_vector_set_var_p8): New function.

    gcc/testsuite/ChangeLog:

    2021-01-22  Xionghu Luo  <luoxhu@linux.ibm.com>

            * gcc.target/powerpc/pr79251.p8.c: New test.
            * gcc.target/powerpc/fold-vec-insert-char-p8.c: Adjust
            instruction counts.
            * gcc.target/powerpc/fold-vec-insert-char-p9.c: Likewise.
            * gcc.target/powerpc/fold-vec-insert-double.c: Likewise.
            * gcc.target/powerpc/fold-vec-insert-float-p8.c: Likewise.
            * gcc.target/powerpc/fold-vec-insert-float-p9.c: Likewise.
            * gcc.target/powerpc/fold-vec-insert-int-p8.c: Likewise.
            * gcc.target/powerpc/fold-vec-insert-int-p9.c: Likewise.
            * gcc.target/powerpc/fold-vec-insert-longlong.c: Likewise.
            * gcc.target/powerpc/fold-vec-insert-short-p8.c: Likewise.
            * gcc.target/powerpc/fold-vec-insert-short-p9.c: Likewise.
            * gcc.target/powerpc/vsx-builtin-7.c: Likewise.

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

* [Bug target/98093] ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276
  2020-12-02  7:46 [Bug target/98093] New: ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276 marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2021-01-22 14:05 ` cvs-commit at gcc dot gnu.org
@ 2021-02-01 11:31 ` asolokha at gmx dot com
  2021-02-01 14:49 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: asolokha at gmx dot com @ 2021-02-01 11:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98093

Arseny Solokha <asolokha at gmx dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asolokha at gmx dot com

--- Comment #4 from Arseny Solokha <asolokha at gmx dot com> ---
I cannot reproduce it w/ gcc-11.0.0-alpha20210131 snapshot
(g:98342bdd2b7085c9e7e4c9fbb07c3917a0013515). However, the issue is still
there.

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

* [Bug target/98093] ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276
  2020-12-02  7:46 [Bug target/98093] New: ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276 marxin at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2021-02-01 11:31 ` asolokha at gmx dot com
@ 2021-02-01 14:49 ` marxin at gcc dot gnu.org
  2021-02-02  1:07 ` segher at gcc dot gnu.org
  2021-02-02  3:24 ` luoxhu at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-02-01 14:49 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98093

--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
It's fixed on master, can we close it now or do we need a backport to active
branches?

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

* [Bug target/98093] ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276
  2020-12-02  7:46 [Bug target/98093] New: ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276 marxin at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2021-02-01 14:49 ` marxin at gcc dot gnu.org
@ 2021-02-02  1:07 ` segher at gcc dot gnu.org
  2021-02-02  3:24 ` luoxhu at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: segher at gcc dot gnu.org @ 2021-02-02  1:07 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98093

--- Comment #6 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #5)
> It's fixed on master, can we close it now or do we need a backport to active
> branches?

If someone filled in the known-to-work / known-to-fail fields we would know!

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

* [Bug target/98093] ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276
  2020-12-02  7:46 [Bug target/98093] New: ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276 marxin at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2021-02-02  1:07 ` segher at gcc dot gnu.org
@ 2021-02-02  3:24 ` luoxhu at gcc dot gnu.org
  7 siblings, 0 replies; 9+ messages in thread
From: luoxhu at gcc dot gnu.org @ 2021-02-02  3:24 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98093

luoxhu at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #7 from luoxhu at gcc dot gnu.org ---
Fixed.

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

end of thread, other threads:[~2021-02-02  3:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-02  7:46 [Bug target/98093] New: ICE in gen_vsx_set_v2df, at config/rs6000/vsx.md:3276 marxin at gcc dot gnu.org
2020-12-02  7:46 ` [Bug target/98093] " marxin at gcc dot gnu.org
2020-12-03  1:29 ` luoxhu at gcc dot gnu.org
2020-12-03  1:30 ` luoxhu at gcc dot gnu.org
2021-01-22 14:05 ` cvs-commit at gcc dot gnu.org
2021-02-01 11:31 ` asolokha at gmx dot com
2021-02-01 14:49 ` marxin at gcc dot gnu.org
2021-02-02  1:07 ` segher at gcc dot gnu.org
2021-02-02  3:24 ` luoxhu at gcc dot gnu.org

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