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

            Bug ID: 78614
           Summary: [7 Regression] ICE error: invalid rtl sharing found in
                    the insn (verify_rtx_sharing) gcc/emit-rtl.c:2743
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---
              Host: powerpc64le-unknown-linux-gnu
            Target: powerpc64le-unknown-linux-gnu
             Build: powerpc64le-unknown-linux-gnu

$ cat tc.ii
int a, b;
void fn1(__float128 p1) { b = p1 - a; }

$ /home/marxin/Programming/gcc/objdir/./gcc/xgcc
-B/home/marxin/Programming/gcc/objdir/./gcc/   -mfloat128 tc.ii -O2
tc.ii: In function ‘void fn1(__float128)’:
tc.ii:2:39: error: invalid rtl sharing found in the insn
 void fn1(__float128 p1) { b = p1 - a; }
                                       ^
(insn/f 31 30 32 2 (parallel [
            (set (mem/c:V4SI (plus:DI (reg/f:DI 1 1)
                        (reg:DI 0 0)) [2  S16 A8])
                (reg:V4SI 108 31))
            (unspec [
                    (const_int 0 [0])
                ] UNSPEC_STVX)
        ]) "tc.ii":2 -1
     (expr_list:REG_FRAME_RELATED_EXPR (parallel [
                (set/f (mem/c:V4SI (plus:DI (reg/f:DI 1 1)
                            (const_int 32 [0x20])) [2  S16 A8])
                    (reg:V4SI 108 31))
                (unspec [
                        (const_int 0 [0])
                    ] UNSPEC_STVX)
            ])
        (nil)))
tc.ii:2:39: error: shared rtx
(unspec [
        (const_int 0 [0])
    ] UNSPEC_STVX)
tc.ii:2:39: internal compiler error: internal consistency failure
0x10a7f267 verify_rtx_sharing
        ../../gcc/emit-rtl.c:2743
0x10a7f473 verify_rtx_sharing
        ../../gcc/emit-rtl.c:2776
0x10a7f323 verify_rtx_sharing
        ../../gcc/emit-rtl.c:2758
0x10a7f877 verify_insn_sharing
        ../../gcc/emit-rtl.c:2830
0x10a7f977 verify_rtl_sharing()
        ../../gcc/emit-rtl.c:2852
0x10f56d6b execute_function_todo
        ../../gcc/passes.c:1982
0x10f55423 do_per_function
        ../../gcc/passes.c:1649
0x10f56f3f execute_todo
        ../../gcc/passes.c:2015

Reply via email to