Commit | Line | Data |
---|---|---|
4762fe62 AB |
1 | # Check that CFI directives can accept all of the CSR names (including |
2 | # aliases). The results for this test also ensures that the DWARF | |
3 | # register numbers for the CSRs shouldn't change. | |
4 | ||
5 | .text | |
6 | .global _start | |
7 | _start: | |
8 | .cfi_startproc | |
9 | nop | |
10 | .cfi_offset ustatus, 0 | |
11 | .cfi_offset uie, 16 | |
12 | .cfi_offset utvec, 20 | |
13 | .cfi_offset uscratch, 256 | |
14 | .cfi_offset uepc, 260 | |
15 | .cfi_offset ucause, 264 | |
16 | .cfi_offset utval, 268 | |
17 | .cfi_offset uip, 272 | |
4762fe62 AB |
18 | .cfi_offset cycle, 12288 |
19 | .cfi_offset time, 12292 | |
20 | .cfi_offset instret, 12296 | |
21 | .cfi_offset hpmcounter3, 12300 | |
22 | .cfi_offset hpmcounter4, 12304 | |
23 | .cfi_offset hpmcounter5, 12308 | |
24 | .cfi_offset hpmcounter6, 12312 | |
25 | .cfi_offset hpmcounter7, 12316 | |
26 | .cfi_offset hpmcounter8, 12320 | |
27 | .cfi_offset hpmcounter9, 12324 | |
28 | .cfi_offset hpmcounter10, 12328 | |
29 | .cfi_offset hpmcounter11, 12332 | |
30 | .cfi_offset hpmcounter12, 12336 | |
31 | .cfi_offset hpmcounter13, 12340 | |
32 | .cfi_offset hpmcounter14, 12344 | |
33 | .cfi_offset hpmcounter15, 12348 | |
34 | .cfi_offset hpmcounter16, 12352 | |
35 | .cfi_offset hpmcounter17, 12356 | |
36 | .cfi_offset hpmcounter18, 12360 | |
37 | .cfi_offset hpmcounter19, 12364 | |
38 | .cfi_offset hpmcounter20, 12368 | |
39 | .cfi_offset hpmcounter21, 12372 | |
40 | .cfi_offset hpmcounter22, 12376 | |
41 | .cfi_offset hpmcounter23, 12380 | |
42 | .cfi_offset hpmcounter24, 12384 | |
43 | .cfi_offset hpmcounter25, 12388 | |
44 | .cfi_offset hpmcounter26, 12392 | |
45 | .cfi_offset hpmcounter27, 12396 | |
46 | .cfi_offset hpmcounter28, 12400 | |
47 | .cfi_offset hpmcounter29, 12404 | |
48 | .cfi_offset hpmcounter30, 12408 | |
49 | .cfi_offset hpmcounter31, 12412 | |
50 | .cfi_offset cycleh, 12800 | |
51 | .cfi_offset timeh, 12804 | |
52 | .cfi_offset instreth, 12808 | |
53 | .cfi_offset hpmcounter3h, 12812 | |
54 | .cfi_offset hpmcounter4h, 12816 | |
55 | .cfi_offset hpmcounter5h, 12820 | |
56 | .cfi_offset hpmcounter6h, 12824 | |
57 | .cfi_offset hpmcounter7h, 12828 | |
58 | .cfi_offset hpmcounter8h, 12832 | |
59 | .cfi_offset hpmcounter9h, 12836 | |
60 | .cfi_offset hpmcounter10h, 12840 | |
61 | .cfi_offset hpmcounter11h, 12844 | |
62 | .cfi_offset hpmcounter12h, 12848 | |
63 | .cfi_offset hpmcounter13h, 12852 | |
64 | .cfi_offset hpmcounter14h, 12856 | |
65 | .cfi_offset hpmcounter15h, 12860 | |
66 | .cfi_offset hpmcounter16h, 12864 | |
67 | .cfi_offset hpmcounter17h, 12868 | |
68 | .cfi_offset hpmcounter18h, 12872 | |
69 | .cfi_offset hpmcounter19h, 12876 | |
70 | .cfi_offset hpmcounter20h, 12880 | |
71 | .cfi_offset hpmcounter21h, 12884 | |
72 | .cfi_offset hpmcounter22h, 12888 | |
73 | .cfi_offset hpmcounter23h, 12892 | |
74 | .cfi_offset hpmcounter24h, 12896 | |
75 | .cfi_offset hpmcounter25h, 12900 | |
76 | .cfi_offset hpmcounter26h, 12904 | |
77 | .cfi_offset hpmcounter27h, 12908 | |
78 | .cfi_offset hpmcounter28h, 12912 | |
79 | .cfi_offset hpmcounter29h, 12916 | |
80 | .cfi_offset hpmcounter30h, 12920 | |
81 | .cfi_offset hpmcounter31h, 12924 | |
82 | .cfi_offset sstatus, 1024 | |
83 | .cfi_offset sedeleg, 1032 | |
84 | .cfi_offset sideleg, 1036 | |
85 | .cfi_offset sie, 1040 | |
86 | .cfi_offset stvec, 1044 | |
87 | .cfi_offset scounteren, 1048 | |
88 | .cfi_offset sscratch, 1280 | |
89 | .cfi_offset sepc, 1284 | |
90 | .cfi_offset scause, 1288 | |
91 | .cfi_offset stval, 1292 | |
92 | .cfi_offset sip, 1296 | |
93 | .cfi_offset satp, 1536 | |
94 | .cfi_offset mvendorid, 15428 | |
95 | .cfi_offset marchid, 15432 | |
96 | .cfi_offset mimpid, 15436 | |
97 | .cfi_offset mhartid, 15440 | |
98 | .cfi_offset mstatus, 3072 | |
99 | .cfi_offset misa, 3076 | |
100 | .cfi_offset medeleg, 3080 | |
101 | .cfi_offset mideleg, 3084 | |
102 | .cfi_offset mie, 3088 | |
103 | .cfi_offset mtvec, 3092 | |
104 | .cfi_offset mcounteren, 3096 | |
105 | .cfi_offset mscratch, 3328 | |
106 | .cfi_offset mepc, 3332 | |
107 | .cfi_offset mcause, 3336 | |
108 | .cfi_offset mtval, 3340 | |
109 | .cfi_offset mip, 3344 | |
110 | .cfi_offset pmpcfg0, 3712 | |
111 | .cfi_offset pmpcfg1, 3716 | |
112 | .cfi_offset pmpcfg2, 3720 | |
113 | .cfi_offset pmpcfg3, 3724 | |
114 | .cfi_offset pmpaddr0, 3776 | |
115 | .cfi_offset pmpaddr1, 3780 | |
116 | .cfi_offset pmpaddr2, 3784 | |
117 | .cfi_offset pmpaddr3, 3788 | |
118 | .cfi_offset pmpaddr4, 3792 | |
119 | .cfi_offset pmpaddr5, 3796 | |
120 | .cfi_offset pmpaddr6, 3800 | |
121 | .cfi_offset pmpaddr7, 3804 | |
122 | .cfi_offset pmpaddr8, 3808 | |
123 | .cfi_offset pmpaddr9, 3812 | |
124 | .cfi_offset pmpaddr10, 3816 | |
125 | .cfi_offset pmpaddr11, 3820 | |
126 | .cfi_offset pmpaddr12, 3824 | |
127 | .cfi_offset pmpaddr13, 3828 | |
128 | .cfi_offset pmpaddr14, 3832 | |
129 | .cfi_offset pmpaddr15, 3836 | |
130 | .cfi_offset mcycle, 11264 | |
131 | .cfi_offset minstret, 11272 | |
132 | .cfi_offset mhpmcounter3, 11276 | |
133 | .cfi_offset mhpmcounter4, 11280 | |
134 | .cfi_offset mhpmcounter5, 11284 | |
135 | .cfi_offset mhpmcounter6, 11288 | |
136 | .cfi_offset mhpmcounter7, 11292 | |
137 | .cfi_offset mhpmcounter8, 11296 | |
138 | .cfi_offset mhpmcounter9, 11300 | |
139 | .cfi_offset mhpmcounter10, 11304 | |
140 | .cfi_offset mhpmcounter11, 11308 | |
141 | .cfi_offset mhpmcounter12, 11312 | |
142 | .cfi_offset mhpmcounter13, 11316 | |
143 | .cfi_offset mhpmcounter14, 11320 | |
144 | .cfi_offset mhpmcounter15, 11324 | |
145 | .cfi_offset mhpmcounter16, 11328 | |
146 | .cfi_offset mhpmcounter17, 11332 | |
147 | .cfi_offset mhpmcounter18, 11336 | |
148 | .cfi_offset mhpmcounter19, 11340 | |
149 | .cfi_offset mhpmcounter20, 11344 | |
150 | .cfi_offset mhpmcounter21, 11348 | |
151 | .cfi_offset mhpmcounter22, 11352 | |
152 | .cfi_offset mhpmcounter23, 11356 | |
153 | .cfi_offset mhpmcounter24, 11360 | |
154 | .cfi_offset mhpmcounter25, 11364 | |
155 | .cfi_offset mhpmcounter26, 11368 | |
156 | .cfi_offset mhpmcounter27, 11372 | |
157 | .cfi_offset mhpmcounter28, 11376 | |
158 | .cfi_offset mhpmcounter29, 11380 | |
159 | .cfi_offset mhpmcounter30, 11384 | |
160 | .cfi_offset mhpmcounter31, 11388 | |
161 | .cfi_offset mcycleh, 11776 | |
162 | .cfi_offset minstreth, 11784 | |
163 | .cfi_offset mhpmcounter3h, 11788 | |
164 | .cfi_offset mhpmcounter4h, 11792 | |
165 | .cfi_offset mhpmcounter5h, 11796 | |
166 | .cfi_offset mhpmcounter6h, 11800 | |
167 | .cfi_offset mhpmcounter7h, 11804 | |
168 | .cfi_offset mhpmcounter8h, 11808 | |
169 | .cfi_offset mhpmcounter9h, 11812 | |
170 | .cfi_offset mhpmcounter10h, 11816 | |
171 | .cfi_offset mhpmcounter11h, 11820 | |
172 | .cfi_offset mhpmcounter12h, 11824 | |
173 | .cfi_offset mhpmcounter13h, 11828 | |
174 | .cfi_offset mhpmcounter14h, 11832 | |
175 | .cfi_offset mhpmcounter15h, 11836 | |
176 | .cfi_offset mhpmcounter16h, 11840 | |
177 | .cfi_offset mhpmcounter17h, 11844 | |
178 | .cfi_offset mhpmcounter18h, 11848 | |
179 | .cfi_offset mhpmcounter19h, 11852 | |
180 | .cfi_offset mhpmcounter20h, 11856 | |
181 | .cfi_offset mhpmcounter21h, 11860 | |
182 | .cfi_offset mhpmcounter22h, 11864 | |
183 | .cfi_offset mhpmcounter23h, 11868 | |
184 | .cfi_offset mhpmcounter24h, 11872 | |
185 | .cfi_offset mhpmcounter25h, 11876 | |
186 | .cfi_offset mhpmcounter26h, 11880 | |
187 | .cfi_offset mhpmcounter27h, 11884 | |
188 | .cfi_offset mhpmcounter28h, 11888 | |
189 | .cfi_offset mhpmcounter29h, 11892 | |
190 | .cfi_offset mhpmcounter30h, 11896 | |
191 | .cfi_offset mhpmcounter31h, 11900 | |
d1a89da5 | 192 | .cfi_offset mcountinhibit, 3200 |
4762fe62 AB |
193 | .cfi_offset mhpmevent3, 3212 |
194 | .cfi_offset mhpmevent4, 3216 | |
195 | .cfi_offset mhpmevent5, 3220 | |
196 | .cfi_offset mhpmevent6, 3224 | |
197 | .cfi_offset mhpmevent7, 3228 | |
198 | .cfi_offset mhpmevent8, 3232 | |
199 | .cfi_offset mhpmevent9, 3236 | |
200 | .cfi_offset mhpmevent10, 3240 | |
201 | .cfi_offset mhpmevent11, 3244 | |
202 | .cfi_offset mhpmevent12, 3248 | |
203 | .cfi_offset mhpmevent13, 3252 | |
204 | .cfi_offset mhpmevent14, 3256 | |
205 | .cfi_offset mhpmevent15, 3260 | |
206 | .cfi_offset mhpmevent16, 3264 | |
207 | .cfi_offset mhpmevent17, 3268 | |
208 | .cfi_offset mhpmevent18, 3272 | |
209 | .cfi_offset mhpmevent19, 3276 | |
210 | .cfi_offset mhpmevent20, 3280 | |
211 | .cfi_offset mhpmevent21, 3284 | |
212 | .cfi_offset mhpmevent22, 3288 | |
213 | .cfi_offset mhpmevent23, 3292 | |
214 | .cfi_offset mhpmevent24, 3296 | |
215 | .cfi_offset mhpmevent25, 3300 | |
216 | .cfi_offset mhpmevent26, 3304 | |
217 | .cfi_offset mhpmevent27, 3308 | |
218 | .cfi_offset mhpmevent28, 3312 | |
219 | .cfi_offset mhpmevent29, 3316 | |
220 | .cfi_offset mhpmevent30, 3320 | |
221 | .cfi_offset mhpmevent31, 3324 | |
08ccfccf | 222 | # dropped |
4762fe62 AB |
223 | .cfi_offset hstatus, 2048 |
224 | .cfi_offset hedeleg, 2056 | |
225 | .cfi_offset hideleg, 2060 | |
226 | .cfi_offset hie, 2064 | |
227 | .cfi_offset htvec, 2068 | |
228 | .cfi_offset hscratch, 2304 | |
229 | .cfi_offset hepc, 2308 | |
230 | .cfi_offset hcause, 2312 | |
231 | .cfi_offset hbadaddr, 2316 | |
232 | .cfi_offset hip, 2320 | |
233 | .cfi_offset mbase, 3584 | |
234 | .cfi_offset mbound, 3588 | |
235 | .cfi_offset mibase, 3592 | |
236 | .cfi_offset mibound, 3596 | |
237 | .cfi_offset mdbase, 3600 | |
238 | .cfi_offset mdbound, 3604 | |
4762fe62 AB |
239 | .cfi_offset mscounteren, 3204 |
240 | .cfi_offset mhcounteren, 3208 | |
08ccfccf NC |
241 | # unprivileged |
242 | .cfi_offset fflags, 4 | |
243 | .cfi_offset frm, 8 | |
244 | .cfi_offset fcsr, 12 | |
245 | .cfi_offset dcsr, 7872 | |
246 | .cfi_offset dpc, 7876 | |
247 | .cfi_offset dscratch0, 7880 | |
248 | .cfi_offset dscratch1, 7884 | |
249 | .cfi_offset tselect, 7808 | |
250 | .cfi_offset tdata1, 7812 | |
251 | .cfi_offset tdata2, 7816 | |
252 | .cfi_offset tdata3, 7820 | |
253 | .cfi_offset tinfo, 7824 | |
254 | .cfi_offset tcontrol, 7828 | |
255 | .cfi_offset mcontext, 7840 | |
256 | .cfi_offset scontext, 7848 | |
257 | # aliases | |
4762fe62 AB |
258 | .cfi_offset ubadaddr, 268 |
259 | .cfi_offset sbadaddr, 1292 | |
260 | .cfi_offset sptbr, 1536 | |
261 | .cfi_offset mbadaddr, 3340 | |
d1a89da5 NC |
262 | .cfi_offset mucounteren, 3200 |
263 | .cfi_offset dscratch, 7880 | |
08ccfccf NC |
264 | .cfi_offset mcontrol, 7812 |
265 | .cfi_offset icount, 7812 | |
266 | .cfi_offset itrigger, 7812 | |
267 | .cfi_offset etrigger, 7812 | |
268 | .cfi_offset textra32, 7820 | |
269 | .cfi_offset textra64, 7820 | |
4762fe62 AB |
270 | nop |
271 | .cfi_endproc |