public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/110293] New: Some `A CMP (A NEEQ 0)` is not simplified in some cases
@ 2023-06-16 23:22 pinskia at gcc dot gnu.org
  2023-06-16 23:57 ` [Bug tree-optimization/110293] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-06-16 23:22 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 110293
           Summary: Some `A CMP (A NEEQ 0)` is not simplified in some
                    cases
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: enhancement
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

The full set is:
`x != (typeof x)(x == 0)` is always true (PR 110278)
`x == (typeof x)(x == 0)` is always false.
`x == (typeof x)(x != 0)` is `(unsigned_type)x <= 1`
`x != (typeof x)(x != 0)` is `(unsigned_type)x > 1`


`uns < (typeof uns)(uns != 0)` is always false (PR 110278)
`uns >= (typeof uns)(uns != 0)` is always true
`uns <= (typeof uns)(uns != 0)` is `uns <= 1`
`uns > (typeof uns)(uns != 0)` is `uns > 1`

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

end of thread, other threads:[~2024-03-09  5:55 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-16 23:22 [Bug tree-optimization/110293] New: Some `A CMP (A NEEQ 0)` is not simplified in some cases pinskia at gcc dot gnu.org
2023-06-16 23:57 ` [Bug tree-optimization/110293] " pinskia at gcc dot gnu.org
2023-06-17  1:58 ` pinskia at gcc dot gnu.org
2023-07-11 23:13 ` pinskia at gcc dot gnu.org
2023-07-12  6:29 ` pinskia at gcc dot gnu.org
2023-07-12 17:31 ` pinskia at gcc dot gnu.org
2023-07-13 14:55 ` cvs-commit at gcc dot gnu.org
2023-07-13 14:56 ` pinskia at gcc dot gnu.org
2023-09-12 22:00 ` pinskia at gcc dot gnu.org
2023-09-12 23:42 ` pinskia at gcc dot gnu.org
2024-03-09  5:55 ` 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).