Commit | Line | Data |
---|---|---|
e88b7c97 AM |
1 | four = 4 |
2 | .section ".text" | |
3 | foo: | |
4 | nop ; nop ; nop | |
5 | .globl a | |
6 | b .+4 | |
7 | b .+8 | |
8 | b x | |
9 | b y | |
10 | b z | |
11 | b z+20 | |
12 | b .+four | |
13 | b a | |
14 | b b | |
15 | b a+4 | |
16 | b b+4 | |
17 | .long . | |
18 | .long .+8 | |
19 | .long x-. | |
20 | .long x+4-. | |
21 | .long z-. | |
22 | .long y-. | |
23 | .long x | |
24 | .long y | |
25 | .long z | |
26 | .long x-four | |
27 | .long y-four | |
28 | .long z-four | |
29 | .long a-. | |
30 | .long b-. | |
31 | a: .long a | |
32 | b: .long b | |
33 | ||
34 | apfour = a + four | |
35 | .long apfour | |
36 | .long a-apfour | |
37 | .long apfour+2 | |
38 | .long apfour-b | |
39 | ||
40 | .section ".data" | |
41 | .globl x | |
42 | .globl z | |
43 | x: .long 0 | |
44 | z = . + 4 | |
45 | y: .long 0 | |
46 | ||
47 | .type foo,@function | |
48 | .type a,@function | |
49 | .type b,@function | |
50 | .type apfour,@function |