public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/60880] New: Wrong assert in promote_duplicated_reg
@ 2014-04-18  0:41 hjl.tools at gmail dot com
  2021-08-02 20:22 ` [Bug target/60880] Wrong assert in promote_duplicated_reg in i386.c pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: hjl.tools at gmail dot com @ 2014-04-18  0:41 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60880

            Bug ID: 60880
           Summary: Wrong assert in promote_duplicated_reg
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hjl.tools at gmail dot com

promote_duplicated_reg has

gcc_assert (mode == SImode || mode == DImode || val == const0_rtx);

But it may be called by promote_duplicated_reg_to_size with HImode:

  else if (size_needed > 1 || (desired_align > align && desired_align > 1))
    promoted_val = promote_duplicated_reg (HImode, val);


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

* [Bug target/60880] Wrong assert in promote_duplicated_reg in i386.c
  2014-04-18  0:41 [Bug target/60880] New: Wrong assert in promote_duplicated_reg hjl.tools at gmail dot com
@ 2021-08-02 20:22 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-02 20:22 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I can't see how this assert will ever hit.  I looked into the code and
promote_duplicated_reg_to_size cannot be called with "size_needed > 1 ||
(desired_align > align && desired_align > 1)" being true with val also being !=
const0_rtx.

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

end of thread, other threads:[~2021-08-02 20:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-18  0:41 [Bug target/60880] New: Wrong assert in promote_duplicated_reg hjl.tools at gmail dot com
2021-08-02 20:22 ` [Bug target/60880] Wrong assert in promote_duplicated_reg in i386.c pinskia 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).