Commit | Line | Data |
---|---|---|
7bfdd688 | 1 | /* Copyright 2003, 2004 Free Software Foundation, Inc.\r |
6ef88553 KW |
2 | \r |
3 | This program is free software; you can redistribute it and/or modify\r | |
4 | it under the terms of the GNU General Public License as published by\r | |
5 | the Free Software Foundation; either version 2 of the License, or\r | |
6 | (at your option) any later version.\r | |
7 | \r | |
8 | This program is distributed in the hope that it will be useful,\r | |
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of\r | |
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r | |
11 | GNU General Public License for more details.\r | |
12 | \r | |
13 | You should have received a copy of the GNU General Public License\r | |
14 | along with this program; if not, write to the Free Software\r | |
15 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. \r | |
16 | \r | |
17 | Please email any bugs, comments, and/or additions to this file to:\r | |
18 | bug-gdb@gnu.org\r | |
19 | \r | |
20 | This file is part of the gdb testsuite. */\r | |
21 | \r | |
22 | void sub1 (void);\r | |
23 | void sub2 (void);\r | |
24 | \r | |
25 | main()\r | |
26 | {\r | |
27 | sub1();\r | |
28 | sub2();\r | |
29 | }\r | |
30 | \r | |
31 | asm(".text\n"\r | |
32 | " .align 5\n"\r | |
33 | "sub1:\n"\r | |
7bfdd688 | 34 | "_sub1:\n"\r |
6ef88553 KW |
35 | " mov.l r14,@-r15\n"\r |
36 | " add #-128,r15\n"\r | |
37 | " add #-128,r15\n"\r | |
38 | " mov r15,r14\n"\r | |
39 | " mov.w .STACK1,r7\n"\r | |
40 | " add r7,r14\n"\r | |
41 | " mov r14,r15\n"\r | |
42 | " mov.l @r15+,r14\n"\r | |
43 | " rts\n"\r | |
44 | " nop\n"\r | |
45 | " .align 1\n"\r | |
46 | ".STACK1:\n"\r | |
47 | " .short 256\n");\r | |
48 | \r | |
49 | asm(".text\n"\r | |
50 | " .align 5\n"\r | |
51 | "sub2:\n"\r | |
7bfdd688 | 52 | "_sub2:\n"\r |
6ef88553 KW |
53 | " mov.l r14,@-r15\n"\r |
54 | " mov.w .STACK2,r3\n"\r | |
55 | " sub r3,r15\n"\r | |
56 | " mov r15,r14\n"\r | |
57 | " mov.w .STACK2,r7\n"\r | |
58 | " add r7,r14\n"\r | |
59 | " mov r14,r15\n"\r | |
60 | " mov.l @r15+,r14\n"\r | |
61 | " rts\n"\r | |
62 | " nop\n"\r | |
63 | " .align 1\n"\r | |
64 | ".STACK2:\n"\r | |
65 | " .short 260\n");\r |