1 /* Copyright 2009 Free Software Foundation, Inc.
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 3 of the License, or
6 (at your option) any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http://www.gnu.org/licenses/>.
16 This file is part of the gdb testsuite.
17 It tests displaced stepping over various insns that require special
36 /* test abs-jmp/rep-ret */
39 mov $test_abs_jmp_return,%rdx
41 mov $test_abs_jmp_subr,%rdx
47 .global test_rep_ret_end
54 mov $0x27,%eax /* getpid */
62 GDB picks a spare register to hold the rip-relative address.
63 Exercise all the possibilities (rax-rdi, sans rsp). */
68 .global test_rip_rax_end
75 .global test_rip_rbx_end
82 .global test_rip_rcx_end
89 .global test_rip_rdx_end
96 .global test_rip_rbp_end
102 add answer(%rip),%rsi
103 .global test_rip_rsi_end
109 add answer(%rip),%rdi
110 .global test_rip_rdi_end
114 /* skip over test data */
117 /* test rip-relative data */
128 /***********************************************/
130 /* subroutine to help test call/ret */
134 .global test_call_end
142 /* subroutine to help test abs-jmp/rep-ret */
146 .global test_abs_jmp_end