aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.arch/aarch64-fp.c16
2 files changed, 16 insertions, 5 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 84ef82f..705e5f0 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2018-08-17 Alan Hayward <alan.hayward@arm.com>
+
+ PR gdb/18931
+ * gdb.arch/aarch64-fp.c (main): Fix asm registers.
+
2018-08-16 Keith Seitz <keiths@redhat.com>
* gdb.compile/compile.exp: Use gdb_test_no_output for "compile code"
diff --git a/gdb/testsuite/gdb.arch/aarch64-fp.c b/gdb/testsuite/gdb.arch/aarch64-fp.c
index 0ff8e00..7eb6df2 100644
--- a/gdb/testsuite/gdb.arch/aarch64-fp.c
+++ b/gdb/testsuite/gdb.arch/aarch64-fp.c
@@ -26,12 +26,18 @@ main (void)
void *addr;
addr = &buf0[0];
- __asm __volatile ("ldr %x0, [%1]" : "=r" (val) : "r" (&addr));
- __asm __volatile ("ldr q0, [x0]");
-
+ __asm __volatile ("ldr %x0, [%1]\n\t"
+ "ldr q0, [%x0]"
+ : "=r" (val)
+ : "r" (&addr)
+ : "q0" );
+
addr = &buf1[0];
- __asm __volatile ("ldr %x0, [%1]" : "=r" (val) : "r" (&addr));
- __asm __volatile ("ldr q1, [x0]");
+ __asm __volatile ("ldr %x0, [%1]\n\t"
+ "ldr q1, [%x0]"
+ : "=r" (val)
+ : "r" (&addr)
+ : "q1" );
return 1;
}