public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/106417] New: [13 Regression] Wrong code with -O0
@ 2022-07-23  4:03 vsevolod.livinskiy at gmail dot com
  2022-07-25  6:51 ` [Bug tree-optimization/106417] [13 Regression] Wrong code with -O0 since r13-1779-g375668e0508fbe17 marxin at gcc dot gnu.org
  2022-07-25  7:04 ` marxin at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: vsevolod.livinskiy at gmail dot com @ 2022-07-23  4:03 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106417
           Summary: [13 Regression] Wrong code with -O0
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vsevolod.livinskiy at gmail dot com
  Target Milestone: ---

Reproducer:
#include <stdio.h>

signed char var_84 = (signed char)-125;

int a;
void test() __attribute__((noipa));
void test() { var_84 = ~((a < 4094) ^ int(!a)); }

int main() {
  test();
  printf("%d\n", var_84);
  if (var_84 != -1)
    __builtin_abort();
}

Error:
>$ /usr/bin/g++ -O0 driver.cpp && ./a.out 
-1
>$ g++ -O0 driver.cpp && ./a.out 
1
Aborted (core dumped)

gcc version 13.0.0 20220722 (3c4af0f0549a07799d76e9e48d3d3bd85197b92a)

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

* [Bug tree-optimization/106417] [13 Regression] Wrong code with -O0 since r13-1779-g375668e0508fbe17
  2022-07-23  4:03 [Bug tree-optimization/106417] New: [13 Regression] Wrong code with -O0 vsevolod.livinskiy at gmail dot com
@ 2022-07-25  6:51 ` marxin at gcc dot gnu.org
  2022-07-25  7:04 ` marxin at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-07-25  6:51 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-07-25
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |rguenth at gcc dot gnu.org
           Priority|P3                          |P1
     Ever confirmed|0                           |1
   Target Milestone|---                         |13.0
            Summary|[13 Regression] Wrong code  |[13 Regression] Wrong code
                   |with -O0                    |with -O0 since
                   |                            |r13-1779-g375668e0508fbe17

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r13-1779-g375668e0508fbe17.

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

* [Bug tree-optimization/106417] [13 Regression] Wrong code with -O0 since r13-1779-g375668e0508fbe17
  2022-07-23  4:03 [Bug tree-optimization/106417] New: [13 Regression] Wrong code with -O0 vsevolod.livinskiy at gmail dot com
  2022-07-25  6:51 ` [Bug tree-optimization/106417] [13 Regression] Wrong code with -O0 since r13-1779-g375668e0508fbe17 marxin at gcc dot gnu.org
@ 2022-07-25  7:04 ` marxin at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-07-25  7:04 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 106414 ***

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

end of thread, other threads:[~2022-07-25  7:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-23  4:03 [Bug tree-optimization/106417] New: [13 Regression] Wrong code with -O0 vsevolod.livinskiy at gmail dot com
2022-07-25  6:51 ` [Bug tree-optimization/106417] [13 Regression] Wrong code with -O0 since r13-1779-g375668e0508fbe17 marxin at gcc dot gnu.org
2022-07-25  7:04 ` marxin 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).