gdb: Convert language la_word_break_characters field to a method
[deliverable/binutils-gdb.git] / gas / testsuite / gas / arm / sp-pc-usage-t.s
CommitLineData
539d4391
NC
1.arch armv7-r
2.syntax unified
3.text
4.thumb
5 .global foo
749479c8
AO
6foo:
7 .align 4
539d4391
NC
8@ Section A6.1.3 "Use of 0b1101 as a register specifier".
9
10@ R13 as the source or destination register of a mov instruction.
11@ only register to register transfers without shifts are supported,
12@ with no flag setting
13
14mov sp,r0
15mov r0,sp
16
17@ Using the following instructions to adjust r13 up or down by a
18@ multiple of 4:
19
20add sp,sp,#0
21addw sp,sp,#0
22sub sp,sp,#0
23subw sp,sp,#0
24add sp,sp,r0
25add sp,sp,r0,lsl #1
26sub sp,sp,r0
27sub sp,sp,r0,lsl #1
28
29@ R13 as a base register <Rn> of any load/store instruction.
30
31ldr r0, [sp]
32ldr r0, [pc]
33ldr pc, [r0]
34ldr sp, [r0]
35ldr pc, [pc]
36ldr sp, [sp]
37ldr pc, [sp]
38ldr sp, [pc]
539d4391
NC
39
40str r0, [sp]
539d4391 41str sp, [r0]
539d4391 42str sp, [sp]
539d4391
NC
43
44@ R13 as the first operand <Rn> in any add{s}, cmn, cmp, or sub{s} instruction.
45
46add r0, sp, r0
47adds r0, sp, r0
48add r0, sp, r0, lsl #1
49adds r0, sp, r0, lsl #1
50
51cmn sp, #0
52cmn sp, r0
53cmn sp, r0, lsl #1
54cmp sp, #0
55cmp sp, r0
56cmp sp, r0, lsl #1
57
58sub sp, #0
59subs sp, #0
60sub r0, sp, #0
61subs r0, sp, #0
62
63@ ADD (sp plus immediate).
64
65add sp, #4
66add r0, sp, #4
67adds sp, #4
68adds r0, sp, #4
69addw r0, sp, #4
70
71add sp, sp, #4
72adds sp, sp, #4
73addw sp, sp, #4
74
75@ ADD (sp plus register).
76
77add sp, r0
78add r0, sp, r0
79add r0, sp, r0, lsl #1
80adds sp, r0
81adds r0, sp, r0
82adds r0, sp, r0, lsl #1
83
84add sp, sp, r0
85add sp, sp, r0, lsl #1
86adds sp, sp, r0
87adds sp, sp, r0, lsl #1
88
89add sp, sp, sp
90
91@ SUB (sp minus immediate).
92
93sub r0, sp , #0
94subs r0, sp , #0
95subw r0, sp , #0
96
97sub sp, sp , #0
98subs sp, sp , #0
99subw sp, sp , #0
100
101@ SUB (sp minus register).
102
103sub sp, #0
104subs sp, #0
105sub r0, sp, r0, lsl #1
106subs r0, sp, r0, lsl #1
107
108sub sp, sp, r0, lsl #1
109subs sp, sp, r0, lsl #1
110
111@ PC-related insns (equivalent to adr).
112
113add r0, pc, #4
114sub r0, pc, #4
115adds r0, pc, #4
116subs r0, pc, #4
117addw r0, pc, #4
118subw r0, pc, #4
119
120@ nops to pad the section out to an alignment boundary.
121
122nop
123nop
124nop
This page took 0.496976 seconds and 4 git commands to generate.