OLD | NEW |
1 /* Copyright 2010-2012 Free Software Foundation, Inc. | 1 /* Copyright 2010-2012 Free Software Foundation, Inc. |
2 | 2 |
3 This file is part of GDB. | 3 This file is part of GDB. |
4 | 4 |
5 This program is free software; you can redistribute it and/or modify | 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 | 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 | 7 the Free Software Foundation; either version 3 of the License, or |
8 (at your option) any later version. | 8 (at your option) any later version. |
9 | 9 |
10 This program is distributed in the hope that it will be useful, | 10 This program is distributed in the hope that it will be useful, |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 | 103 |
104 | 104 |
105 .global test_branch | 105 .global test_branch |
106 #if defined (__thumb__) | 106 #if defined (__thumb__) |
107 .code 16 | 107 .code 16 |
108 .thumb_func | 108 .thumb_func |
109 #endif | 109 #endif |
110 .type test_branch, %function | 110 .type test_branch, %function |
111 test_branch: | 111 test_branch: |
112 b L_branch | 112 b L_branch |
113 » .global | 113 » .global L_branch |
114 L_branch: | 114 L_branch: |
115 bx lr | 115 bx lr |
116 .size test_branch, .-test_branch | 116 .size test_branch, .-test_branch |
117 | 117 |
118 .global test_ldr_pc | 118 .global test_ldr_pc |
119 #if defined (__thumb__) | 119 #if defined (__thumb__) |
120 .code 16 | 120 .code 16 |
121 .thumb_func | 121 .thumb_func |
122 #endif | 122 #endif |
123 .type test_ldr_pc, %function | 123 .type test_ldr_pc, %function |
124 test_ldr_pc: | 124 test_ldr_pc: |
125 ldr r1, [pc, #0] | 125 ldr r1, [pc, #0] |
126 | 126 |
127 » .global | 127 » .global test_ldr_pc_ret |
128 test_ldr_pc_ret: | 128 test_ldr_pc_ret: |
129 bx lr | 129 bx lr |
130 .size test_ldr_pc, .-test_ldr_pc | 130 .size test_ldr_pc, .-test_ldr_pc |
131 | 131 |
132 #if !defined (__thumb__) | 132 #if !defined (__thumb__) |
133 .global test_ldm_stm_pc | 133 .global test_ldm_stm_pc |
134 .type test_ldm_stm_pc, %function | 134 .type test_ldm_stm_pc, %function |
135 test_ldm_stm_pc: | 135 test_ldm_stm_pc: |
136 stmdb sp!, {lr, pc} | 136 stmdb sp!, {lr, pc} |
137 ldmia sp!, {r0, r1} | 137 ldmia sp!, {r0, r1} |
138 ldr r0, .L1 | 138 ldr r0, .L1 |
139 stmdb sp!, {r0} | 139 stmdb sp!, {r0} |
140 » .global | 140 » .global test_ldm_pc |
141 test_ldm_pc: | 141 test_ldm_pc: |
142 ldmia sp!, {pc} | 142 ldmia sp!, {pc} |
143 » .global | 143 » .global test_ldm_stm_pc_ret |
144 test_ldm_stm_pc_ret: | 144 test_ldm_stm_pc_ret: |
145 bx lr | 145 bx lr |
146 .align 2 | 146 .align 2 |
147 .L1: | 147 .L1: |
148 .word test_ldm_stm_pc_ret | 148 .word test_ldm_stm_pc_ret |
149 .size test_ldm_stm_pc, .-test_ldm_stm_pc | 149 .size test_ldm_stm_pc, .-test_ldm_stm_pc |
150 #endif | 150 #endif |
151 | 151 |
152 #if !defined (__thumb__) || defined(__thumb2__) | 152 #if !defined (__thumb__) || defined(__thumb2__) |
153 .global test_ldr_literal | 153 .global test_ldr_literal |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 b test_str_pc_end | 365 b test_str_pc_end |
366 | 366 |
367 .global pc_offset_wrong | 367 .global pc_offset_wrong |
368 pc_offset_wrong: | 368 pc_offset_wrong: |
369 nop | 369 nop |
370 | 370 |
371 .global test_str_pc_end | 371 .global test_str_pc_end |
372 test_str_pc_end: | 372 test_str_pc_end: |
373 bx lr | 373 bx lr |
374 #endif | 374 #endif |
OLD | NEW |