Annotation of researchv10no/cmd/lcc/gen2/mips-iris/tst/cvt.s, revision 1.1.1.1

1.1       root        1: .set reorder
                      2: .text
                      3: .globl main
                      4: .text
                      5: .align 2; .ent main
                      6: main:
                      7: $fp1=80
                      8: .frame $sp,80,$31
                      9: addu $sp,$sp,-80
                     10: .fmask 0xf0000000,-24
                     11: s.d $f28,48($sp)
                     12: s.d $f30,56($sp)
                     13: .mask 0xc0c00000,-4
                     14: sw $22,64($sp)
                     15: sw $23,68($sp)
                     16: sw $30,72($sp)
                     17: sw $31,76($sp)
                     18: li $25,1
                     19: sb $25,c
                     20: lb $25,c
                     21: move $24,$25
                     22: sh $24,s
                     23: sw $25,i
                     24: move $24,$25
                     25: move $15,$24
                     26: sb $15,C
                     27: move $15,$24
                     28: sh $15,S
                     29: sw $24,I
                     30: mtc1 $25,$f18; cvt.d.w $f18,$f18
                     31: cvt.s.d $f16,$f18
                     32: s.s $f16,f
                     33: s.d $f18,d
                     34: la $4,L.2
                     35: move $5,$25
                     36: lh $6,s
                     37: lw $7,i
                     38: lbu $25,C
                     39: sw $25,16($sp)
                     40: lhu $25,S
                     41: sw $25,20($sp)
                     42: lw $25,I
                     43: sw $25,24($sp)
                     44: l.s $f18,f
                     45: cvt.d.s $f18,$f18
                     46: s.d $f18,32($sp)
                     47: l.d $f18,d
                     48: s.d $f18,40($sp)
                     49: jal printf  # int
                     50: li $25,2
                     51: sh $25,s
                     52: lh $25,s
                     53: move $24,$25
                     54: sb $24,c
                     55: sw $25,i
                     56: move $24,$25
                     57: move $15,$24
                     58: sb $15,C
                     59: move $15,$24
                     60: sh $15,S
                     61: sw $24,I
                     62: mtc1 $25,$f18; cvt.d.w $f18,$f18
                     63: cvt.s.d $f16,$f18
                     64: s.s $f16,f
                     65: s.d $f18,d
                     66: la $4,L.2
                     67: lb $5,c
                     68: move $6,$25
                     69: lw $7,i
                     70: lbu $25,C
                     71: sw $25,16($sp)
                     72: lhu $25,S
                     73: sw $25,20($sp)
                     74: lw $25,I
                     75: sw $25,24($sp)
                     76: l.s $f18,f
                     77: cvt.d.s $f18,$f18
                     78: s.d $f18,32($sp)
                     79: l.d $f18,d
                     80: s.d $f18,40($sp)
                     81: jal printf  # int
                     82: li $25,3
                     83: sw $25,i
                     84: lw $25,i
                     85: move $24,$25
                     86: sb $24,c
                     87: move $24,$25
                     88: sh $24,s
                     89: move $24,$25
                     90: move $15,$24
                     91: sb $15,C
                     92: move $15,$24
                     93: sh $15,S
                     94: sw $24,I
                     95: mtc1 $25,$f18; cvt.d.w $f18,$f18
                     96: cvt.s.d $f16,$f18
                     97: s.s $f16,f
                     98: s.d $f18,d
                     99: la $4,L.2
                    100: lb $5,c
                    101: lh $6,s
                    102: move $7,$25
                    103: lbu $25,C
                    104: sw $25,16($sp)
                    105: lhu $25,S
                    106: sw $25,20($sp)
                    107: lw $25,I
                    108: sw $25,24($sp)
                    109: l.s $f18,f
                    110: cvt.d.s $f18,$f18
                    111: s.d $f18,32($sp)
                    112: l.d $f18,d
                    113: s.d $f18,40($sp)
                    114: jal printf  # int
                    115: li $25,4
                    116: sb $25,C
                    117: lbu $25,C
                    118: move $24,$25
                    119: move $15,$24
                    120: sb $15,c
                    121: move $15,$24
                    122: sh $15,s
                    123: sw $24,i
                    124: move $24,$25
                    125: sh $24,S
                    126: sw $25,I
                    127: lbu $25,C
                    128: blt $25,$0,L.4
                    129: mtc1 $25,$f30; cvt.d.w $f30,$f30
                    130: b L.5
                    131: L.4:
                    132: mtc1 $25,$f18; cvt.d.w $f18,$f18
                    133: l.d $f16,L.6
                    134: add.d $f30,$f18,$f16
                    135: L.5:
                    136: cvt.s.d $f18,$f30
                    137: s.s $f18,f
                    138: lbu $25,C
                    139: blt $25,$0,L.8
                    140: mtc1 $25,$f28; cvt.d.w $f28,$f28
                    141: b L.9
                    142: L.8:
                    143: mtc1 $25,$f18; cvt.d.w $f18,$f18
                    144: l.d $f16,L.6
                    145: add.d $f28,$f18,$f16
                    146: L.9:
                    147: s.d $f28,d
                    148: la $4,L.2
                    149: lb $5,c
                    150: lh $6,s
                    151: lw $7,i
                    152: lbu $25,C
                    153: sw $25,16($sp)
                    154: lhu $25,S
                    155: sw $25,20($sp)
                    156: lw $25,I
                    157: sw $25,24($sp)
                    158: l.s $f18,f
                    159: cvt.d.s $f18,$f18
                    160: s.d $f18,32($sp)
                    161: l.d $f18,d
                    162: s.d $f18,40($sp)
                    163: jal printf  # int
                    164: li $25,5
                    165: sh $25,S
                    166: lhu $25,S
                    167: move $24,$25
                    168: move $15,$24
                    169: sb $15,c
                    170: move $15,$24
                    171: sh $15,s
                    172: sw $24,i
                    173: move $24,$25
                    174: sb $24,C
                    175: sw $25,I
                    176: lhu $25,S
                    177: blt $25,$0,L.11
                    178: mtc1 $25,$f30; cvt.d.w $f30,$f30
                    179: b L.12
                    180: L.11:
                    181: mtc1 $25,$f18; cvt.d.w $f18,$f18
                    182: l.d $f16,L.6
                    183: add.d $f30,$f18,$f16
                    184: L.12:
                    185: cvt.s.d $f18,$f30
                    186: s.s $f18,f
                    187: lhu $25,S
                    188: blt $25,$0,L.14
                    189: mtc1 $25,$f28; cvt.d.w $f28,$f28
                    190: b L.15
                    191: L.14:
                    192: mtc1 $25,$f18; cvt.d.w $f18,$f18
                    193: l.d $f16,L.6
                    194: add.d $f28,$f18,$f16
                    195: L.15:
                    196: s.d $f28,d
                    197: la $4,L.2
                    198: lb $5,c
                    199: lh $6,s
                    200: lw $7,i
                    201: lbu $25,C
                    202: sw $25,16($sp)
                    203: lhu $25,S
                    204: sw $25,20($sp)
                    205: lw $25,I
                    206: sw $25,24($sp)
                    207: l.s $f18,f
                    208: cvt.d.s $f18,$f18
                    209: s.d $f18,32($sp)
                    210: l.d $f18,d
                    211: s.d $f18,40($sp)
                    212: jal printf  # int
                    213: li $25,6
                    214: sw $25,I
                    215: lw $25,I
                    216: move $24,$25
                    217: move $15,$24
                    218: sb $15,c
                    219: move $15,$24
                    220: sh $15,s
                    221: sw $24,i
                    222: move $24,$25
                    223: sb $24,C
                    224: sh $25,S
                    225: lw $25,I
                    226: blt $25,$0,L.17
                    227: mtc1 $25,$f30; cvt.d.w $f30,$f30
                    228: b L.18
                    229: L.17:
                    230: mtc1 $25,$f18; cvt.d.w $f18,$f18
                    231: l.d $f16,L.6
                    232: add.d $f30,$f18,$f16
                    233: L.18:
                    234: cvt.s.d $f18,$f30
                    235: s.s $f18,f
                    236: lw $25,I
                    237: blt $25,$0,L.20
                    238: mtc1 $25,$f28; cvt.d.w $f28,$f28
                    239: b L.21
                    240: L.20:
                    241: mtc1 $25,$f18; cvt.d.w $f18,$f18
                    242: l.d $f16,L.6
                    243: add.d $f28,$f18,$f16
                    244: L.21:
                    245: s.d $f28,d
                    246: la $4,L.2
                    247: lb $5,c
                    248: lh $6,s
                    249: lw $7,i
                    250: lbu $25,C
                    251: sw $25,16($sp)
                    252: lhu $25,S
                    253: sw $25,20($sp)
                    254: lw $25,I
                    255: sw $25,24($sp)
                    256: l.s $f18,f
                    257: cvt.d.s $f18,$f18
                    258: s.d $f18,32($sp)
                    259: l.d $f18,d
                    260: s.d $f18,40($sp)
                    261: jal printf  # int
                    262: l.s $f18,L.22
                    263: s.s $f18,f
                    264: l.s $f18,f
                    265: trunc.w.s $f2,$f18,$25; mfc1 $25,$f2
                    266: move $24,$25
                    267: sb $24,c
                    268: move $24,$25
                    269: sh $24,s
                    270: sw $25,i
                    271: l.s $f18,f
                    272: cvt.d.s $f16,$f18
                    273: l.d $f10,L.26
                    274: c.lt.d $f16,$f10; bc1t L.24
                    275: sub.d $f16,$f16,$f10
                    276: trunc.w.d $f2,$f16,$25; mfc1 $25,$f2
                    277: addu $30,$25,0x80000000
                    278: b L.25
                    279: L.24:
                    280: trunc.w.s $f2,$f18,$30; mfc1 $30,$f2
                    281: L.25:
                    282: sb $30,C
                    283: l.s $f18,f
                    284: cvt.d.s $f16,$f18
                    285: l.d $f10,L.26
                    286: c.lt.d $f16,$f10; bc1t L.28
                    287: sub.d $f16,$f16,$f10
                    288: trunc.w.d $f2,$f16,$25; mfc1 $25,$f2
                    289: addu $23,$25,0x80000000
                    290: b L.29
                    291: L.28:
                    292: trunc.w.s $f2,$f18,$23; mfc1 $23,$f2
                    293: L.29:
                    294: sh $23,S
                    295: l.s $f18,f
                    296: cvt.d.s $f16,$f18
                    297: l.d $f10,L.26
                    298: c.lt.d $f16,$f10; bc1t L.31
                    299: sub.d $f16,$f16,$f10
                    300: trunc.w.d $f2,$f16,$25; mfc1 $25,$f2
                    301: addu $22,$25,0x80000000
                    302: b L.32
                    303: L.31:
                    304: trunc.w.s $f2,$f18,$22; mfc1 $22,$f2
                    305: L.32:
                    306: sw $22,I
                    307: l.s $f18,f
                    308: cvt.d.s $f18,$f18
                    309: s.d $f18,d
                    310: la $4,L.2
                    311: lb $5,c
                    312: lh $6,s
                    313: lw $7,i
                    314: lbu $25,C
                    315: sw $25,16($sp)
                    316: lhu $25,S
                    317: sw $25,20($sp)
                    318: lw $25,I
                    319: sw $25,24($sp)
                    320: s.d $f18,32($sp)
                    321: l.d $f18,d
                    322: s.d $f18,40($sp)
                    323: jal printf  # int
                    324: l.d $f18,L.33
                    325: s.d $f18,d
                    326: l.d $f18,d
                    327: trunc.w.d $f2,$f18,$25; mfc1 $25,$f2
                    328: move $24,$25
                    329: sb $24,c
                    330: move $24,$25
                    331: sh $24,s
                    332: sw $25,i
                    333: l.d $f18,d
                    334: l.d $f16,L.26
                    335: c.lt.d $f18,$f16; bc1t L.35
                    336: sub.d $f16,$f18,$f16
                    337: trunc.w.d $f2,$f16,$25; mfc1 $25,$f2
                    338: addu $30,$25,0x80000000
                    339: b L.36
                    340: L.35:
                    341: trunc.w.d $f2,$f18,$30; mfc1 $30,$f2
                    342: L.36:
                    343: sb $30,C
                    344: l.d $f18,d
                    345: l.d $f16,L.26
                    346: c.lt.d $f18,$f16; bc1t L.38
                    347: sub.d $f16,$f18,$f16
                    348: trunc.w.d $f2,$f16,$25; mfc1 $25,$f2
                    349: addu $23,$25,0x80000000
                    350: b L.39
                    351: L.38:
                    352: trunc.w.d $f2,$f18,$23; mfc1 $23,$f2
                    353: L.39:
                    354: sh $23,S
                    355: l.d $f18,d
                    356: l.d $f16,L.26
                    357: c.lt.d $f18,$f16; bc1t L.41
                    358: sub.d $f16,$f18,$f16
                    359: trunc.w.d $f2,$f16,$25; mfc1 $25,$f2
                    360: addu $22,$25,0x80000000
                    361: b L.42
                    362: L.41:
                    363: trunc.w.d $f2,$f18,$22; mfc1 $22,$f2
                    364: L.42:
                    365: sw $22,I
                    366: l.d $f18,d
                    367: cvt.s.d $f16,$f18
                    368: s.s $f16,f
                    369: la $4,L.2
                    370: lb $5,c
                    371: lh $6,s
                    372: lw $7,i
                    373: lbu $25,C
                    374: sw $25,16($sp)
                    375: lhu $25,S
                    376: sw $25,20($sp)
                    377: lw $25,I
                    378: sw $25,24($sp)
                    379: l.s $f16,f
                    380: cvt.d.s $f16,$f16
                    381: s.d $f16,32($sp)
                    382: s.d $f18,40($sp)
                    383: jal printf  # int
                    384: L.1:
                    385: l.d $f28,48($sp)
                    386: l.d $f30,56($sp)
                    387: lw $22,64($sp)
                    388: lw $23,68($sp)
                    389: lw $30,72($sp)
                    390: lw $31,76($sp)
                    391: addu $sp,$sp,80
                    392: j $31
                    393: .end main
                    394: .globl d2
                    395: .comm d2,8
                    396: .globl d1
                    397: .comm d1,8
                    398: .globl d
                    399: .comm d,8
                    400: .globl f2
                    401: .comm f2,4
                    402: .globl f1
                    403: .comm f1,4
                    404: .globl f
                    405: .comm f,4
                    406: .globl I
                    407: .comm I,4
                    408: .globl S
                    409: .comm S,2
                    410: .globl C
                    411: .comm C,1
                    412: .globl i2
                    413: .comm i2,4
                    414: .globl i1
                    415: .comm i1,4
                    416: .globl i
                    417: .comm i,4
                    418: .globl s
                    419: .comm s,2
                    420: .globl c2
                    421: .comm c2,1
                    422: .globl c1
                    423: .comm c1,1
                    424: .globl c
                    425: .comm c,1
                    426: .rdata
                    427: .align 3; L.33:.word 0x40200000
                    428: .word 0x0
                    429: .align 3; L.26:.word 0x41e00000
                    430: .word 0x0
                    431: .align 2; L.22:.word 0x40e00000
                    432: .align 3; L.6:.word 0x41f00000
                    433: .word 0x0
                    434: L.2:.ascii "%d %d %d %d %d %d %f %f\012\000"

unix.superglobalmegacorp.com

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