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

--- Comment #4 from Hongtao.liu <crazylht at gmail dot com> ---
(In reply to Hongtao.liu from comment #3)
> (In reply to Hongtao.liu from comment #1)
> > It should be fixed by
> > https://gcc.gnu.org/pipermail/gcc-patches/2021-November/585613.html
> 
> Hmm, it looks to be broken again.

I thought is was same problem as
https://gcc.gnu.org/pipermail/gcc-regression/2021-November/075893.html, but
it's not.

It's caused by r12-5558

the insn hit gcc_assert in ix86_attr_length_immediate_default is


(insn 20 19 21 2 (parallel [
            (set (reg:DI 1 dx [orig:110 bar0_u128_0 ] [110])
                (ior:DI (lshiftrt:DI (reg:DI 1 dx [orig:110 bar0_u128_0 ]
[110])
                        (const_int 0 [0]))
                    (subreg:DI (ashift:TI (zero_extend:TI (reg:DI 0 ax
[orig:111+8 ] [111]))
                            (const_int 64 [0x40])) 0)))
            (clobber (reg:CC 17 flags))

which set len = 1 and hit gcc_assert (!len);

            if (IN_RANGE (ival, -128, 127))
              {
                len = 1;
                continue;
              }
          }

Reply via email to