Annotation of researchv10no/cmd/lcc/gen2/sparc-sun/tst/array.s, revision 1.1.1.1

1.1       root        1: .seg "text"
                      2: .global _main
                      3: .align 4
                      4: .proc 4
                      5: _main:save %sp,-144,%sp
                      6: mov %r0,%r28
                      7: L2:
                      8: mov %r0,%r29
                      9: L6:
                     10: set 1000,%r26
                     11: mov %r28,%o1; call .mul,2; mov %r26,%o0; mov %o0,%r26
                     12: add %r26,%r29,%r26
                     13: sll %r29,2,%r25
                     14: sll %r28,4,%r24
                     15: set _x,%r23
                     16: add %r24,%r23,%r24
                     17: st %r26,[%r25+%r24]
                     18: L7:
                     19: add %r29,1,%r29
                     20: cmp %r29,4; bl L6; nop
                     21: sll %r28,4,%r26
                     22: set _x,%r25
                     23: add %r26,%r25,%r26
                     24: sll %r28,2,%r25
                     25: set _y,%r24
                     26: st %r26,[%r25+%r24]
                     27: L3:
                     28: add %r28,1,%r28
                     29: cmp %r28,3; bl L2; nop
                     30: call _f; nop
                     31: mov %r0,%r28
                     32: L10:
                     33: sll %r28,4,%r26
                     34: add -48,%fp,%r25
                     35: add %r26,%r25,%r26
                     36: mov %r26,%r27
                     37: sll %r28,2,%r25
                     38: set _y,%r24
                     39: st %r26,[%r25+%r24]
                     40: mov %r0,%r29
                     41: L14:
                     42: sll %r29,2,%r26
                     43: sll %r28,4,%r25
                     44: set _x,%r24
                     45: add %r25,%r24,%r25
                     46: ld [%r26+%r25],%r25
                     47: st %r25,[%r26+%r27]
                     48: L15:
                     49: add %r29,1,%r29
                     50: cmp %r29,4; bl L14; nop
                     51: L11:
                     52: add %r28,1,%r28
                     53: cmp %r28,3; bl L10; nop
                     54: add -48,%fp,%r8
                     55: set _y,%r9
                     56: call _g; nop
                     57: mov %r0,%r24
                     58: L1:
                     59: ret; restore
                     60: .global _f
                     61: .align 4
                     62: .proc 4
                     63: _f:save %sp,-96,%sp
                     64: mov %r0,%r28
                     65: L19:
                     66: mov %r0,%r29
                     67: L23:
                     68: set L27,%r8
                     69: sll %r29,2,%r27
                     70: sll %r28,4,%r26
                     71: set _x,%r25
                     72: add %r26,%r25,%r26
                     73: ld [%r27+%r26],%r9
                     74: call _printf; nop
                     75: L24:
                     76: add %r29,1,%r29
                     77: cmp %r29,4; bl L23; nop
                     78: L20:
                     79: add %r28,1,%r28
                     80: cmp %r28,3; bl L19; nop
                     81: set L28,%r8
                     82: call _printf; nop
                     83: mov %r0,%r28
                     84: L29:
                     85: mov %r0,%r29
                     86: L33:
                     87: set L27,%r8
                     88: sll %r29,2,%r27
                     89: sll %r28,2,%r26
                     90: set _y,%r25
                     91: ld [%r26+%r25],%r26
                     92: ld [%r27+%r26],%r9
                     93: call _printf; nop
                     94: L34:
                     95: add %r29,1,%r29
                     96: cmp %r29,4; bl L33; nop
                     97: L30:
                     98: add %r28,1,%r28
                     99: cmp %r28,3; bl L29; nop
                    100: set L28,%r8
                    101: call _printf; nop
                    102: L18:
                    103: ret; restore
                    104: .global _g
                    105: .align 4
                    106: .proc 4
                    107: _g:save %sp,-96,%sp
                    108: mov %r0,%r28
                    109: L38:
                    110: mov %r0,%r29
                    111: L42:
                    112: set L27,%r8
                    113: sll %r29,2,%r27
                    114: sll %r28,4,%r26
                    115: add %r26,%r24,%r26
                    116: ld [%r27+%r26],%r9
                    117: call _printf; nop
                    118: L43:
                    119: add %r29,1,%r29
                    120: cmp %r29,4; bl L42; nop
                    121: L39:
                    122: add %r28,1,%r28
                    123: cmp %r28,3; bl L38; nop
                    124: set L28,%r8
                    125: call _printf; nop
                    126: mov %r0,%r28
                    127: L46:
                    128: mov %r0,%r29
                    129: L50:
                    130: set L27,%r8
                    131: sll %r29,2,%r27
                    132: sll %r28,2,%r26
                    133: ld [%r26+%r25],%r26
                    134: ld [%r27+%r26],%r9
                    135: call _printf; nop
                    136: L51:
                    137: add %r29,1,%r29
                    138: cmp %r29,4; bl L50; nop
                    139: L47:
                    140: add %r28,1,%r28
                    141: cmp %r28,3; bl L46; nop
                    142: set L28,%r8
                    143: call _printf; nop
                    144: L37:
                    145: ret; restore
                    146: .seg "bss"
                    147: .global _y
                    148: .align 4; .common _y,12
                    149: .global _x
                    150: .align 4; .common _x,48
                    151: .seg "text"
                    152: L28:.byte 10,0
                    153: L27:.ascii " %d\000"

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.