]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/testsuite/gdb.arch/gdb1291.c
2004-02-16 Andrew Cagney <cagney@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / testsuite / gdb.arch / gdb1291.c
1 /* Copyright 2003, 2004 Free Software Foundation, Inc.
2
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 2 of the License, or
6 (at your option) any later version.
7
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.
12
13 You should have received a copy of the GNU General Public License
14 along with this program; if not, write to the Free Software
15 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16
17 Please email any bugs, comments, and/or additions to this file to:
18 bug-gdb@gnu.org
19
20 This file is part of the gdb testsuite. */
21
22 void sub (void);
23
24 main()
25 {
26 sub();
27 }
28
29 asm(".text\n"
30 " .align 5\n"
31 "sub:\n"
32 "_sub:\n"
33 " mov.l r14,@-r15\n"
34 " mov.w .STACK2,r3\n"
35 " sub r3,r15\n"
36 " mov r15,r14\n"
37 " mov.w .STACK2,r7\n"
38 " add r7,r14\n"
39 " mov r14,r15\n"
40 " mov.l @r15+,r14\n"
41 " rts\n"
42 " nop\n"
43 " .align 1\n"
44 ".STACK2:\n"
45 " .short 260\n");