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

--- Comment #11 from rguenther at suse dot de <rguenther at suse dot de> ---
On Tue, 20 Aug 2019, asolokha at gmx dot com wrote:

> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91498
> 
> Arseny Solokha <asolokha at gmx dot com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |asolokha at gmx dot com
> 
> --- Comment #9 from Arseny Solokha <asolokha at gmx dot com> ---
> (In reply to H.J. Lu from comment #7)
> > Our SPEC CPU 2017 failed with
> > 
> >  39 util.c:205:1: error: invalid rtl sharing found in the insn
> >  40   205 | }
> >  41       | ^
> >  42 (insn 29 28 3 2 (set (subreg:V2DI (reg:DI 91) 0)
> >  43         (vec_concat:V2DI (mem/c:DI (plus:DI (reg/f:DI 19 frame)
> >  44                     (const_int -8 [0xfffffffffffffff8])) [0  S8 A64])
> >  45             (const_int 0 [0]))) "util.c":134:1 -1
> >  46      (nil))
> >  47 util.c:205:1: error: shared rtx
> >  48 (mem/c:DI (plus:DI (reg/f:DI 19 frame)
> >  49         (const_int -8 [0xfffffffffffffff8])) [0  S8 A64])
> >  50 during RTL pass: stv
> > 
> > We have an invalid shared rtx.
> 
> And the testcase is as simple as:
> 
> int
> ff (int jn)
> {
>   return jn > 0 ? jn : 0;
> }
> 
> % x86_64-unknown-linux-gnu-gcc-10.0.0-alpha20190818 -march=nano-3000 -Os -c
> f9272pqv.c
> f9272pqv.c: In function 'ff':
> f9272pqv.c:5:1: error: invalid rtl sharing found in the insn
>     5 | }
>       | ^
> (insn 18 17 3 2 (set (subreg:V4SI (reg:SI 87) 0)
>         (vec_merge:V4SI (vec_duplicate:V4SI (mem/c:SI (plus:DI (reg/f:DI 19
> frame)
>                         (const_int -4 [0xfffffffffffffffc])) [0  S4 A32]))
>             (const_vector:V4SI [
>                     (const_int 0 [0]) repeated x4
>                 ])
>             (const_int 1 [0x1]))) "f9272pqv.c":3:1 -1
>      (nil))

I have a patch.

Reply via email to