Last change
on this file since 1968 was 1968, checked in by Silvan Scherrer, 8 years ago |
binutils: update vendor to version 2.27. some files are missing, due to a svn bug with @ in the name. But as it's only in the testsuite I don't care atm
|
File size:
649 bytes
|
Line | |
---|
1 | .cpu generic
|
---|
2 | .global ff
|
---|
3 | .section .tbss,"awT",%nobits
|
---|
4 | .align 3
|
---|
5 | .type ff, %object
|
---|
6 | .size ff, 67108864
|
---|
7 | ff:
|
---|
8 | .zero 67108864
|
---|
9 | .global i
|
---|
10 | .align 2
|
---|
11 | .type i, %object
|
---|
12 | .size i, 4
|
---|
13 | i:
|
---|
14 | .zero 4
|
---|
15 | .text
|
---|
16 | .align 2
|
---|
17 | .global main
|
---|
18 | .type main, %function
|
---|
19 | main:
|
---|
20 | sub sp, sp, #16
|
---|
21 | str wzr, [sp,12]
|
---|
22 | b .L2
|
---|
23 | .L3:
|
---|
24 | mrs x0, tpidr_el0
|
---|
25 | add x1, x0, #:tprel_hi12:ff
|
---|
26 | add x1, x1, #:tprel_lo12_nc:ff
|
---|
27 | ldrsw x0, [sp,12]
|
---|
28 | mov w2, 7
|
---|
29 | strb w2, [x1,x0]
|
---|
30 | ldr w0, [sp,12]
|
---|
31 | add w0, w0, 1
|
---|
32 | str w0, [sp,12]
|
---|
33 | .L2:
|
---|
34 | ldr w0, [sp,12]
|
---|
35 | cmp w0, 999
|
---|
36 | ble .L3
|
---|
37 | mrs x0, tpidr_el0
|
---|
38 | add x0, x0, #:tprel_hi12:i
|
---|
39 | add x0, x0, #:tprel_lo12_nc:i
|
---|
40 | ldr w0, [x0]
|
---|
41 | add sp, sp, 16
|
---|
42 | ret
|
---|
43 | .size main, .-main
|
---|
Note:
See
TracBrowser
for help on using the repository browser.