public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/31590] New: (-3) >> 1 should be -2.
@ 2024-04-02  5:57 tsqurt at outlook dot com
  2024-04-02 12:38 ` [Bug c++/31590] " tromey at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: tsqurt at outlook dot com @ 2024-04-02  5:57 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31590

            Bug ID: 31590
           Summary: (-3) >> 1 should be -2.
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: tsqurt at outlook dot com
  Target Milestone: ---

Affected versions (Ubuntu 20.04 amd64)
- GNU gdb (GDB) 14.2
- GNU gdb (GDB) 15.0.50.20240402-git

The result is correct (-2) for gdb 13.2 using 2's complement. But for gdb 14.2:
(gdb) p (-3) >> 1
$1 = -1

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

* [Bug c++/31590] (-3) >> 1 should be -2.
  2024-04-02  5:57 [Bug gdb/31590] New: (-3) >> 1 should be -2 tsqurt at outlook dot com
@ 2024-04-02 12:38 ` tromey at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at sourceware dot org @ 2024-04-02 12:38 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=31590

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|gdb                         |c++
                 CC|                            |tromey at sourceware dot org

-- 
You are receiving this mail because:
You are on the CC list for the bug.

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

end of thread, other threads:[~2024-04-02 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-02  5:57 [Bug gdb/31590] New: (-3) >> 1 should be -2 tsqurt at outlook dot com
2024-04-02 12:38 ` [Bug c++/31590] " tromey at sourceware dot 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).