public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/67328] New: range test rather than single bit test for code testing enum values
@ 2015-08-23 13:41 amodra at gmail dot com
  2015-08-23 13:45 ` [Bug tree-optimization/67328] " amodra at gmail dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: amodra at gmail dot com @ 2015-08-23 13:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 67328
           Summary: range test rather than single bit test for code
                    testing enum values
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amodra at gmail dot com
  Target Milestone: ---

The attached file generates ideal code, a test of a single bit, for the
condition in test_pic or test_exe depending on -DALT.  gcc ought to be able to
optimise to a single bit test for both functions whether or not -DALT.  It
looks like gcc incorrectly prefers a range test.


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

end of thread, other threads:[~2015-08-25 13:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-23 13:41 [Bug tree-optimization/67328] New: range test rather than single bit test for code testing enum values amodra at gmail dot com
2015-08-23 13:45 ` [Bug tree-optimization/67328] " amodra at gmail dot com
2015-08-25  8:38 ` rguenth at gcc dot gnu.org
2015-08-25 13:09 ` amodra 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).