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

--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Segher Boessenkool <seg...@gcc.gnu.org>:

https://gcc.gnu.org/g:032f2366a4cd57f781f2093d977b9cf9600c83b8

commit r10-7497-g032f2366a4cd57f781f2093d977b9cf9600c83b8
Author: Segher Boessenkool <seg...@kernel.crashing.org>
Date:   Wed Apr 1 16:51:04 2020 +0000

    rs6000: Make code questionably using r2 not ICE (PR94420)

    The example code in the PR uses r2 (the TOC register) directly.  In the
    RTL generated for that, r2 is copied to some pseudo, and then cprop
    propagates that into a "*tocref<mode>" insn, because nothing is
    preventing it from doing that.

    So, put the same condition in the insn condition for this as we will
    later encounter in the constraint anyway, fixing this.

    2020-04-01  Segher Boessenkool  <seg...@kernel.crashing.org>

            PR target/94420
            * config/rs6000/rs6000.md (*tocref<mode> for P): Add insn condition
            on operands[1].

Reply via email to