public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/60863] New: Incorrect codegen in ix86_expand_clear for -Os
@ 2014-04-16 15:44 hjl.tools at gmail dot com
  2014-04-16 17:43 ` [Bug target/60863] " ubizjak at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2014-04-16 15:44 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 60863
           Summary: Incorrect codegen in ix86_expand_clear for -Os
           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
                CC: ubizjak at gmail dot com

ix86_expand_clear has

  /* This predicate should match that for movsi_xor and movdi_xor_rex64.  */
  if (!TARGET_USE_MOV0 || optimize_insn_for_speed_p ())
    {
      rtx clob = gen_rtx_CLOBBER (VOIDmode, gen_rtx_REG (CCmode, FLAGS_REG));
      tmp = gen_rtx_PARALLEL (VOIDmode, gen_rtvec (2, tmp, clob));
    }

But "xor reg,reg" has shorter encoding than "mov $0, reg".  If
"xor reg,reg" is generated for -O, shouldn't it also be generated
for -Os?


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

end of thread, other threads:[~2014-04-17 15:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-16 15:44 [Bug target/60863] New: Incorrect codegen in ix86_expand_clear for -Os hjl.tools at gmail dot com
2014-04-16 17:43 ` [Bug target/60863] " ubizjak at gmail dot com
2014-04-17 15:20 ` hjl at gcc dot gnu.org
2014-04-17 15:21 ` hjl.tools at gmail dot com

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).