Commit | Line | Data |
---|---|---|
e25de718 JL |
1 | .file "tester.c" |
2 | .text | |
3 | .global foo | |
4 | .section .rodata | |
5 | .LC0: | |
6 | .string "bar" | |
7 | .section .data,"aw",@progbits | |
8 | .balign 2 | |
9 | .type foo, @object | |
10 | .size foo, 2 | |
11 | foo: | |
12 | .short .LC0 | |
13 | .section .text,"ax",@progbits | |
14 | .balign 2 | |
15 | .global main | |
16 | .type main, @function | |
17 | main: | |
18 | ; start of function | |
19 | ; framesize_regs: 0 | |
20 | ; framesize_locals: 2 | |
21 | ; framesize_outgoing: 0 | |
22 | ; framesize: 2 | |
23 | ; elim ap -> fp 2 | |
24 | ; elim fp -> sp 2 | |
25 | ; saved regs:(none) | |
26 | ; start of prologue | |
27 | SUB.W #2, R1 | |
28 | ; end of prologue | |
29 | MOV.W #1, @R1 | |
30 | BR #.L2 | |
31 | .L3: | |
32 | MOV.W &foo, R12 | |
33 | ADD.W #-1, R12 | |
34 | MOV.W R12, &foo | |
35 | .L2: | |
36 | MOV.W @R1, R12 | |
37 | CMP.W #0, R12 { JNE .L3 | |
38 | MOV.B #0, R12 | |
39 | ; start of epilogue | |
40 | .refsym __crt0_call_exit | |
41 | ADD.W #2, R1 | |
42 | RET | |
43 | .size main, .-main | |
44 | .ident "GCC: (jozef) 7.3.2" |