public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug sim/27483] New: aarch64: adds test failing when adding 0x80000000 & 0xffffffff
@ 2021-02-28  6:35 vapier at gentoo dot org
  2021-03-01  4:48 ` [Bug sim/27483] " wilson at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: vapier at gentoo dot org @ 2021-02-28  6:35 UTC (permalink / raw)
  To: gdb-prs

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

            Bug ID: 27483
           Summary: aarch64: adds test failing when adding 0x80000000 &
                    0xffffffff
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: sim
          Assignee: nickc at redhat dot com
          Reporter: vapier at gentoo dot org
                CC: nickc at redhat dot com, vapier at gentoo dot org,
                    wilson at tuliptree dot org
  Target Milestone: ---

it seems like this test has failed since it was added ?  at least on my system,
checking out the original commit shows it failing.

$ ./aarch64/run --trace --trace-reg ./testsuite/adds.s.x 
...
insn:      pc = 400030 instr = 52b00000      
reg:      GR[ 0] changes from                2 to         80000000
insn:      pc = 400034 instr = 12800001      
insn:      pc = 400038 instr = 2b010002      
reg:      GR[ 2] changes from                1 to         7fffffff
reg:      CPSR stays at --C-
insn:      pc = 40003c instr = 54000b27 
reg:      NextPC changes from           400040 to           4001a0
...

where that code is:
  400030:   52b00000    mov w0, #0x80000000             // #-2147483648
  400034:   12800001    mov w1, #0xffffffff             // #-1
  400038:   2b010002    adds    w2, w0, w1
  40003c:   54000b27    b.vc    4001a0 <_start+0x1a0>

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

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

end of thread, other threads:[~2021-04-08  1:59 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-28  6:35 [Bug sim/27483] New: aarch64: adds test failing when adding 0x80000000 & 0xffffffff vapier at gentoo dot org
2021-03-01  4:48 ` [Bug sim/27483] " wilson at gcc dot gnu.org
2021-03-01  8:30 ` schwab@linux-m68k.org
2021-03-01 16:43 ` wilson at gcc dot gnu.org
2021-03-01 16:55 ` schwab@linux-m68k.org
2021-03-01 23:28 ` wilson at gcc dot gnu.org
2021-03-02  8:43 ` schwab@linux-m68k.org
2021-03-07 18:48 ` vapier at gentoo dot org
2021-04-08  1:53 ` cvs-commit at gcc dot gnu.org
2021-04-08  1:59 ` wilson 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).