aboutsummaryrefslogtreecommitdiffstats
path: root/lcc/alpha/osf/tst/cf.sbk
blob: 6690b5cee3031912014d2e6afae710777a59c03e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-96($sp)
.fmask 0x200,-96
.mask 0x4007000,-64
.frame $sp,96,$26,48
stt $f9,0($sp)
stq $12,8($sp)
stq $13,16($sp)
stq $14,24($sp)
stq $26,32($sp)
stq $16,48($sp)
stq $17,56($sp)
.prologue 1
ldl $27,-48+96($sp)
cmple $27,1,$23
beq $23,L.2
lds $f9,L.4
br L.3
L.2:
ldq $27,-40+96($sp)
ldq $16,8($27)
jsr $26,atof
ldgp $gp,0($26)
lds $f29,L.5
divs $f0,$f29,$f9
L.3:
mov $31,$14
L.6:
mov $14,$27
lda $14,1($27)
sll $27,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
lds $f30,L.4
sts $f30,f($27)
L.7:
lda $27,127
cmple $14,$27,$23
bne $23,L.6
mov $31,$13
br L.11
L.10:
sll $12,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
lda $27,f($27)
lds $f30,($27)
lds $f29,L.13
adds $f30,$f29,$f30
sts $f30,($27)
lda $13,1($13)
L.11:
jsr $26,getchar
ldgp $gp,0($26)
mov $0,$12
lda $25,-1
cmpeq $0,$25,$23
beq $23,L.10
lda $16,L.14
jsr $26,printf
ldgp $gp,0($26)
mov $31,$14
L.15:
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
lds $f30,f($27)
lds $f29,L.4
cmpteq $f30,$f29,$f1
fbne $f1,L.19
stq $13,-56+96($sp)
ldt $f29,-56+96($sp)
cvtqs $f29,$f29
divs $f30,$f29,$f30
cmptlt $f30,$f9,$f1
fbne $f1,L.19
cmple $14,32,$23
beq $23,L.21
lda $16,L.23
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.22
L.21:
lda $16,L.24
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
L.22:
lda $16,L.25
lds $f30,L.5
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
lds $f29,f($27)
muls $f30,$f29,$f30
stq $13,-56+96($sp)
ldt $f29,-56+96($sp)
cvtqs $f29,$f29
divs $f30,$f29,$f30
cvtst $f30,$f17
jsr $26,printf
ldgp $gp,0($26)
L.19:
L.16:
lda $14,1($14)
lda $27,127
cmple $14,$27,$23
bne $23,L.15
mov $31,$0
L.1:
ldt $f9,0($sp)
ldq $12,8($sp)
ldq $13,16($sp)
ldq $14,24($sp)
ldq $26,32($sp)
lda $sp,96($sp)
ret
.end main
.globl f
.comm f,512
.rdata
.align 0
L.25:
.byte 9
.byte 37
.byte 46
.byte 49
.byte 102
.byte 10
.byte 0
.align 0
L.24:
.byte 37
.byte 99
.byte 0
.align 0
L.23:
.byte 37
.byte 48
.byte 51
.byte 111
.byte 0
.align 0
L.14:
.byte 99
.byte 104
.byte 97
.byte 114
.byte 9
.byte 102
.byte 114
.byte 101
.byte 113
.byte 10
.byte 0
.align 2
L.13:
.long 0x3f800000
.align 2
L.5:
.long 0x42c80000
.align 2
L.4:
.long 0x0