OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [gas/] [testsuite/] [gas/] [crx/] [load_stor_insn.s] - Blame information for rev 438

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
# Load/Store instructions.
2
 .data
3
foodata: .word 42
4
         .text
5
footext:
6
 
7
# Load instructions (memory to register).
8
        .global loadb
9
loadb:
10
loadb 0x632, r1
11
loadb 0x87632, r2
12
loadb 0xffff1234, r3
13
loadb 9(r5), r4
14
loadb 0(sp), r6
15
loadb 0x456(r6), r7
16
loadb -0x456(r8), r10
17
loadb 0x45678(r13), r12
18
loadb -0x4567892(r9), sp
19
loadb 0x9(sp)+, ra
20
loadb -34(r13)+, r2
21
loadb 0x45(r9,r12,2), r13
22
loadb -657(r15,r7,1), r14
23
 
24
        .global loadw
25
loadw:
26
loadw 0632, r1
27
loadw 87632, r2
28
loadw 0xffff0006, r3
29
loadw 2(r15), r4
30
loadw 0(sp), r6
31
loadw 0456(r6), r7
32
loadw -0x7ff(r8), r10
33
loadw 456789(r13), r12
34
loadw -16777216(r9), sp
35
loadw 010(r2)+, ra
36
loadw -0x34(r13)+, r2
37
loadw 045(r9,r12,4), r13
38
loadw -0x6657(r15,r7,8), r14
39
 
40
        .global loadd
41
loadd:
42
loadd 0xfff1, r1
43
loadd 0xffefffef, r2
44
loadd 0xffff1234, r3
45
loadd 10(r0), r4
46
loadd 0(sp), r6
47
loadd 0x100(r6), r7
48
loadd -0x100(r8), r10
49
loadd 0220000(r13), r12
50
loadd -014400000(r9), sp
51
loadd 07(sp)+, ra
52
loadd -50(ra)+, r2
53
loadd 45(r9,r12,2), r13
54
loadd -0657(r15,r7,1), r14
55
 
56
# Store instructions (register/immediate to memory).
57
        .global storb
58
storb:
59
storb r1, 0x632
60
storb r2, 0x87632
61
storb r3, 0xffff1234
62
storb r4, 9(r5)
63
storb r6, 0(sp)
64
storb r7, 0x456(r6)
65
storb r10, -0x456(r8)
66
storb r12, 0x45678(r13)
67
storb sp, -0x4567892(r9)
68
storb ra, 0x9(sp)+
69
storb r2, -34(r13)+
70
storb r13, 0x45(r9,r12,2)
71
storb r14, -657(r15,r7,1)
72
storb $5, 9(r4)
73
storb $15, -0xfed(r3)
74
 
75
        .global storw
76
storw:
77
storw r1, 0632
78
storw r2, 87632
79
storw r3, 0xffff0006
80
storw r4, 2(r15)
81
storw r6, 0(sp)
82
storw r7, 0456(r6)
83
storw r10, -0x7ff(r8)
84
storw r12, 456789(r13)
85
storw sp, -16777216(r9)
86
storw ra, 010(r2)+
87
storw r2, -0x34(r13)+
88
storw r13, 045(r9,r12,4)
89
storw r14, -0x6657(r15,r7,8)
90
storw $01, 0x632
91
storw $0x7, 0x87632
92
 
93
        .global stord
94
stord:
95
stord r1, 0xfff1
96
stord r2, 0xffefffef
97
stord r3, 0xffff0001
98
stord r4, 10(r0)
99
stord r6, 0(sp)
100
stord r7, 0x100(r6)
101
stord r10, -0x100(r8)
102
stord r12, 0220000(r13)
103
stord sp, -014400000(r9)
104
stord ra, 07(sp)+
105
stord r2, -50(ra)+
106
stord r13, 45(r9,r12,2)
107
stord r14, -0657(r15,r7,1)
108
stord $0xf, 05(r10)+
109
stord $0x0, -034(r11)+
110
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.