aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.S
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2009-09-29 19:24:46 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2009-09-29 19:24:46 +0000
commit8172766a9309627ee68f193fc5443af78f1d8f85 (patch)
treed6398c3d26c1c1e6fc16dbf778ccacc9001e3f21 /gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.S
parent0f73703cc3c04d3fa71e054d5ec7847e61b63a86 (diff)
downloadgdb-8172766a9309627ee68f193fc5443af78f1d8f85.zip
gdb-8172766a9309627ee68f193fc5443af78f1d8f85.tar.gz
gdb-8172766a9309627ee68f193fc5443af78f1d8f85.tar.bz2
gdb/testsuite/
* gdb.base/breakpoint-shadow.exp: Move the ia64 part into ... * gdb.arch/ia64-breakpoint-shadow.exp: ... a new file, with new tests. * gdb.arch/ia64-breakpoint-shadow.S: New file.
Diffstat (limited to 'gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.S')
-rw-r--r--gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.S44
1 files changed, 44 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.S b/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.S
new file mode 100644
index 0000000..ad88286
--- /dev/null
+++ b/gdb/testsuite/gdb.arch/ia64-breakpoint-shadow.S
@@ -0,0 +1,44 @@
+/* Copyright 2009 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ This file is part of the gdb testsuite.
+ It tests displaced stepping over various insns that require special
+ handling. */
+
+ .text
+ .align 16
+ .global main
+ .proc main
+main:
+ mov r2=r12
+ mov r14=1
+ ;;
+bundle:
+ /* Store value 1 into `long' variable on stack. */
+ st8.rel [r2]=r14
+ /* This long constant requires L-X slot in this bundle. */
+ movl r14=0x7fffffff
+ ;;
+ /* Store value 0x7fffffff into `long' variable on stack. */
+ st8.rel [r2]=r14
+ mov r14=r0
+ ;;
+ mov r8=r14
+ mov r12=r2
+ br.ret.sptk.many b0
+
+ .endp main
+
+ .section .note.GNU-stack,"",@progbits