OpenCores
URL https://opencores.org/ocsvn/eco32/eco32/trunk

Subversion Repositories eco32

[/] [eco32/] [tags/] [eco32-0.23/] [lcc/] [x86/] [linux/] [tst/] [cf.sbk] - Diff between revs 4 and 157

Only display areas with differences | Details | Blame | View Log

Rev 4 Rev 157
.globl main
.globl main
.text
.text
.align 16
.align 16
.type main,@function
.type main,@function
main:
main:
pushl %ebp
pushl %ebp
pushl %ebx
pushl %ebx
pushl %esi
pushl %esi
pushl %edi
pushl %edi
movl %esp,%ebp
movl %esp,%ebp
subl $24,%esp
subl $24,%esp
cmpl $1,20(%ebp)
cmpl $1,20(%ebp)
jg .LC2
jg .LC2
flds .LC4
flds .LC4
fstps -16(%ebp)
fstps -16(%ebp)
jmp .LC3
jmp .LC3
.LC2:
.LC2:
movl 24(%ebp),%edi
movl 24(%ebp),%edi
pushl 4(%edi)
pushl 4(%edi)
call atof
call atof
addl $4,%esp
addl $4,%esp
fstps -20(%ebp)
fstps -20(%ebp)
flds -20(%ebp)
flds -20(%ebp)
fdivs .LC5
fdivs .LC5
fstps -16(%ebp)
fstps -16(%ebp)
.LC3:
.LC3:
movl $0,-4(%ebp)
movl $0,-4(%ebp)
.LC6:
.LC6:
movl -4(%ebp),%edi
movl -4(%ebp),%edi
leal 1(%edi),%esi
leal 1(%edi),%esi
movl %esi,-4(%ebp)
movl %esi,-4(%ebp)
flds .LC4
flds .LC4
fstps f(,%edi,4)
fstps f(,%edi,4)
.LC7:
.LC7:
cmpl $127,-4(%ebp)
cmpl $127,-4(%ebp)
jle .LC6
jle .LC6
movl $0,-8(%ebp)
movl $0,-8(%ebp)
jmp .LC11
jmp .LC11
.LC10:
.LC10:
movl -12(%ebp),%edi
movl -12(%ebp),%edi
leal f(,%edi,4),%edi
leal f(,%edi,4),%edi
flds (,%edi)
flds (,%edi)
fadds .LC13
fadds .LC13
fstps (,%edi)
fstps (,%edi)
incl -8(%ebp)
incl -8(%ebp)
.LC11:
.LC11:
call getchar
call getchar
movl %eax,-12(%ebp)
movl %eax,-12(%ebp)
cmpl $-1,%eax
cmpl $-1,%eax
jne .LC10
jne .LC10
pushl $.LC14
pushl $.LC14
call printf
call printf
addl $4,%esp
addl $4,%esp
movl $0,-4(%ebp)
movl $0,-4(%ebp)
.LC15:
.LC15:
movl -4(%ebp),%edi
movl -4(%ebp),%edi
flds f(,%edi,4)
flds f(,%edi,4)
fstps -24(%ebp)
fstps -24(%ebp)
flds .LC4
flds .LC4
fcomps -24(%ebp)
fcomps -24(%ebp)
fstsw %ax
fstsw %ax
sahf
sahf
jp 1f
jp 1f
je .LC19
je .LC19
1:
1:
flds -24(%ebp)
flds -24(%ebp)
fildl -8(%ebp)
fildl -8(%ebp)
fdivrp %st,%st(1)
fdivrp %st,%st(1)
flds -16(%ebp)
flds -16(%ebp)
fcompp
fcompp
fstsw %ax
fstsw %ax
sahf
sahf
jp .LC19
jp .LC19
ja .LC19
ja .LC19
cmpl $32,-4(%ebp)
cmpl $32,-4(%ebp)
jg .LC21
jg .LC21
pushl -4(%ebp)
pushl -4(%ebp)
pushl $.LC23
pushl $.LC23
call printf
call printf
addl $8,%esp
addl $8,%esp
jmp .LC22
jmp .LC22
.LC21:
.LC21:
pushl -4(%ebp)
pushl -4(%ebp)
pushl $.LC24
pushl $.LC24
call printf
call printf
addl $8,%esp
addl $8,%esp
.LC22:
.LC22:
flds .LC5
flds .LC5
movl -4(%ebp),%edi
movl -4(%ebp),%edi
fmuls f(,%edi,4)
fmuls f(,%edi,4)
fildl -8(%ebp)
fildl -8(%ebp)
fdivrp %st,%st(1)
fdivrp %st,%st(1)
subl $8,%esp
subl $8,%esp
fstpl (%esp)
fstpl (%esp)
pushl $.LC25
pushl $.LC25
call printf
call printf
addl $12,%esp
addl $12,%esp
.LC19:
.LC19:
.LC16:
.LC16:
incl -4(%ebp)
incl -4(%ebp)
cmpl $127,-4(%ebp)
cmpl $127,-4(%ebp)
jle .LC15
jle .LC15
mov $0,%eax
mov $0,%eax
.LC1:
.LC1:
movl %ebp,%esp
movl %ebp,%esp
popl %edi
popl %edi
popl %esi
popl %esi
popl %ebx
popl %ebx
popl %ebp
popl %ebp
ret
ret
.Lf26:
.Lf26:
.size main,.Lf26-main
.size main,.Lf26-main
.bss
.bss
.globl f
.globl f
.align 4
.align 4
.type f,@object
.type f,@object
.size f,512
.size f,512
.comm f,512
.comm f,512
.data
.data
.align 1
.align 1
.LC25:
.LC25:
.byte 9
.byte 9
.byte 37
.byte 37
.byte 46
.byte 46
.byte 49
.byte 49
.byte 102
.byte 102
.byte 10
.byte 10
.byte 0
.byte 0
.align 1
.align 1
.LC24:
.LC24:
.byte 37
.byte 37
.byte 99
.byte 99
.byte 0
.byte 0
.align 1
.align 1
.LC23:
.LC23:
.byte 37
.byte 37
.byte 48
.byte 48
.byte 51
.byte 51
.byte 111
.byte 111
.byte 0
.byte 0
.align 1
.align 1
.LC14:
.LC14:
.byte 99
.byte 99
.byte 104
.byte 104
.byte 97
.byte 97
.byte 114
.byte 114
.byte 9
.byte 9
.byte 102
.byte 102
.byte 114
.byte 114
.byte 101
.byte 101
.byte 113
.byte 113
.byte 10
.byte 10
.byte 0
.byte 0
.align 4
.align 4
.LC13:
.LC13:
.long 1065353216
.long 1065353216
.align 4
.align 4
.LC5:
.LC5:
.long 1120403456
.long 1120403456
.align 4
.align 4
.LC4:
.LC4:
.long 0
.long 0
.text
.text
.ident "LCC: 4.1"
.ident "LCC: 4.1"
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.