Discussion:
[Bug testsuite/18931] New: src/gdb/testsuite/gdb.arch/aarch64-fp.c has broken code in it
pinskia at gcc dot gnu.org
2015-09-07 16:45:21 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18931

Bug ID: 18931
Summary: src/gdb/testsuite/gdb.arch/aarch64-fp.c has broken
code in it
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: testsuite
Assignee: unassigned at sourceware dot org
Reporter: pinskia at gcc dot gnu.org
Target Milestone: ---

The code does:
addr = &buf0[0];
__asm __volatile ("ldr %x0, [%1]" : "=r" (val) : "r" (&addr));
__asm __volatile ("ldr q0, [x0]");


But x0 does not have to be the same as addr.
--
You are receiving this mail because:
You are on the CC list for the bug.
alahay01 at gcc dot gnu.org
2018-08-17 04:35:41 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18931

Alan Hayward <alahay01 at gcc dot gnu.org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |alahay01 at gcc dot gnu.org
Assignee|unassigned at sourceware dot org |alahay01 at gcc dot gnu.org

--- Comment #1 from Alan Hayward <alahay01 at gcc dot gnu.org> ---
Simple enough fix. Taking this to clean up old bugs.
--
You are receiving this mail because:
You are on the CC list for the bug.
cvs-commit at gcc dot gnu.org
2018-08-17 10:11:22 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18931

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alan Hayward <***@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2ecae92e2372102ac0fa774fce4c4c0d6f8c85f5

commit 2ecae92e2372102ac0fa774fce4c4c0d6f8c85f5
Author: Alan Hayward <***@arm.com>
Date: Thu Aug 16 15:21:15 2018 +0100

Fix asm in testsuite/gdb.arch/aarch64-fp.c

Cannot assume result of first and third ldr will go into x0.
Rewrite asm to be clearer.

gdb/testsuite/

PR gdb/18931:
* gdb.arch/aarch64-fp.c (main): Fix asm registers.
--
You are receiving this mail because:
You are on the CC list for the bug.
alahay01 at gcc dot gnu.org
2018-08-17 10:20:54 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18931

Alan Hayward <alahay01 at gcc dot gnu.org> changed:

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

--- Comment #3 from Alan Hayward <alahay01 at gcc dot gnu.org> ---
commit 2ecae92e2372102ac0fa774fce4c4c0d6f8c85f5
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...