1 /* Copyright 2010 Free Software Foundation, Inc.
3 This file is part of GDB.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 3 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. */
21 #if defined (__thumb__) || defined (__thumb2__)
32 /* Test call and return */
38 nop @ Location test_ret_end
43 /* Test ldr from pc */
46 /* Test ldm/stm only in ARM mode */
47 #if !defined (__thumb__) && !defined (__thumb2__)
58 .global test_call_subr
59 #if defined (__thumb__) || defined (__thumb2__)
63 .type test_call_subr, %function
68 nop @ Location test_call_end
72 .size test_call_subr, .-test_call_subr
76 #if defined (__thumb__) || defined (__thumb2__)
80 .type test_branch, %function
86 .size test_branch, .-test_branch
89 #if defined (__thumb__) || defined (__thumb2__)
93 .type test_ldr_pc, %function
100 .size test_ldr_pc, .-test_ldr_pc
102 #if !defined (__thumb__) && !defined (__thumb2__)
103 .global test_ldm_stm_pc
104 .type test_ldm_stm_pc, %function
118 .word test_ldm_stm_pc_ret
119 .size test_ldm_stm_pc, .-test_ldm_stm_pc