public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/96433] New: Failed to optimize (A / N) * N <= A
@ 2020-08-03 13:59 david.bolvansky at gmail dot com
  2020-08-03 14:00 ` [Bug c/96433] " david.bolvansky at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: david.bolvansky at gmail dot com @ 2020-08-03 13:59 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96433
           Summary: Failed to optimize (A / N) * N <= A
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: david.bolvansky at gmail dot com
  Target Milestone: ---

const __SIZE_TYPE__ N = 3;

int foo(__SIZE_TYPE__ len) {
        __SIZE_TYPE__ newlen = (len / N) * N;
        return newlen <= len;
}

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

end of thread, other threads:[~2023-10-26  3:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-03 13:59 [Bug c/96433] New: Failed to optimize (A / N) * N <= A david.bolvansky at gmail dot com
2020-08-03 14:00 ` [Bug c/96433] " david.bolvansky at gmail dot com
2020-08-03 16:13 ` [Bug tree-optimization/96433] " glisse at gcc dot gnu.org
2020-08-03 16:18 ` jakub at gcc dot gnu.org
2023-02-10 22:30 ` pinskia at gcc dot gnu.org
2023-08-08  7:31 ` pinskia at gcc dot gnu.org
2023-10-26  3:44 ` 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).