| 1 |
#source: greg-1.s |
| 2 |
#source: gregget1.s |
| 3 |
#source: start.s |
| 4 |
#source: a.s |
| 5 |
#as: -x |
| 6 |
#ld: -m elf64mmix |
| 7 |
#objdump: -dt |
| 8 |
|
| 9 |
# A greg usage with an expanding insn. The register reloc must be |
| 10 |
# evaluated before the expanding reloc. Here, it doesn't appear in the |
| 11 |
# wrong order, and it doesn't seem like they would naturally appear in the |
| 12 |
# wrong order, but anyway. |
| 13 |
|
| 14 |
.*: file format elf64-mmix |
| 15 |
|
| 16 |
SYMBOL TABLE: |
| 17 |
0+ l d \.text 0+ (|\.text) |
| 18 |
2000000000000000 l d \.data 0+ (|\.data) |
| 19 |
2000000000000000 l d \.sbss 0+ (|\.sbss) |
| 20 |
2000000000000000 l d \.bss 0+ (|\.bss) |
| 21 |
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents) |
| 22 |
0+ l d \*ABS\* 0+ (|\.shstrtab) |
| 23 |
0+ l d \*ABS\* 0+ (|\.symtab) |
| 24 |
0+ l d \*ABS\* 0+ (|\.strtab) |
| 25 |
0+10 g \.text 0+ _start |
| 26 |
0+fe g \*REG\* 0+ areg |
| 27 |
#... |
| 28 |
0+14 g \.text 0+ a |
| 29 |
|
| 30 |
Disassembly of section \.text: |
| 31 |
|
| 32 |
0+ <_start-0x10>: |
| 33 |
0: e3fe0014 setl \$254,0x14 |
| 34 |
4: e6fe0000 incml \$254,0x0 |
| 35 |
8: e5fe0000 incmh \$254,0x0 |
| 36 |
c: e4fe0000 inch \$254,0x0 |
| 37 |
|
| 38 |
0+10 <_start>: |
| 39 |
10: e3fd0001 setl \$253,0x1 |
| 40 |
|
| 41 |
0+14 <a>: |
| 42 |
14: e3fd0004 setl \$253,0x4 |