aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2017-10-27 15:29:24 +0100
committerYao Qi <yao.qi@linaro.org>2017-10-27 15:29:24 +0100
commitbb11dd58391459bd5ba54ec405adab663ac59e89 (patch)
treed091b2ee02a8386953c1cd0d23423e255f4a8562 /gdb/testsuite/gdb.arch
parent32ef30002cee3661eb645cd14bcc4ff77ea10f45 (diff)
downloadgdb-bb11dd58391459bd5ba54ec405adab663ac59e89.zip
gdb-bb11dd58391459bd5ba54ec405adab663ac59e89.tar.gz
gdb-bb11dd58391459bd5ba54ec405adab663ac59e89.tar.bz2
[AArch64] Mark LR clobbered by BL in inline asm
LR is a caller-save register, so, if inline asm does BL (which touches LR), we should mark LR clobbered. gdb/testsuite: 2017-10-27 Yao Qi <yao.qi@linaro.org> * gdb.arch/insn-reloc.c (can_relocate_bl): Mark "x30" clobbered.
Diffstat (limited to 'gdb/testsuite/gdb.arch')
-rw-r--r--gdb/testsuite/gdb.arch/insn-reloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.arch/insn-reloc.c b/gdb/testsuite/gdb.arch/insn-reloc.c
index c19d0be..5cf9cca 100644
--- a/gdb/testsuite/gdb.arch/insn-reloc.c
+++ b/gdb/testsuite/gdb.arch/insn-reloc.c
@@ -508,7 +508,8 @@ can_relocate_bl (void)
{
asm ("set_point11:\n"
" bl foo\n"
- " bl pass\n"); /* Test that LR is updated correctly. */
+ " bl pass\n"
+ : : : "x30"); /* Test that LR is updated correctly. */
}
#endif