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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [x86/] [linux/] [tst/] [cf.sbk] - Blame information for rev 253

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 4 hellwig
.globl main
2
.text
3
.align 16
4
.type main,@function
5
main:
6
pushl %ebp
7
pushl %ebx
8
pushl %esi
9
pushl %edi
10
movl %esp,%ebp
11
subl $24,%esp
12
cmpl $1,20(%ebp)
13
jg .LC2
14
flds .LC4
15
fstps -16(%ebp)
16
jmp .LC3
17
.LC2:
18
movl 24(%ebp),%edi
19
pushl 4(%edi)
20
call atof
21
addl $4,%esp
22
fstps -20(%ebp)
23
flds -20(%ebp)
24
fdivs .LC5
25
fstps -16(%ebp)
26
.LC3:
27
movl $0,-4(%ebp)
28
.LC6:
29
movl -4(%ebp),%edi
30
leal 1(%edi),%esi
31
movl %esi,-4(%ebp)
32
flds .LC4
33
fstps f(,%edi,4)
34
.LC7:
35
cmpl $127,-4(%ebp)
36
jle .LC6
37
movl $0,-8(%ebp)
38
jmp .LC11
39
.LC10:
40
movl -12(%ebp),%edi
41
leal f(,%edi,4),%edi
42
flds (,%edi)
43
fadds .LC13
44
fstps (,%edi)
45
incl -8(%ebp)
46
.LC11:
47
call getchar
48
movl %eax,-12(%ebp)
49
cmpl $-1,%eax
50
jne .LC10
51
pushl $.LC14
52
call printf
53
addl $4,%esp
54
movl $0,-4(%ebp)
55
.LC15:
56
movl -4(%ebp),%edi
57
flds f(,%edi,4)
58
fstps -24(%ebp)
59
flds .LC4
60
fcomps -24(%ebp)
61
fstsw %ax
62
sahf
63
jp 1f
64
je .LC19
65
1:
66
flds -24(%ebp)
67
fildl -8(%ebp)
68
fdivrp %st,%st(1)
69
flds -16(%ebp)
70
fcompp
71
fstsw %ax
72
sahf
73
jp .LC19
74
ja .LC19
75
cmpl $32,-4(%ebp)
76
jg .LC21
77
pushl -4(%ebp)
78
pushl $.LC23
79
call printf
80
addl $8,%esp
81
jmp .LC22
82
.LC21:
83
pushl -4(%ebp)
84
pushl $.LC24
85
call printf
86
addl $8,%esp
87
.LC22:
88
flds .LC5
89
movl -4(%ebp),%edi
90
fmuls f(,%edi,4)
91
fildl -8(%ebp)
92
fdivrp %st,%st(1)
93
subl $8,%esp
94
fstpl (%esp)
95
pushl $.LC25
96
call printf
97
addl $12,%esp
98
.LC19:
99
.LC16:
100
incl -4(%ebp)
101
cmpl $127,-4(%ebp)
102
jle .LC15
103
mov $0,%eax
104
.LC1:
105
movl %ebp,%esp
106
popl %edi
107
popl %esi
108
popl %ebx
109
popl %ebp
110
ret
111
.Lf26:
112
.size main,.Lf26-main
113
.bss
114
.globl f
115
.align 4
116
.type f,@object
117
.size f,512
118
.comm f,512
119
.data
120
.align 1
121
.LC25:
122
.byte 9
123
.byte 37
124
.byte 46
125
.byte 49
126
.byte 102
127
.byte 10
128
.byte 0
129
.align 1
130
.LC24:
131
.byte 37
132
.byte 99
133
.byte 0
134
.align 1
135
.LC23:
136
.byte 37
137
.byte 48
138
.byte 51
139
.byte 111
140
.byte 0
141
.align 1
142
.LC14:
143
.byte 99
144
.byte 104
145
.byte 97
146
.byte 114
147
.byte 9
148
.byte 102
149
.byte 114
150
.byte 101
151
.byte 113
152
.byte 10
153
.byte 0
154
.align 4
155
.LC13:
156
.long 1065353216
157
.align 4
158
.LC5:
159
.long 1120403456
160
.align 4
161
.LC4:
162
.long 0
163
.text
164
.ident "LCC: 4.1"

powered by: WebSVN 2.1.0

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