1 |
205 |
julius |
# name: SP and PC registers special uses test.
|
2 |
|
|
# objdump: -d --prefix-addresses --show-raw-insn
|
3 |
|
|
|
4 |
|
|
.*: +file format .*arm.*
|
5 |
|
|
|
6 |
|
|
Disassembly of section .text:
|
7 |
|
|
00000000 4685 mov sp, r0
|
8 |
|
|
00000002 4668 mov r0, sp
|
9 |
|
|
00000004 b000 add sp, #0
|
10 |
|
|
00000006 f20d 0d00 addw sp, sp, #0
|
11 |
|
|
0000000a b080 sub sp, #0
|
12 |
|
|
0000000c f2ad 0d00 subw sp, sp, #0
|
13 |
|
|
00000010 4485 add sp, r0
|
14 |
|
|
00000012 eb0d 0d40 add.w sp, sp, r0, lsl #1
|
15 |
|
|
00000016 ebad 0d00 sub.w sp, sp, r0
|
16 |
|
|
0000001a ebad 0d40 sub.w sp, sp, r0, lsl #1
|
17 |
|
|
0000001e 9800 ldr r0, \[sp, #0\]
|
18 |
|
|
00000020 4800 ldr r0, \[pc, #0\] ; \(00000024 \)
|
19 |
|
|
00000022 f8d0 f000 ldr.w pc, \[r0\]
|
20 |
|
|
00000026 f8d0 d000 ldr.w sp, \[r0\]
|
21 |
|
|
0000002a f8df f000 ldr.w pc, \[pc\] ; 0000002c
|
22 |
|
|
0000002e f8dd d000 ldr.w sp, \[sp\]
|
23 |
|
|
00000032 f8dd f000 ldr.w pc, \[sp\]
|
24 |
|
|
00000036 f8df d000 ldr.w sp, \[pc\] ; 00000038
|
25 |
|
|
0000003a f850 d00f ldr.w sp, \[r0, pc\]
|
26 |
|
|
0000003e 9000 str r0, \[sp, #0\]
|
27 |
|
|
00000040 f8cf 0000 str.w r0, \[pc\] ; 00000044
|
28 |
|
|
00000044 f8c0 f000 str.w pc, \[r0\]
|
29 |
|
|
00000048 f8c0 d000 str.w sp, \[r0\]
|
30 |
|
|
0000004c f8cf f000 str.w pc, \[pc\] ; 00000050
|
31 |
|
|
00000050 f8cd d000 str.w sp, \[sp\]
|
32 |
|
|
00000054 f8cd f000 str.w pc, \[sp\]
|
33 |
|
|
00000058 f8cf d000 str.w sp, \[pc\] ; 0000005c
|
34 |
|
|
0000005c f840 d00f str.w sp, \[r0, pc\]
|
35 |
|
|
00000060 4468 add r0, sp
|
36 |
|
|
00000062 eb1d 0000 adds.w r0, sp, r0
|
37 |
|
|
00000066 eb0d 0040 add.w r0, sp, r0, lsl #1
|
38 |
|
|
0000006a eb1d 0040 adds.w r0, sp, r0, lsl #1
|
39 |
|
|
0000006e f11d 0f00 cmn.w sp, #0
|
40 |
|
|
00000072 eb1d 0f00 cmn.w sp, r0
|
41 |
|
|
00000076 eb1d 0f40 cmn.w sp, r0, lsl #1
|
42 |
|
|
0000007a f1bd 0f00 cmp.w sp, #0
|
43 |
|
|
0000007e 4585 cmp sp, r0
|
44 |
|
|
00000080 ebbd 0f40 cmp.w sp, r0, lsl #1
|
45 |
|
|
00000084 b080 sub sp, #0
|
46 |
|
|
00000086 f1bd 0d00 subs.w sp, sp, #0
|
47 |
|
|
0000008a f1ad 0000 sub.w r0, sp, #0
|
48 |
|
|
0000008e f1bd 0000 subs.w r0, sp, #0
|
49 |
|
|
00000092 b001 add sp, #4
|
50 |
|
|
00000094 a801 add r0, sp, #4
|
51 |
|
|
00000096 f11d 0d04 adds.w sp, sp, #4
|
52 |
|
|
0000009a f11d 0004 adds.w r0, sp, #4
|
53 |
|
|
0000009e f20d 0004 addw r0, sp, #4
|
54 |
|
|
000000a2 b001 add sp, #4
|
55 |
|
|
000000a4 f11d 0d04 adds.w sp, sp, #4
|
56 |
|
|
000000a8 f20d 0d04 addw sp, sp, #4
|
57 |
|
|
000000ac 4485 add sp, r0
|
58 |
|
|
000000ae 4468 add r0, sp
|
59 |
|
|
000000b0 eb0d 0040 add.w r0, sp, r0, lsl #1
|
60 |
|
|
000000b4 eb1d 0d00 adds.w sp, sp, r0
|
61 |
|
|
000000b8 eb1d 0000 adds.w r0, sp, r0
|
62 |
|
|
000000bc eb1d 0040 adds.w r0, sp, r0, lsl #1
|
63 |
|
|
000000c0 4485 add sp, r0
|
64 |
|
|
000000c2 eb0d 0d40 add.w sp, sp, r0, lsl #1
|
65 |
|
|
000000c6 eb1d 0d00 adds.w sp, sp, r0
|
66 |
|
|
000000ca eb1d 0d40 adds.w sp, sp, r0, lsl #1
|
67 |
|
|
000000ce 44ed add sp, sp
|
68 |
|
|
000000d0 f1ad 0000 sub.w r0, sp, #0
|
69 |
|
|
000000d4 f1bd 0000 subs.w r0, sp, #0
|
70 |
|
|
000000d8 f2ad 0000 subw r0, sp, #0
|
71 |
|
|
000000dc b080 sub sp, #0
|
72 |
|
|
000000de f1bd 0d00 subs.w sp, sp, #0
|
73 |
|
|
000000e2 f2ad 0d00 subw sp, sp, #0
|
74 |
|
|
000000e6 b080 sub sp, #0
|
75 |
|
|
000000e8 f1bd 0d00 subs.w sp, sp, #0
|
76 |
|
|
000000ec ebad 0040 sub.w r0, sp, r0, lsl #1
|
77 |
|
|
000000f0 ebbd 0040 subs.w r0, sp, r0, lsl #1
|
78 |
|
|
000000f4 ebad 0d40 sub.w sp, sp, r0, lsl #1
|
79 |
|
|
000000f8 ebbd 0d40 subs.w sp, sp, r0, lsl #1
|
80 |
|
|
000000fc a001 add r0, pc, #4 ; \(adr r0, 00000104 \)
|
81 |
|
|
000000fe f2af 0004 subw r0, pc, #4
|
82 |
|
|
00000102 f20f 0004 addw r0, pc, #4
|
83 |
|
|
00000106 f2af 0004 subw r0, pc, #4
|
84 |
|
|
0000010a f20f 0004 addw r0, pc, #4
|
85 |
|
|
0000010e f2af 0004 subw r0, pc, #4
|
86 |
|
|
00000112 bf00[ ]+nop
|
87 |
|
|
00000114 bf00[ ]+nop
|
88 |
|
|
00000116 bf00[ ]+nop
|