* Removed the lcc self tests -- there are none that test bytecode

This commit is contained in:
Tim Angus 2005-11-02 15:28:16 +00:00
parent d96c4d4c2b
commit 2d2df7682d
302 changed files with 2 additions and 228622 deletions

View file

@ -1,92 +0,0 @@
1 5 8 6 3 7 2 4
1 6 8 3 7 4 2 5
1 7 4 6 8 2 5 3
1 7 5 8 2 4 6 3
2 4 6 8 3 1 7 5
2 5 7 1 3 8 6 4
2 5 7 4 1 8 6 3
2 6 1 7 4 8 3 5
2 6 8 3 1 4 7 5
2 7 3 6 8 5 1 4
2 7 5 8 1 4 6 3
2 8 6 1 3 5 7 4
3 1 7 5 8 2 4 6
3 5 2 8 1 7 4 6
3 5 2 8 6 4 7 1
3 5 7 1 4 2 8 6
3 5 8 4 1 7 2 6
3 6 2 5 8 1 7 4
3 6 2 7 1 4 8 5
3 6 2 7 5 1 8 4
3 6 4 1 8 5 7 2
3 6 4 2 8 5 7 1
3 6 8 1 4 7 5 2
3 6 8 1 5 7 2 4
3 6 8 2 4 1 7 5
3 7 2 8 5 1 4 6
3 7 2 8 6 4 1 5
3 8 4 7 1 6 2 5
4 1 5 8 2 7 3 6
4 1 5 8 6 3 7 2
4 2 5 8 6 1 3 7
4 2 7 3 6 8 1 5
4 2 7 3 6 8 5 1
4 2 7 5 1 8 6 3
4 2 8 5 7 1 3 6
4 2 8 6 1 3 5 7
4 6 1 5 2 8 3 7
4 6 8 2 7 1 3 5
4 6 8 3 1 7 5 2
4 7 1 8 5 2 6 3
4 7 3 8 2 5 1 6
4 7 5 2 6 1 3 8
4 7 5 3 1 6 8 2
4 8 1 3 6 2 7 5
4 8 1 5 7 2 6 3
4 8 5 3 1 7 2 6
5 1 4 6 8 2 7 3
5 1 8 4 2 7 3 6
5 1 8 6 3 7 2 4
5 2 4 6 8 3 1 7
5 2 4 7 3 8 6 1
5 2 6 1 7 4 8 3
5 2 8 1 4 7 3 6
5 3 1 6 8 2 4 7
5 3 1 7 2 8 6 4
5 3 8 4 7 1 6 2
5 7 1 3 8 6 4 2
5 7 1 4 2 8 6 3
5 7 2 4 8 1 3 6
5 7 2 6 3 1 4 8
5 7 2 6 3 1 8 4
5 7 4 1 3 8 6 2
5 8 4 1 3 6 2 7
5 8 4 1 7 2 6 3
6 1 5 2 8 3 7 4
6 2 7 1 3 5 8 4
6 2 7 1 4 8 5 3
6 3 1 7 5 8 2 4
6 3 1 8 4 2 7 5
6 3 1 8 5 2 4 7
6 3 5 7 1 4 2 8
6 3 5 8 1 4 2 7
6 3 7 2 4 8 1 5
6 3 7 2 8 5 1 4
6 3 7 4 1 8 2 5
6 4 1 5 8 2 7 3
6 4 2 8 5 7 1 3
6 4 7 1 3 5 2 8
6 4 7 1 8 2 5 3
6 8 2 4 1 7 5 3
7 1 3 8 6 4 2 5
7 2 4 1 8 5 3 6
7 2 6 3 1 4 8 5
7 3 1 6 8 5 2 4
7 3 8 2 5 1 6 4
7 4 2 5 8 1 3 6
7 4 2 8 6 1 3 5
7 5 3 1 6 8 2 4
8 2 4 1 7 5 3 6
8 2 5 3 1 7 4 6
8 3 1 6 2 5 7 4
8 4 1 3 6 2 7 5

View file

@ -1,2 +0,0 @@
tst/8q.c:30: warning: missing return value
tst/8q.c:39: warning: missing return value

View file

@ -1,193 +0,0 @@
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
.prologue 1
mov $31,$14
L.2:
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
lda $25,1
stl $25,down($27)
stl $25,up($27)
L.3:
lda $14,1($14)
cmplt $14,15,$23
bne $23,L.2
mov $31,$14
L.6:
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
lda $25,1
stl $25,rows($27)
L.7:
lda $14,1($14)
cmplt $14,8,$23
bne $23,L.6
mov $31,$16
jsr $26,queens
ldgp $gp,0($26)
mov $31,$0
L.1:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end main
.globl queens
.text
.ent queens
queens:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4006000,-64
.frame $sp,80,$26,48
stq $13,0($sp)
stq $14,8($sp)
stq $26,16($sp)
mov $16,$14
.prologue 1
mov $31,$13
L.11:
sll $13,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,2,$25
ldl $25,rows($25)
cmpeq $25,$31,$23
bne $23,L.15
subl $13,$14,$25
lda $25,7($25)
sll $25,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,2,$25
ldl $25,up($25)
cmpeq $25,$31,$23
bne $23,L.15
addl $13,$14,$25
sll $25,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,2,$25
ldl $25,down($25)
cmpeq $25,$31,$23
bne $23,L.15
addl $13,$14,$25
sll $25,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,2,$25
stl $31,down($25)
subl $13,$14,$25
lda $25,7($25)
sll $25,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,2,$25
stl $31,up($25)
sll $13,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,2,$25
stl $31,rows($25)
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
stl $13,x($27)
cmpeq $14,7,$23
beq $23,L.17
jsr $26,print
ldgp $gp,0($26)
br L.18
L.17:
lda $16,1($14)
jsr $26,queens
ldgp $gp,0($26)
L.18:
lda $27,1
addl $13,$14,$25
sll $25,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,2,$25
stl $27,down($25)
subl $13,$14,$25
lda $25,7($25)
sll $25,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,2,$25
stl $27,up($25)
sll $13,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,2,$25
stl $27,rows($25)
L.15:
L.12:
lda $13,1($13)
cmplt $13,8,$23
bne $23,L.11
mov $31,$0
L.10:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $26,16($sp)
lda $sp,80($sp)
ret
.end queens
.globl print
.text
.ent print
print:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
.prologue 1
mov $31,$14
L.20:
lda $16,L.24
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
ldl $27,x($27)
lda $17,49($27)
jsr $26,printf
ldgp $gp,0($26)
L.21:
lda $14,1($14)
cmplt $14,8,$23
bne $23,L.20
lda $16,L.25
jsr $26,printf
ldgp $gp,0($26)
mov $31,$0
L.19:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end print
.globl x
.comm x,32
.globl rows
.comm rows,32
.globl down
.comm down,60
.globl up
.comm up,60
.rdata
.align 0
L.25:
.byte 10
.byte 0
.align 0
L.24:
.byte 37
.byte 99
.byte 32
.byte 0

View file

@ -1,4 +0,0 @@
0 1 2 3 1000 1001 1002 1003 2000 2001 2002 2003
0 1 2 3 1000 1001 1002 1003 2000 2001 2002 2003
0 1 2 3 1000 1001 1002 1003 2000 2001 2002 2003
0 1 2 3 1000 1001 1002 1003 2000 2001 2002 2003

View file

@ -1,2 +0,0 @@
tst/array.c:33: warning: missing return value
tst/array.c:48: warning: missing return value

View file

@ -1,260 +0,0 @@
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-144($sp)
.mask 0x4007000,-120
.frame $sp,144,$26,48
stq $12,0($sp)
stq $13,8($sp)
stq $14,16($sp)
stq $26,24($sp)
.prologue 1
mov $31,$13
L.2:
mov $31,$14
L.6:
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
sll $13,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,4,$25
lda $25,x($25)
addq $27,$25,$27
lda $25,1000
mull $25,$13,$25
addl $25,$14,$25
stl $25,($27)
L.7:
lda $14,1($14)
cmplt $14,4,$23
bne $23,L.6
sll $13,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,3,$25
sll $27,4,$27
lda $27,x($27)
stq $27,y($25)
L.3:
lda $13,1($13)
cmplt $13,3,$23
bne $23,L.2
jsr $26,f
ldgp $gp,0($26)
mov $31,$13
L.10:
sll $13,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,4,$25
lda $22,-104+144($sp)
addq $25,$22,$25
mov $25,$12
sll $27,3,$27
stq $25,y($27)
mov $31,$14
L.14:
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
addq $27,$12,$25
sll $13,8*(8-4),$22
sra $22,8*(8-4),$22
sll $22,4,$22
lda $22,x($22)
addq $27,$22,$27
ldl $27,($27)
stl $27,($25)
L.15:
lda $14,1($14)
cmplt $14,4,$23
bne $23,L.14
L.11:
lda $13,1($13)
cmplt $13,3,$23
bne $23,L.10
lda $16,-104+144($sp)
lda $17,y
jsr $26,g
ldgp $gp,0($26)
mov $31,$0
L.1:
ldq $12,0($sp)
ldq $13,8($sp)
ldq $14,16($sp)
ldq $26,24($sp)
lda $sp,144($sp)
ret
.end main
.globl f
.text
.ent f
f:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4006000,-64
.frame $sp,80,$26,48
stq $13,0($sp)
stq $14,8($sp)
stq $26,16($sp)
.prologue 1
mov $31,$13
L.19:
mov $31,$14
L.23:
lda $16,L.27
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
sll $13,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,4,$25
lda $25,x($25)
addq $27,$25,$27
ldl $17,($27)
jsr $26,printf
ldgp $gp,0($26)
L.24:
lda $14,1($14)
cmplt $14,4,$23
bne $23,L.23
L.20:
lda $13,1($13)
cmplt $13,3,$23
bne $23,L.19
lda $16,L.28
jsr $26,printf
ldgp $gp,0($26)
mov $31,$13
L.29:
mov $31,$14
L.33:
lda $16,L.27
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
sll $13,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,3,$25
ldq $25,y($25)
addq $27,$25,$27
ldl $17,($27)
jsr $26,printf
ldgp $gp,0($26)
L.34:
lda $14,1($14)
cmplt $14,4,$23
bne $23,L.33
L.30:
lda $13,1($13)
cmplt $13,3,$23
bne $23,L.29
lda $16,L.28
jsr $26,printf
ldgp $gp,0($26)
mov $31,$0
L.18:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $26,16($sp)
lda $sp,80($sp)
ret
.end f
.globl g
.text
.ent g
g:
ldgp $gp,0($27)
lda $sp,-96($sp)
.mask 0x4007800,-64
.frame $sp,96,$26,48
stq $11,0($sp)
stq $12,8($sp)
stq $13,16($sp)
stq $14,24($sp)
stq $26,32($sp)
mov $16,$14
mov $17,$13
.prologue 1
mov $31,$11
L.38:
mov $31,$12
L.42:
lda $16,L.27
sll $12,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
sll $11,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,4,$25
addq $25,$14,$25
addq $27,$25,$27
ldl $17,($27)
jsr $26,printf
ldgp $gp,0($26)
L.43:
lda $12,1($12)
cmplt $12,4,$23
bne $23,L.42
L.39:
lda $11,1($11)
cmplt $11,3,$23
bne $23,L.38
lda $16,L.28
jsr $26,printf
ldgp $gp,0($26)
mov $31,$11
L.46:
mov $31,$12
L.50:
lda $16,L.27
sll $12,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
sll $11,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,3,$25
addq $25,$13,$25
ldq $25,($25)
addq $27,$25,$27
ldl $17,($27)
jsr $26,printf
ldgp $gp,0($26)
L.51:
lda $12,1($12)
cmplt $12,4,$23
bne $23,L.50
L.47:
lda $11,1($11)
cmplt $11,3,$23
bne $23,L.46
lda $16,L.28
jsr $26,printf
ldgp $gp,0($26)
mov $31,$0
L.37:
ldq $11,0($sp)
ldq $12,8($sp)
ldq $13,16($sp)
ldq $14,24($sp)
ldq $26,32($sp)
lda $sp,96($sp)
ret
.end g
.globl y
.comm y,24
.globl x
.comm x,48
.rdata
.align 0
L.28:
.byte 10
.byte 0
.align 0
L.27:
.byte 32
.byte 37
.byte 100
.byte 0

View file

@ -1,51 +0,0 @@
char freq
011 8.1
012 6.1
040 11.9
! 0.2
" 1.5
% 0.6
& 0.4
' 0.4
( 2.9
) 2.9
* 0.8
+ 1.3
, 1.3
- 0.4
. 0.6
/ 1.0
0 2.5
1 1.9
2 0.6
3 0.2
7 0.4
8 0.2
; 3.8
< 0.8
= 2.7
> 0.2
[ 1.5
\ 0.8
] 1.5
a 3.1
c 4.4
e 2.3
f 6.0
g 1.3
h 1.0
i 5.0
l 1.0
m 0.2
n 3.3
o 2.1
p 1.0
q 0.4
r 4.2
s 0.6
t 3.8
u 1.2
v 0.6
w 0.2
{ 0.6
} 0.6

View file

@ -1,170 +0,0 @@
.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

View file

@ -1,45 +0,0 @@
Section s22 returned 0.
s241,er4
Section s241 returned 4.
Section s243 returned 0.
Section s244 returned 0.
Section s25 returned 0.
8 bits in chars.
32 bits in ints.
16 bits in shorts.
64 bits in longs.
32 bits in unsigneds.
32 bits in floats.
64 bits in doubles.
1.192093e-07 is the least number that can be added to 1. (float).
2.220446e-16 is the least number that can be added to 1. (double).
Section s26 returned 0.
Section s4 returned 0.
Section s61 returned 0.
Section s626 returned 0.
Section s71 returned 0.
Section s72 returned 0.
Section s757 returned 0.
Section s7813 returned 0.
Section s714 returned 0.
Section s715 returned 0.
Register count for char is unreliable.
Register count for pointer is unreliable.
Register count for int is unreliable.
Section s81 returned 0.
Section s84 returned 0.
char alignment: 1
short alignment: 2
int alignment: 4
long alignment: 8
unsigned alignment: 4
float alignment: 4
double alignment: 8
Sign extension in fields
Be especially careful with 1-bit fields!
Section s85 returned 0.
Section s86 returned 0.
Section s88 returned 0.
Section s9 returned 0.
Failed.

View file

@ -1,4 +0,0 @@
tst/cq.c:533: warning: missing return value
tst/cq.c:1169: warning: missing return value
tst/cq.c:5294: warning: unreachable code
tst/cq.c:5303: warning: missing return value

File diff suppressed because it is too large Load diff

View file

@ -1,11 +0,0 @@
1 1 1 1 1 1 1 1 1.000000 1.000000 1.000000
2 2 2 2 2 2 2 2 2.000000 2.000000 2.000000
3 3 3 3 3 3 3 3 3.000000 3.000000 3.000000
4 4 4 4 4 4 4 4 4.000000 4.000000 4.000000
5 5 5 5 5 5 5 5 5.000000 5.000000 5.000000
6 6 6 6 6 6 6 6 6.000000 6.000000 6.000000
7 7 7 7 7 7 7 7 7.000000 7.000000 7.000000
8 8 8 8 8 8 8 8 8.000000 8.000000 8.000000
9 9 9 9 9 9 9 9 9.000000 9.000000 9.000000
10 10 10 10 10 10 10 10 10.000000 10.000000 10.000000
11 11 11 11 11 11 11 11 11.000000 11.000000 11.000000

View file

@ -1,2 +0,0 @@
tst/cvt.c:32: warning: conversion from `pointer to void function(void)' to `pointer to void' is compiler dependent
tst/cvt.c:33: warning: conversion from `pointer to void' to `pointer to void function(void)' is compiler dependent

View file

@ -1,744 +0,0 @@
.globl print
.text
.text
.ent print
print:
ldgp $gp,0($27)
lda $sp,-112($sp)
.mask 0x4000000,-64
.frame $sp,112,$26,48
stq $26,48($sp)
.prologue 1
lda $16,L.2
lda $27,c
ldb $17,($27)
lda $27,s
ldw $18,($27)
ldl $19,i
ldq $20,l
lda $27,C
ldbu $21,($27)
lda $27,S
ldwu $27,($27)
stq $27,0($sp)
ldl $27,I
zap $27,240,$27
stq $27,8($sp)
ldq $27,L
stq $27,16($sp)
lds $f30,f
cvtst $f30,$f30
stt $f30,24($sp)
ldt $f30,d
stt $f30,32($sp)
ldt $f30,D
stt $f30,40($sp)
jsr $26,printf
ldgp $gp,0($26)
L.1:
ldq $26,48($sp)
lda $sp,112($sp)
ret
.end print
.globl main
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-160($sp)
.mask 0x5007e00,-104
.frame $sp,160,$26,48
stq $9,0($sp)
stq $10,8($sp)
stq $11,16($sp)
stq $12,24($sp)
stq $13,32($sp)
stq $14,40($sp)
stq $24,48($sp)
stq $26,56($sp)
.prologue 1
lda $27,c
lda $25,1
stb $25,c
ldb $27,($27)
mov $27,$25
stw $25,s
stl $27,i
sll $27,8*(8-4),$25
sra $25,8*(8-4),$25
stq $25,l
mov $27,$25
mov $25,$22
stb $22,C
mov $25,$22
stw $22,S
stl $25,I
mov $27,$25
stq $25,L
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqs $f30,$f30
sts $f30,f
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqt $f30,$f30
stt $f30,d
stt $f30,D
jsr $26,print
ldgp $gp,0($26)
lda $27,s
lda $25,2
stw $25,s
ldw $27,($27)
mov $27,$25
stb $25,c
stl $27,i
sll $27,8*(8-4),$25
sra $25,8*(8-4),$25
stq $25,l
mov $27,$25
mov $25,$22
stb $22,C
mov $25,$22
stw $22,S
stl $25,I
mov $27,$25
stq $25,L
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqs $f30,$f30
sts $f30,f
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqt $f30,$f30
stt $f30,d
stt $f30,D
jsr $26,print
ldgp $gp,0($26)
lda $27,3
stl $27,i
ldl $27,i
mov $27,$25
stb $25,c
mov $27,$25
stw $25,s
sll $27,8*(8-4),$25
sra $25,8*(8-4),$25
stq $25,l
mov $27,$25
mov $25,$22
stb $22,C
mov $25,$22
stw $22,S
stl $25,I
mov $27,$25
stq $25,L
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqs $f30,$f30
sts $f30,f
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqt $f30,$f30
stt $f30,d
stt $f30,D
jsr $26,print
ldgp $gp,0($26)
lda $27,4
stq $27,l
ldq $27,l
mov $27,$25
stb $25,c
mov $27,$25
stw $25,s
mov $27,$25
stl $25,i
mov $27,$25
mov $25,$22
stb $22,C
mov $25,$22
stw $22,S
stl $25,I
mov $27,$25
stq $25,L
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqs $f30,$f30
sts $f30,f
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqt $f30,$f30
stt $f30,d
stt $f30,D
jsr $26,print
ldgp $gp,0($26)
lda $27,C
lda $25,5
stb $25,C
ldbu $27,($27)
mov $27,$25
stb $25,c
mov $27,$25
stw $25,s
stl $27,i
sll $27,8*(8-4),$25
sra $25,8*(8-4),$25
stq $25,l
mov $27,$25
mov $25,$22
stw $22,S
stl $25,I
mov $27,$25
stq $25,L
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqs $f30,$f30
sts $f30,f
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqt $f30,$f30
stt $f30,d
stt $f30,D
jsr $26,print
ldgp $gp,0($26)
lda $27,S
lda $25,6
stw $25,S
ldwu $27,($27)
mov $27,$25
stb $25,c
mov $27,$25
stw $25,s
stl $27,i
sll $27,8*(8-4),$25
sra $25,8*(8-4),$25
stq $25,l
mov $27,$25
mov $25,$22
stb $22,C
stl $25,I
mov $27,$25
stq $25,L
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqs $f30,$f30
sts $f30,f
stq $27,-56+160($sp)
ldt $f30,-56+160($sp)
cvtqt $f30,$f30
stt $f30,d
stt $f30,D
jsr $26,print
ldgp $gp,0($26)
lda $27,7
stl $27,I
ldl $27,I
zap $27,240,$27
mov $27,$25
mov $25,$22
stb $22,c
mov $25,$22
stw $22,s
stl $25,i
and $27,(1<<(8*4))-1,$25
stq $25,l
mov $27,$25
stb $25,C
mov $27,$25
stw $25,S
and $27,(1<<(8*4))-1,$25
stq $25,L
ldt $f30,L.4
srl $27,1,$25
stq $25,-56+160($sp)
ldt $f29,-56+160($sp)
cvtqt $f29,$f29
mult $f30,$f29,$f30
and $27,1,$27
stq $27,-56+160($sp)
ldt $f29,-56+160($sp)
cvtqt $f29,$f29
addt $f30,$f29,$f30
cvtts $f30,$f29
sts $f29,f
stt $f30,d
stt $f30,D
jsr $26,print
ldgp $gp,0($26)
lda $27,8
stq $27,L
ldq $27,L
mov $27,$25
mov $25,$22
stb $22,c
mov $25,$22
stw $22,s
stl $25,i
mov $27,$25
stq $25,l
mov $27,$25
stb $25,C
lda $25,S
mov $27,$22
stw $22,S
ldwu $25,($25)
stl $25,I
ldt $f30,L.4
srl $27,1,$25
stq $25,-56+160($sp)
ldt $f29,-56+160($sp)
cvtqt $f29,$f29
mult $f30,$f29,$f30
and $27,1,$27
stq $27,-56+160($sp)
ldt $f29,-56+160($sp)
cvtqt $f29,$f29
addt $f30,$f29,$f30
cvtts $f30,$f29
sts $f29,f
stt $f30,d
stt $f30,D
jsr $26,print
ldgp $gp,0($26)
lds $f30,L.5
sts $f30,f
lds $f30,f
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
mov $27,$25
stb $25,c
mov $27,$25
stw $25,s
stl $27,i
cvttqc $f30,$f1
stt $f1,-56+160($sp)
ldq $27,-56+160($sp)
stq $27,l
lds $f29,L.9
cmptlt $f30,$f29,$f1
fbne $f1,L.7
subs $f30,$f29,$f29
cvttqc $f29,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
addl $27,0x80000000,$14
zap $14,240,$14
br L.8
L.7:
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
mov $27,$14
L.8:
mov $14,$27
stb $27,C
lds $f30,f
lds $f29,L.9
cmptlt $f30,$f29,$f1
fbne $f1,L.11
subs $f30,$f29,$f29
cvttqc $f29,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
addl $27,0x80000000,$13
zap $13,240,$13
br L.12
L.11:
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
mov $27,$13
L.12:
mov $13,$27
stw $27,S
lds $f30,f
lds $f29,L.9
cmptlt $f30,$f29,$f1
fbne $f1,L.14
subs $f30,$f29,$f29
cvttqc $f29,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
addl $27,0x80000000,$12
zap $12,240,$12
br L.15
L.14:
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
mov $27,$12
L.15:
stl $12,I
lds $f30,f
lds $f29,L.19
cmptlt $f30,$f29,$f1
fbne $f1,L.17
subs $f30,$f29,$f29
cvttqc $f29,$f1
stt $f1,-56+160($sp)
ldq $27,-56+160($sp)
lda $11,0x8000000000000000($27)
br L.18
L.17:
cvttqc $f30,$f1
stt $f1,-56+160($sp)
ldq $27,-56+160($sp)
mov $27,$11
L.18:
stq $11,L
lds $f30,f
cvtst $f30,$f30
stt $f30,d
stt $f30,D
jsr $26,print
ldgp $gp,0($26)
ldt $f30,L.20
stt $f30,d
ldt $f30,d
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
mov $27,$25
stb $25,c
mov $27,$25
stw $25,s
stl $27,i
cvttqc $f30,$f1
stt $f1,-56+160($sp)
ldq $27,-56+160($sp)
stq $27,l
ldt $f29,L.24
cmptlt $f30,$f29,$f1
fbne $f1,L.22
subt $f30,$f29,$f29
cvttqc $f29,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
addl $27,0x80000000,$10
zap $10,240,$10
br L.23
L.22:
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
mov $27,$10
L.23:
mov $10,$27
stb $27,C
ldt $f30,d
ldt $f29,L.24
cmptlt $f30,$f29,$f1
fbne $f1,L.26
subt $f30,$f29,$f29
cvttqc $f29,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
addl $27,0x80000000,$9
zap $9,240,$9
br L.27
L.26:
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
mov $27,$9
L.27:
mov $9,$27
stw $27,S
ldt $f30,d
ldt $f29,L.24
cmptlt $f30,$f29,$f1
fbne $f1,L.29
subt $f30,$f29,$f29
cvttqc $f29,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
addl $27,0x80000000,$27
zap $27,240,$27
stl $27,-60+160($sp)
br L.30
L.29:
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
stl $27,-60+160($sp)
L.30:
ldl $27,-60+160($sp)
zap $27,240,$27
stl $27,I
ldt $f30,d
ldt $f29,L.34
cmptlt $f30,$f29,$f1
fbne $f1,L.32
subt $f30,$f29,$f29
cvttqc $f29,$f1
stt $f1,-56+160($sp)
ldq $27,-56+160($sp)
lda $27,0x8000000000000000($27)
stq $27,-72+160($sp)
br L.33
L.32:
cvttqc $f30,$f1
stt $f1,-56+160($sp)
ldq $27,-56+160($sp)
stq $27,-72+160($sp)
L.33:
ldq $27,-72+160($sp)
stq $27,L
ldt $f30,d
cvtts $f30,$f29
sts $f29,f
stt $f30,D
jsr $26,print
ldgp $gp,0($26)
ldt $f30,L.35
stt $f30,D
ldt $f30,D
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
mov $27,$25
stb $25,c
mov $27,$25
stw $25,s
stl $27,i
cvttqc $f30,$f1
stt $f1,-56+160($sp)
ldq $27,-56+160($sp)
stq $27,l
ldt $f29,L.39
cmptlt $f30,$f29,$f1
fbne $f1,L.37
subt $f30,$f29,$f29
cvttqc $f29,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
addl $27,0x80000000,$27
zap $27,240,$27
stl $27,-76+160($sp)
br L.38
L.37:
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
stl $27,-76+160($sp)
L.38:
ldl $27,-76+160($sp)
zap $27,240,$27
stb $27,C
ldt $f30,D
ldt $f29,L.39
cmptlt $f30,$f29,$f1
fbne $f1,L.41
subt $f30,$f29,$f29
cvttqc $f29,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
addl $27,0x80000000,$27
zap $27,240,$27
stl $27,-80+160($sp)
br L.42
L.41:
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
stl $27,-80+160($sp)
L.42:
ldl $27,-80+160($sp)
zap $27,240,$27
stw $27,S
ldt $f30,D
ldt $f29,L.39
cmptlt $f30,$f29,$f1
fbne $f1,L.44
subt $f30,$f29,$f29
cvttqc $f29,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
addl $27,0x80000000,$27
zap $27,240,$27
stl $27,-84+160($sp)
br L.45
L.44:
cvttqc $f30,$f1
cvtql $f1,$f1
sts $f1,-56+160($sp)
ldl $27,-56+160($sp)
stl $27,-84+160($sp)
L.45:
ldl $27,-84+160($sp)
zap $27,240,$27
stl $27,I
ldt $f30,D
ldt $f29,L.49
cmptlt $f30,$f29,$f1
fbne $f1,L.47
subt $f30,$f29,$f29
cvttqc $f29,$f1
stt $f1,-56+160($sp)
ldq $27,-56+160($sp)
lda $27,0x8000000000000000($27)
stq $27,-96+160($sp)
br L.48
L.47:
cvttqc $f30,$f1
stt $f1,-56+160($sp)
ldq $27,-56+160($sp)
stq $27,-96+160($sp)
L.48:
ldq $27,-96+160($sp)
stq $27,L
ldt $f30,D
cvtts $f30,$f29
sts $f29,f
stt $f30,d
jsr $26,print
ldgp $gp,0($26)
stq $31,p
stq $31,p
stq $31,p
stq $31,p
ldq $27,P
stq $27,p
stq $31,P
stq $31,P
stq $31,P
stq $31,P
ldq $27,p
stq $27,P
mov $31,$0
L.3:
ldq $9,0($sp)
ldq $10,8($sp)
ldq $11,16($sp)
ldq $12,24($sp)
ldq $13,32($sp)
ldq $14,40($sp)
ldq $24,48($sp)
ldq $26,56($sp)
lda $sp,160($sp)
ret
.end main
.globl P
.comm P,8
.globl p
.comm p,8
.globl D
.comm D,8
.globl d
.comm d,8
.globl f
.comm f,4
.globl L
.comm L,8
.globl I
.comm I,4
.globl S
.comm S,2
.globl C
.comm C,1
.globl l
.comm l,8
.globl i
.comm i,4
.globl s
.comm s,2
.globl c
.comm c,1
.rdata
.align 3
L.49:
.long 0x0
.long 0x43e00000
.align 3
L.39:
.long 0x0
.long 0x41e00000
.align 3
L.35:
.long 0x0
.long 0x40260000
.align 3
L.34:
.long 0x0
.long 0x43e00000
.align 3
L.24:
.long 0x0
.long 0x41e00000
.align 3
L.20:
.long 0x0
.long 0x40240000
.align 2
L.19:
.long 0x5f000000
.align 2
L.9:
.long 0x4f000000
.align 2
L.5:
.long 0x41100000
.align 3
L.4:
.long 0x0
.long 0x40000000
.align 0
L.2:
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 108
.byte 100
.byte 32
.byte 37
.byte 117
.byte 32
.byte 37
.byte 117
.byte 32
.byte 37
.byte 117
.byte 32
.byte 37
.byte 108
.byte 117
.byte 32
.byte 37
.byte 102
.byte 32
.byte 37
.byte 102
.byte 32
.byte 37
.byte 108
.byte 102
.byte 10
.byte 0

View file

@ -1,5 +0,0 @@
x = 1 2 3 4 -3 6
y = 3 8 9
x = 1 2 3 0 0 6
y = 2 8 16
p->a = 0x3, p->b = 0xf

View file

@ -1,4 +0,0 @@
tst/fields.c:6: warning: initializer exceeds bit-field width
tst/fields.c:8: warning: initializer exceeds bit-field width
tst/fields.c:30: warning: missing return value
tst/fields.c:34: warning: missing return value

View file

@ -1,325 +0,0 @@
.sdata
.globl x
.align 2
x:
.long 0x1
.byte 0x2
.space 3
.byte 0x3
.byte 0x40
.space 2
.byte 0x50
.byte 0x6
.space 2
.globl i
.align 2
i:
.long 0x10
.globl y
.align 2
y:
.byte 0x23
.space 3
.byte 0x9
.byte 0x0
.byte 0x0
.byte 0x0
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4000000,-72
.frame $sp,80,$26,48
stq $26,8($sp)
.prologue 1
lda $16,L.4
ldl $17,x
lda $27,x+4
ldb $18,($27)
ldl $27,x+8
sll $27,20,$27
addl $27,0,$27
sra $27,20,$19
addl $19,0,$19
ldl $27,x+8
sll $27,16,$27
addl $27,0,$27
sra $27,28,$20
addl $20,0,$20
ldl $27,x+12
sll $27,25,$27
addl $27,0,$27
sra $27,29,$21
addl $21,0,$21
lda $27,x+13
ldb $27,($27)
stq $27,0($sp)
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.10
ldl $27,y
zap $27,240,$27
and $27,3,$17
srl $27,2,$27
and $27,15,$18
ldl $19,y+4
zap $19,240,$19
jsr $26,printf
ldgp $gp,0($26)
ldl $27,x+8
and $27,0xffff0fff,$27
ldl $25,i
sll $25,28,$25
addl $25,0,$25
sra $25,28,$25
addl $25,0,$25
sll $25,12,$25
zap $25,240,$25
and $25,0xf000,$25
or $27,$25,$27
stl $27,x+8
ldl $27,x+12
and $27,0xffffff8f,$27
stl $27,x+12
lda $16,L.4
ldl $17,x
lda $27,x+4
ldb $18,($27)
ldl $27,x+8
sll $27,20,$27
addl $27,0,$27
sra $27,20,$19
addl $19,0,$19
ldl $27,x+8
sll $27,16,$27
addl $27,0,$27
sra $27,28,$20
addl $20,0,$20
ldl $27,x+12
sll $27,25,$27
addl $27,0,$27
sra $27,29,$21
addl $21,0,$21
lda $27,x+13
ldb $27,($27)
stq $27,0($sp)
jsr $26,printf
ldgp $gp,0($26)
ldl $27,y
zap $27,240,$27
and $27,0xfffffffc,$27
or $27,2,$27
stl $27,y
ldl $27,i
stl $27,y+4
lda $16,L.10
ldl $27,y
zap $27,240,$27
and $27,3,$17
srl $27,2,$27
and $27,15,$18
ldl $19,y+4
zap $19,240,$19
jsr $26,printf
ldgp $gp,0($26)
lda $16,x
jsr $26,f2
ldgp $gp,0($26)
mov $31,$0
L.3:
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end main
.globl f1
.text
.ent f1
f1:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
mov $16,$14
.prologue 1
ldl $27,($14)
zap $27,240,$27
and $27,0xffffffc3,$27
stl $27,($14)
ldl $27,($14)
zap $27,240,$27
and $27,0xfffffffc,$27
and $31,3,$25
and $25,3,$25
or $27,$25,$27
stl $27,($14)
ldl $27,($14)
zap $27,240,$27
and $27,60,$27
cmpeq $27,$31,$23
bne $23,L.22
lda $16,L.24
jsr $26,printf
ldgp $gp,0($26)
L.22:
ldl $27,($14)
zap $27,240,$27
or $27,3,$27
stl $27,($14)
ldl $27,($14)
zap $27,240,$27
or $27,60,$27
stl $27,($14)
lda $16,L.25
ldl $27,($14)
zap $27,240,$27
and $27,3,$17
srl $27,2,$27
and $27,15,$18
jsr $26,printf
ldgp $gp,0($26)
mov $31,$0
L.21:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end f1
.globl f2
.text
.ent f2
f2:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4006000,-64
.frame $sp,80,$26,48
stq $13,0($sp)
stq $14,8($sp)
stq $26,16($sp)
mov $16,$14
.prologue 1
ldl $27,i
cmpeq $27,$31,$23
beq $23,L.28
lda $13,1
br L.29
L.28:
mov $31,$13
L.29:
ldl $27,($14)
zap $27,240,$27
and $27,0xfffffffc,$27
mov $13,$25
and $25,3,$25
and $25,3,$25
or $27,$25,$27
stl $27,($14)
mov $14,$16
jsr $26,f1
ldgp $gp,0($26)
ldl $27,($14)
zap $27,240,$27
and $27,0xffffffc3,$27
mov $31,$25
and $25,15,$25
sll $25,2,$25
zap $25,240,$25
and $25,60,$25
or $27,$25,$27
stl $27,($14)
mov $31,$0
L.26:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $26,16($sp)
lda $sp,80($sp)
ret
.end f2
.rdata
.align 0
L.25:
.byte 112
.byte 45
.byte 62
.byte 97
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 44
.byte 32
.byte 112
.byte 45
.byte 62
.byte 98
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 10
.byte 0
.align 0
L.24:
.byte 112
.byte 45
.byte 62
.byte 98
.byte 32
.byte 33
.byte 61
.byte 32
.byte 48
.byte 33
.byte 10
.byte 0
.align 0
L.10:
.byte 121
.byte 32
.byte 61
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.4:
.byte 120
.byte 32
.byte 61
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0

View file

@ -1,29 +0,0 @@
tst/front.c:3: warning: missing return value
tst/front.c:10: warning: missing return value
tst/front.c:20: type error in argument 1 to `s'; found `pointer to struct D' expected `pointer to incomplete struct D defined at tst/front.c:14'
tst/front.c:21: warning: missing return value
tst/front.c:32: warning: missing return value
tst/front.c:36: operands of = have illegal types `pointer to int' and `pointer to const int'
tst/front.c:38: warning: missing return value
tst/front.c:62: operands of = have illegal types `pointer to char' and `pointer to const void'
tst/front.c:63: warning: missing return value
tst/front.c:68: warning: missing return value
tst/front.c:69: warning: inconsistent linkage for `yy' previously declared at tst/front.c:68
tst/front.c:69: warning: missing return value
tst/front.c:71: invalid storage class `static' for `int function goo'
tst/front.c:71: warning: declaration of `goo' does not match previous declaration at tst/front.c:70
tst/front.c:71: warning: missing return value
tst/front.c:74: warning: declaration of `xr' does not match previous declaration at tst/front.c:72
tst/front.c:74: warning: missing return value
tst/front.c:81: warning: missing return value
tst/front.c:82: warning: declaration of `ss2' does not match previous declaration at tst/front.c:81
tst/front.c:84: warning: inconsistent linkage for `ss5' previously declared at tst/front.c:80
tst/front.c:92: type error in argument 1 to `gx1'; found `pointer to double' expected `double'
tst/front.c:92: warning: missing return value
tst/front.c:95: redeclaration of `hx1' previously declared at tst/front.c:94
tst/front.c:98: warning: missing return value
tst/front.c:101: conflicting argument declarations for function `gg1'
tst/front.c:101: warning: missing return value
tst/front.c:112: type error in argument 4 to `qsort'; found `pointer to int function(pointer to pointer to char,pointer to pointer to char)' expected `pointer to int function(pointer to const void,pointer to const void)'
tst/front.c:113: warning: missing return value
tst/front.c:120: warning: missing return value

View file

@ -1,380 +0,0 @@
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
.prologue 1
mov $31,$16
jsr $26,exit
ldgp $gp,0($26)
mov $31,$0
L.1:
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end main
.globl nested
.text
.ent nested
nested:
ldgp $gp,0($27)
lda $sp,-64($sp)
.frame $sp,64,$26,48
.prologue 1
cmplt $16,4,$23
beq $23,L.6
lda $27,114
cmpeq $17,$27,$23
bne $23,L.9
L.6:
cmpeq $16,1,$23
beq $23,L.8
lda $27,104
cmpeq $17,$27,$23
bne $23,L.9
lda $27,105
cmpeq $17,$27,$23
bne $23,L.9
L.8:
cmpeq $16,2,$23
beq $23,L.3
lda $27,111
cmpeq $17,$27,$23
bne $23,L.9
lda $27,121
cmpeq $17,$27,$23
beq $23,L.3
L.9:
mov $17,$16
L.3:
mov $31,$0
L.2:
lda $sp,64($sp)
ret
.end nested
.globl s
.text
.ent s
s:
ldgp $gp,0($27)
lda $sp,-64($sp)
.frame $sp,64,$26,48
.prologue 1
L.10:
lda $sp,64($sp)
ret
.end s
.sdata
.globl Dy
.align 2
Dy:
.long 0x0
.space 4
.globl Dz
.align 2
Dz:
.long 0x1
.space 4
.globl Dfunc
.text
.text
.ent Dfunc
Dfunc:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
.prologue 1
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end Dfunc
.globl f
.text
.ent f
f:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end f
.globl f1
.text
.ent f1
f1:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end f1
.globl f2
.text
.ent f2
f2:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
stq $16,16($sp)
stq $17,24($sp)
.prologue 1
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end f2
.globl g
.text
.ent g
g:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
stq $16,16($sp)
.prologue 1
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end g
.globl h
.text
.ent h
h:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
stq $16,16($sp)
.prologue 1
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end h
.globl h1
.text
.ent h1
h1:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
stq $16,16($sp)
stq $17,24($sp)
.prologue 1
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end h1
.globl h2
.text
.ent h2
h2:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end h2
.sdata
.align 2
L.21:
.long 0x1
.globl set1
.text
.text
.ent set1
set1:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end set1
.sdata
.align 2
L.23:
.long 0x2
.globl set2
.text
.text
.ent set2
set2:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end set2
.text
.ent goo
goo:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end goo
.globl sss
.text
.ent sss
sss:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end sss
.lcomm L.27,4
.globl rrr
.text
.text
.ent rrr
rrr:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end rrr
.globl setstatic
.text
.ent setstatic
setstatic:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end setstatic
.globl gx1
.text
.ent gx1
gx1:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
stt $f16,16($sp)
.prologue 1
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end gx1
.globl ff1
.text
.ent ff1
ff1:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end ff1
.globl gg1
.text
.ent gg1
gg1:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end gg1
.globl hh1
.text
.ent hh1
hh1:
ldgp $gp,0($27)
lda $sp,-48($sp)
.frame $sp,48,$26,48
.prologue 1
lda $sp,48($sp)
ret
.end hh1
.globl cmp
.text
.ent cmp
cmp:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
stq $16,16($sp)
stq $17,24($sp)
.prologue 1
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end cmp
.globl sort
.text
.ent sort
sort:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
.prologue 1
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end sort
.globl onearg
.text
.ent onearg
onearg:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
.prologue 1
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end onearg
.extern xr 4
.globl ss4
.comm ss4,4
.lcomm ss2,4
.lcomm ss5,4
.globl ss3
.comm ss3,4
.lcomm ss1,4
.lcomm yy,4
.globl z
.comm z,4
.globl y
.comm y,8
.globl x
.comm x,8
.globl b
.comm b,4
.globl a
.comm a,4

View file

@ -1,9 +0,0 @@
tst/incr.c:1: warning: missing return value
tst/incr.c:6: warning: expression with no effect elided
tst/incr.c:6: warning: expression with no effect elided
tst/incr.c:11: warning: missing return value
tst/incr.c:16: warning: expression with no effect elided
tst/incr.c:16: warning: expression with no effect elided
tst/incr.c:21: warning: missing return value
tst/incr.c:30: warning: missing return value
tst/incr.c:39: warning: missing return value

View file

@ -1,151 +0,0 @@
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-64($sp)
.frame $sp,64,$26,48
.prologue 1
mov $31,$0
L.1:
lda $sp,64($sp)
ret
.end main
.globl memchar
.text
.ent memchar
memchar:
ldgp $gp,0($27)
lda $sp,-96($sp)
.mask 0x5000000,-88
.frame $sp,96,$26,48
stq $24,0($sp)
stq $26,8($sp)
.prologue 1
ldq $27,-72+96($sp)
lda $25,1($27)
stq $25,-72+96($sp)
ldb $27,($27)
stb $27,-57+96($sp)
ldq $27,-72+96($sp)
lda $27,1($27)
stq $27,-72+96($sp)
ldb $27,($27)
stb $27,-57+96($sp)
ldq $27,-72+96($sp)
lda $25,-1($27)
stq $25,-72+96($sp)
ldb $27,($27)
stb $27,-57+96($sp)
ldq $27,-72+96($sp)
lda $27,-1($27)
stq $27,-72+96($sp)
ldb $27,($27)
stb $27,-57+96($sp)
mov $31,$0
L.2:
ldq $24,0($sp)
ldq $26,8($sp)
lda $sp,96($sp)
ret
.end memchar
.globl memint
.text
.ent memint
memint:
ldgp $gp,0($27)
lda $sp,-80($sp)
.frame $sp,80,$26,48
.prologue 1
ldq $27,-72+80($sp)
lda $25,4($27)
stq $25,-72+80($sp)
ldl $27,($27)
stl $27,-60+80($sp)
ldq $27,-72+80($sp)
lda $27,4($27)
stq $27,-72+80($sp)
ldl $27,($27)
stl $27,-60+80($sp)
ldq $27,-72+80($sp)
lda $25,-4($27)
stq $25,-72+80($sp)
ldl $27,($27)
stl $27,-60+80($sp)
ldq $27,-72+80($sp)
lda $27,-4($27)
stq $27,-72+80($sp)
ldl $27,($27)
stl $27,-60+80($sp)
mov $31,$0
L.3:
lda $sp,80($sp)
ret
.end memint
.globl regchar
.text
.ent regchar
regchar:
ldgp $gp,0($27)
lda $sp,-96($sp)
.mask 0x5006000,-72
.frame $sp,96,$26,48
stq $13,0($sp)
stq $14,8($sp)
stq $24,16($sp)
stq $26,24($sp)
.prologue 1
mov $13,$27
lda $13,1($27)
ldb $14,($27)
lda $27,1($13)
mov $27,$13
ldb $14,($27)
mov $13,$27
lda $13,-1($27)
ldb $14,($27)
lda $27,-1($13)
mov $27,$13
ldb $14,($27)
mov $31,$0
L.4:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $24,16($sp)
ldq $26,24($sp)
lda $sp,96($sp)
ret
.end regchar
.globl regint
.text
.ent regint
regint:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4006000,-64
.frame $sp,80,$26,48
stq $13,0($sp)
stq $14,8($sp)
stq $26,16($sp)
.prologue 1
mov $13,$27
lda $13,4($27)
ldl $14,($27)
lda $27,4($13)
mov $27,$13
ldl $14,($27)
mov $13,$27
lda $13,-4($27)
ldl $14,($27)
lda $27,-4($13)
mov $27,$13
ldl $14,($27)
mov $31,$0
L.5:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $26,16($sp)
lda $sp,80($sp)
ret
.end regint

View file

@ -1,16 +0,0 @@
1 2 3 4
5 6
7
if
for
else
while
1 2 3 if
4 5 0 for
6 7 8 else
9 10 11 while
1 2 3 if
4 5 0 for
6 7 8 else
9 10 11 while
0 0 0

View file

@ -1,3 +0,0 @@
tst/init.c:36: warning: missing return value
tst/init.c:49: warning: missing return value
tst/init.c:59: warning: missing return value

View file

@ -1,333 +0,0 @@
.sdata
.globl words
.align 2
words:
.long 0x1
.long 0x2
.long 0x3
.byte 105
.byte 102
.byte 0
.space 3
.space 2
.long 0x4
.long 0x5
.space 4
.byte 102
.byte 111
.byte 114
.space 3
.space 2
.long 0x6
.long 0x7
.long 0x8
.byte 101
.byte 108
.byte 115
.byte 101
.byte 0
.space 1
.space 2
.long 0x9
.long 0xa
.long 0xb
.byte 119
.byte 104
.byte 105
.byte 108
.byte 101
.space 1
.space 2
.long 0x0
.space 8
.space 8
.globl wordlist
.align 3
wordlist:
.quad words
.globl x
.align 2
x:
.long 0x1
.long 0x2
.long 0x3
.long 0x4
.long 0x0
.long 0x5
.long 0x6
.space 12
.long 0x7
.space 16
.globl y
.align 3
y:
.quad x
.quad x+20
.quad x+40
.quad 0x0
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4006000,-64
.frame $sp,80,$26,48
stq $13,0($sp)
stq $14,8($sp)
stq $26,16($sp)
.prologue 1
mov $31,$13
br L.8
L.5:
mov $31,$14
br L.12
L.9:
lda $16,L.13
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
sll $13,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,3,$25
ldq $25,y($25)
addq $27,$25,$27
ldl $17,($27)
jsr $26,printf
ldgp $gp,0($26)
L.10:
lda $14,1($14)
L.12:
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
sll $13,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,3,$25
ldq $25,y($25)
addq $27,$25,$27
ldl $27,($27)
cmpeq $27,$31,$23
beq $23,L.9
lda $16,L.14
jsr $26,printf
ldgp $gp,0($26)
L.6:
lda $13,1($13)
L.8:
sll $13,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,3,$27
ldq $27,y($27)
cmpeq $27,$31,$23
beq $23,L.5
jsr $26,f
ldgp $gp,0($26)
ldq $16,wordlist
jsr $26,g
ldgp $gp,0($26)
mov $31,$0
L.4:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $26,16($sp)
lda $sp,80($sp)
ret
.end main
.sdata
.align 3
L.16:
.quad L.17
.quad L.18
.quad L.19
.quad L.20
.quad 0x0
.globl f
.text
.text
.ent f
f:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
.prologue 1
lda $14,L.16
br L.24
L.21:
lda $16,L.25
ldq $17,($14)
jsr $26,printf
ldgp $gp,0($26)
L.22:
lda $14,8($14)
L.24:
ldq $27,($14)
cmpeq $27,$31,$23
beq $23,L.21
mov $31,$0
L.15:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end f
.globl g
.text
.ent g
g:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4006000,-64
.frame $sp,80,$26,48
stq $13,0($sp)
stq $14,8($sp)
stq $26,16($sp)
mov $16,$14
.prologue 1
br L.30
L.27:
mov $31,$13
br L.34
L.31:
lda $16,L.35
sll $13,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
addq $27,$14,$27
ldl $17,($27)
jsr $26,printf
ldgp $gp,0($26)
L.32:
lda $13,1($13)
L.34:
mov $13,$27
lda $25,3
cmpult $27,$25,$23
bne $23,L.31
lda $16,L.25
lda $17,12($14)
jsr $26,printf
ldgp $gp,0($26)
L.28:
lda $14,20($14)
L.30:
ldl $27,($14)
cmpeq $27,$31,$23
beq $23,L.27
jsr $26,h
ldgp $gp,0($26)
mov $31,$0
L.26:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $26,16($sp)
lda $sp,80($sp)
ret
.end g
.globl h
.text
.ent h
h:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
.prologue 1
mov $31,$14
br L.40
L.37:
lda $16,L.41
lda $27,20
sll $14,8*(8-4),$25
sra $25,8*(8-4),$25
mulq $27,$25,$27
ldl $17,words($27)
ldl $18,words+4($27)
ldl $19,words+8($27)
lda $20,words+12($27)
jsr $26,printf
ldgp $gp,0($26)
L.38:
lda $14,1($14)
L.40:
mov $14,$27
lda $25,5
cmpult $27,$25,$23
bne $23,L.37
mov $31,$0
L.36:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end h
.rdata
.align 0
L.41:
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 115
.byte 10
.byte 0
.align 0
L.35:
.byte 37
.byte 100
.byte 32
.byte 0
.align 0
L.25:
.byte 37
.byte 115
.byte 10
.byte 0
.align 0
L.20:
.byte 119
.byte 104
.byte 105
.byte 108
.byte 101
.byte 0
.align 0
L.19:
.byte 101
.byte 108
.byte 115
.byte 101
.byte 0
.align 0
L.18:
.byte 102
.byte 111
.byte 114
.byte 0
.align 0
L.17:
.byte 105
.byte 102
.byte 0
.align 0
L.14:
.byte 10
.byte 0
.align 0
L.13:
.byte 32
.byte 37
.byte 100
.byte 0

View file

@ -1,14 +0,0 @@
UCHAR_MAX: 000000ff=255
USHRT_MAX: 0000ffff=65535
UINT_MAX: ffffffff=-1
ULONG_MAX: ffffffffffffffff=-1
CHAR_MAX: 0000007f=127
SCHAR_MAX: 0000007f=127
SHRT_MAX: 00007fff=32767
INT_MAX: 7fffffff=2147483647
LONG_MAX: 7fffffffffffffff=9223372036854775807
CHAR_MIN: ffffff80=-128
SCHAR_MIN: ffffff80=-128
SHRT_MIN: ffff8000=-32768
INT_MIN: 80000000=-2147483648
LONG_MIN: 8000000000000000=-9223372036854775808

View file

@ -1,405 +0,0 @@
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
.prologue 1
lda $16,L.2
lda $27,255
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.3
lda $27,65535
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.4
lda $27,0xffffffff
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.5
lda $27,0xffffffffffffffff
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.6
lda $27,127
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.7
lda $27,127
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.8
lda $27,32767
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.9
lda $27,2147483647
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.10
lda $27,9223372036854775807
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.11
lda $27,-128
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.12
lda $27,-128
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.13
lda $27,-32768
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.14
lda $27,-2147483648
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
lda $16,L.15
lda $27,-9223372036854775808
mov $27,$17
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
mov $31,$0
L.1:
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end main
.rdata
.align 0
L.15:
.byte 76
.byte 79
.byte 78
.byte 71
.byte 95
.byte 77
.byte 73
.byte 78
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 108
.byte 120
.byte 61
.byte 37
.byte 108
.byte 100
.byte 10
.byte 0
.align 0
L.14:
.byte 73
.byte 78
.byte 84
.byte 95
.byte 77
.byte 73
.byte 78
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.13:
.byte 83
.byte 72
.byte 82
.byte 84
.byte 95
.byte 77
.byte 73
.byte 78
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.12:
.byte 83
.byte 67
.byte 72
.byte 65
.byte 82
.byte 95
.byte 77
.byte 73
.byte 78
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.11:
.byte 67
.byte 72
.byte 65
.byte 82
.byte 95
.byte 77
.byte 73
.byte 78
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.10:
.byte 76
.byte 79
.byte 78
.byte 71
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 108
.byte 120
.byte 61
.byte 37
.byte 108
.byte 100
.byte 10
.byte 0
.align 0
L.9:
.byte 73
.byte 78
.byte 84
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.8:
.byte 83
.byte 72
.byte 82
.byte 84
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.7:
.byte 83
.byte 67
.byte 72
.byte 65
.byte 82
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.6:
.byte 67
.byte 72
.byte 65
.byte 82
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.5:
.byte 85
.byte 76
.byte 79
.byte 78
.byte 71
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 108
.byte 120
.byte 61
.byte 37
.byte 108
.byte 100
.byte 10
.byte 0
.align 0
L.4:
.byte 85
.byte 73
.byte 78
.byte 84
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.3:
.byte 85
.byte 83
.byte 72
.byte 82
.byte 84
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.2:
.byte 85
.byte 67
.byte 72
.byte 65
.byte 82
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0

View file

@ -1,195 +0,0 @@
Lest this program stop prematurely, i.e. before displaying
`END OF TEST',
try to persuade the computer NOT to terminate execution when an
error like Over/Underflow or Division by Zero occurs, but rather
to persevere with a surrogate value after, perhaps, displaying some
warning. If persuasion avails naught, don't despair but run this
program anyway to see how many milestones it passes, and then
amend it to make further progress.
Answer questions with Y, y, N or n (unless otherwise indicated).
Diagnosis resumes after milestone Number 0 Page: 1
Users are invited to help debug and augment this program so it will
cope with unanticipated and newly uncovered arithmetic pathologies.
Please send suggestions and interesting results to
Richard Karpinski
Computer Center U-76
University of California
San Francisco, CA 94143-0704, USA
In doing so, please include the following information:
Precision: double;
Version: 10 February 1989;
Computer:
Compiler:
Optimization level:
Other relevant compiler options:
Diagnosis resumes after milestone Number 1 Page: 2
Running this program should reveal these characteristics:
Radix = 1, 2, 4, 8, 10, 16, 100, 256 ...
Precision = number of significant digits carried.
U2 = Radix/Radix^Precision = One Ulp
(OneUlpnit in the Last Place) of 1.000xxx .
U1 = 1/Radix^Precision = One Ulp of numbers a little less than 1.0 .
Adequacy of guard digits for Mult., Div. and Subt.
Whether arithmetic is chopped, correctly rounded, or something else
for Mult., Div., Add/Subt. and Sqrt.
Whether a Sticky Bit used correctly for rounding.
UnderflowThreshold = an underflow threshold.
E0 and PseudoZero tell whether underflow is abrupt, gradual, or fuzzy.
V = an overflow threshold, roughly.
V0 tells, roughly, whether Infinity is represented.
Comparisions are checked for consistency with subtraction
and for contamination with pseudo-zeros.
Sqrt is tested. Y^X is not tested.
Extra-precise subexpressions are revealed but NOT YET tested.
Decimal-Binary conversion is NOT YET tested for accuracy.
Diagnosis resumes after milestone Number 2 Page: 3
The program attempts to discriminate among
FLAWs, like lack of a sticky bit,
Serious DEFECTs, like lack of a guard digit, and
FAILUREs, like 2+2 == 5 .
Failures may confound subsequent diagnoses.
The diagnostic capabilities of this program go beyond an earlier
program called `MACHAR', which can be found at the end of the
book `Software Manual for the Elementary Functions' (1980) by
W. J. Cody and W. Waite. Although both programs try to discover
the Radix, Precision and range (over/underflow thresholds)
of the arithmetic, this program tries to cope with a wider variety
of pathologies, and to say how well the arithmetic is implemented.
The program is based upon a conventional radix representation for
floating-point numbers, but also allows logarithmic encoding
as used by certain early WANG machines.
BASIC version of this program (C) 1983 by Prof. W. M. Kahan;
see source comments for more history.
Diagnosis resumes after milestone Number 3 Page: 4
Program is now RUNNING tests on small integers:
-1, 0, 1/2, 1, 2, 3, 4, 5, 9, 27, 32 & 240 are O.K.
Searching for Radix and Precision.
Radix = 2.000000 .
Closest relative separation found is U1 = 1.1102230e-16 .
Recalculating radix and precision
confirms closest relative separation U1 .
Radix confirmed.
The number of significant digits of the Radix is 53.000000 .
Diagnosis resumes after milestone Number 30 Page: 5
Subtraction appears to be normalized, as it should be.
Checking for guard digit in *, /, and -.
*, /, and - appear to have guard digits, as they should.
Diagnosis resumes after milestone Number 40 Page: 6
Checking rounding on multiply, divide and add/subtract.
Multiplication appears to round correctly.
Division appears to round correctly.
Addition/Subtraction appears to round correctly.
Checking for sticky bit.
Sticky bit apparently used correctly.
Does Multiplication commute? Testing on 20 random pairs.
No failures found in 20 integer pairs.
Running test of square root(x).
Testing if sqrt(X * X) == X for 20 Integers X.
Test for sqrt monotonicity.
sqrt has passed a test for Monotonicity.
Testing whether sqrt is rounded or chopped.
Square root appears to be correctly rounded.
Diagnosis resumes after milestone Number 90 Page: 7
Testing powers Z^i for small Integers Z and i.
... no discrepancis found.
Seeking Underflow thresholds UfThold and E0.
Smallest strictly positive number found is E0 = 2.22507e-308 .
Since comparison denies Z = 0, evaluating (Z + Z) / Z should be safe.
What the machine gets for (Z + Z) / Z is 2.00000000000000000e+00 .
This is O.K., provided Over/Underflow has NOT just been signaled.
Diagnosis resumes after milestone Number 120 Page: 8
FLAW: X = 3.05947655544740190e-308
is not equal to Z = 2.22507385850720140e-308 .
yet X - Z yields 0.00000000000000000e+00 .
Should this NOT signal Underflow, this is a SERIOUS DEFECT
that causes confusion when innocent statements like
if (X == Z) ... else ... (f(X) - f(Z)) / (X - Z) ...
encounter Division by Zero although actually
X / Z = 1 + 0.375 .
The Underflow threshold is 2.22507385850720140e-308, below which
calculation may suffer larger Relative error than merely roundoff.
Since underflow occurs below the threshold
UfThold = (2.00000000000000000e+00) ^ (-1.02200000000000000e+03)
only underflow should afflict the expression
(2.00000000000000000e+00) ^ (-1.02200000000000000e+03);
actually calculating yields: 0.00000000000000000e+00 .
This computed value is O.K.
Testing X^((X + 1) / (X - 1)) vs. exp(2) = 7.38905609893065220e+00 as X -> 1.
Accuracy seems adequate.
Testing powers Z^Q at four nearly extreme values.
... no discrepancies found.
Diagnosis resumes after milestone Number 160 Page: 9
Searching for Overflow threshold:
This may generate an error.
* * * FLOATING-POINT ERROR * * *
Can `Z = -Y' overflow?
Trying it on Y = -8.98846567431157950e+307 .
Seems O.K.
Overflow threshold is V = 1.79769313486231570e+308 .
There is no saturation value because the system traps on overflow.
No Overflow should be signaled for V * 1 = 1.79769313486231570e+308
nor for V / 1 = 1.79769313486231570e+308 .
Any overflow signal separating this * from the one
above is a DEFECT.
Diagnosis resumes after milestone Number 190 Page: 10
What message and/or values does Division by Zero produce?
Trying to compute 1 / 0 produces ...
* * * FLOATING-POINT ERROR * * *
Trying to compute 0 / 0 produces ...
* * * FLOATING-POINT ERROR * * *
Diagnosis resumes after milestone Number 220 Page: 11
No failures, defects nor flaws have been discovered.
Rounding appears to conform to the proposed IEEE standard P754,
except for possibly Double Rounding during Gradual Underflow.
The arithmetic diagnosed appears to be Excellent!
A total of 3 floating point exceptions were registered.
END OF TEST.

View file

@ -1,16 +0,0 @@
tst/paranoia.c:1867: warning: missing return value
tst/paranoia.c:1874: warning: missing return value
tst/paranoia.c:1884: warning: missing return value
tst/paranoia.c:1924: warning: missing return value
tst/paranoia.c:1939: warning: missing return value
tst/paranoia.c:1956: warning: missing return value
tst/paranoia.c:1975: warning: missing return value
tst/paranoia.c:1988: warning: missing return value
tst/paranoia.c:1995: warning: missing return value
tst/paranoia.c:2055: warning: missing return value
tst/paranoia.c:2062: warning: missing return value
tst/paranoia.c:2070: warning: missing return value
tst/paranoia.c:2087: warning: missing return value
tst/paranoia.c:2115: warning: missing return value
tst/paranoia.c:2144: warning: missing return value
tst/paranoia.c:2173: warning: missing return value

File diff suppressed because it is too large Load diff

View file

@ -1,20 +0,0 @@
exchange(1,9)
exchange(3,7)
exchange(5,6)
exchange(0,5)
exchange(0,3)
exchange(0,0)
exchange(1,2)
exchange(6,6)
exchange(8,9)
exchange(7,8)
-51
-1
0
1
3
10
18
32
567
789

View file

@ -1,5 +0,0 @@
tst/sort.c:23: warning: missing return value
tst/sort.c:30: warning: missing return value
tst/sort.c:37: warning: missing return value
tst/sort.c:41: warning: missing return value
tst/sort.c:65: warning: missing return value

View file

@ -1,323 +0,0 @@
.sdata
.globl in
.align 2
in:
.long 0xa
.long 0x20
.long 0xffffffff
.long 0x237
.long 0x3
.long 0x12
.long 0x1
.long 0xffffffcd
.long 0x315
.long 0x0
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
.prologue 1
lda $16,in
lda $17,10
jsr $26,sort
ldgp $gp,0($26)
mov $31,$14
br L.5
L.2:
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
ldl $16,in($27)
jsr $26,putd
ldgp $gp,0($26)
lda $16,10
jsr $26,putchar
ldgp $gp,0($26)
L.3:
lda $14,1($14)
L.5:
mov $14,$27
lda $25,10
cmpult $27,$25,$23
bne $23,L.2
mov $31,$0
L.1:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end main
.globl putd
.text
.ent putd
putd:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x5004000,-64
.frame $sp,80,$26,48
stq $14,0($sp)
stq $24,8($sp)
stq $26,16($sp)
mov $16,$14
.prologue 1
cmplt $14,$31,$23
beq $23,L.7
lda $16,45
jsr $26,putchar
ldgp $gp,0($26)
negl $14,$14
L.7:
divl $14,10,$27
cmpeq $27,$31,$23
bne $23,L.9
divl $14,10,$16
jsr $26,putd
ldgp $gp,0($26)
L.9:
reml $14,10,$27
lda $16,48($27)
jsr $26,putchar
ldgp $gp,0($26)
mov $31,$0
L.6:
ldq $14,0($sp)
ldq $24,8($sp)
ldq $26,16($sp)
lda $sp,80($sp)
ret
.end putd
.globl sort
.text
.ent sort
sort:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
stq $16,16($sp)
stq $17,24($sp)
.prologue 1
ldq $27,-48+64($sp)
stq $27,xx
mov $27,$16
mov $31,$17
ldl $27,-40+64($sp)
subl $27,1,$27
stl $27,-40+64($sp)
mov $27,$18
jsr $26,quick
ldgp $gp,0($26)
mov $31,$0
L.11:
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end sort
.globl quick
.text
.ent quick
quick:
ldgp $gp,0($27)
lda $sp,-96($sp)
.mask 0x4007800,-64
.frame $sp,96,$26,48
stq $11,0($sp)
stq $12,8($sp)
stq $13,16($sp)
stq $14,24($sp)
stq $26,32($sp)
mov $16,$14
mov $17,$13
mov $18,$12
.prologue 1
cmplt $13,$12,$23
bne $23,L.13
br L.12
L.13:
mov $14,$16
mov $13,$17
mov $12,$18
jsr $26,partition
ldgp $gp,0($26)
mov $0,$11
mov $14,$16
mov $13,$17
subl $11,1,$18
jsr $26,quick
ldgp $gp,0($26)
mov $14,$16
lda $17,1($11)
mov $12,$18
jsr $26,quick
ldgp $gp,0($26)
mov $31,$0
L.12:
ldq $11,0($sp)
ldq $12,8($sp)
ldq $13,16($sp)
ldq $14,24($sp)
ldq $26,32($sp)
lda $sp,96($sp)
ret
.end quick
.globl partition
.text
.ent partition
partition:
ldgp $gp,0($27)
lda $sp,-112($sp)
.mask 0x4007c00,-72
.frame $sp,112,$26,48
stq $10,0($sp)
stq $11,8($sp)
stq $12,16($sp)
stq $13,24($sp)
stq $14,32($sp)
stq $26,40($sp)
mov $16,$14
mov $17,$13
mov $18,$12
.prologue 1
lda $12,1($12)
mov $13,$10
sll $10,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
addq $27,$14,$27
ldl $11,($27)
br L.17
L.16:
lda $13,1($13)
br L.20
L.19:
lda $13,1($13)
L.20:
sll $13,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
addq $27,$14,$27
ldl $27,($27)
cmplt $27,$11,$23
bne $23,L.19
subl $12,1,$12
br L.23
L.22:
subl $12,1,$12
L.23:
sll $12,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
addq $27,$14,$27
ldl $27,($27)
cmple $27,$11,$23
beq $23,L.22
cmplt $13,$12,$23
beq $23,L.25
sll $13,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
addq $27,$14,$16
sll $12,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
addq $27,$14,$17
jsr $26,exchange
ldgp $gp,0($26)
L.25:
L.17:
cmplt $13,$12,$23
bne $23,L.16
sll $10,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
addq $27,$14,$16
sll $12,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,2,$27
addq $27,$14,$17
jsr $26,exchange
ldgp $gp,0($26)
mov $12,$0
L.15:
ldq $10,0($sp)
ldq $11,8($sp)
ldq $12,16($sp)
ldq $13,24($sp)
ldq $14,32($sp)
ldq $26,40($sp)
lda $sp,112($sp)
ret
.end partition
.globl exchange
.text
.ent exchange
exchange:
ldgp $gp,0($27)
lda $sp,-112($sp)
.mask 0x5006000,-88
.frame $sp,112,$26,48
stq $13,0($sp)
stq $14,8($sp)
stq $24,16($sp)
stq $26,24($sp)
mov $16,$14
mov $17,$13
.prologue 1
lda $16,L.28
ldq $27,xx
stq $27,-80+112($sp)
mov $14,$25
subq $25,$27,$25
stq $25,-72+112($sp)
divq $25,4,$17
mov $13,$27
ldq $25,-80+112($sp)
subq $27,$25,$27
divq $27,4,$18
jsr $26,printf
ldgp $gp,0($26)
ldl $27,($14)
stl $27,-60+112($sp)
ldl $27,($13)
stl $27,($14)
ldl $27,-60+112($sp)
stl $27,($13)
mov $31,$0
L.27:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $24,16($sp)
ldq $26,24($sp)
lda $sp,112($sp)
ret
.end exchange
.globl xx
.comm xx,8
.rdata
.align 0
L.28:
.byte 101
.byte 120
.byte 99
.byte 104
.byte 97
.byte 110
.byte 103
.byte 101
.byte 40
.byte 37
.byte 100
.byte 44
.byte 37
.byte 100
.byte 41
.byte 10
.byte 0

View file

@ -1,6 +0,0 @@
tst/spill.c:1: warning: missing return value
tst/spill.c:3: warning: missing return value
tst/spill.c:5: warning: missing return value
tst/spill.c:7: warning: missing return value
tst/spill.c:9: warning: missing return value
tst/spill.c:17: warning: missing return value

View file

@ -1,272 +0,0 @@
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-64($sp)
.frame $sp,64,$26,48
.prologue 1
mov $31,$0
L.1:
lda $sp,64($sp)
ret
.end main
.globl f
.text
.ent f
f:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4000000,-80
.frame $sp,80,$26,48
stq $26,0($sp)
stq $16,32($sp)
.prologue 1
jsr $26,f
ldgp $gp,0($26)
mov $0,$27
stl $27,-60+80($sp)
jsr $26,f
ldgp $gp,0($26)
ldl $25,-60+80($sp)
addl $25,$0,$27
stl $27,-48+80($sp)
mov $31,$0
L.2:
ldq $26,0($sp)
lda $sp,80($sp)
ret
.end f
.globl f2
.text
.ent f2
f2:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
stq $16,32($sp)
.prologue 1
jsr $26,f
ldgp $gp,0($26)
mov $0,$27
stl $27,-60+80($sp)
ldl $25,-48+80($sp)
cmpeq $25,$31,$23
bne $23,L.5
jsr $26,f
ldgp $gp,0($26)
mov $0,$27
mov $27,$14
br L.6
L.5:
lda $14,1
L.6:
ldl $27,-60+80($sp)
addl $27,$14,$27
stl $27,-48+80($sp)
mov $31,$0
L.3:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end f2
.globl f3
.text
.ent f3
f3:
ldgp $gp,0($27)
lda $sp,-144($sp)
.mask 0x4007e00,-96
.frame $sp,144,$26,48
stq $9,0($sp)
stq $10,8($sp)
stq $11,16($sp)
stq $12,24($sp)
stq $13,32($sp)
stq $14,40($sp)
stq $26,48($sp)
stq $16,96($sp)
stq $17,104($sp)
.prologue 1
mov $31,$14
mov $31,$13
mov $31,$12
mov $31,$11
mov $31,$10
mov $31,$9
stl $31,-60+144($sp)
stl $31,-64+144($sp)
stl $31,-68+144($sp)
stl $31,-72+144($sp)
ldq $27,-40+144($sp)
stq $27,-88+144($sp)
lda $25,4($27)
stq $25,-40+144($sp)
ldl $25,-48+144($sp)
cmpeq $25,$31,$23
bne $23,L.9
jsr $26,f
ldgp $gp,0($26)
mov $0,$27
stl $27,-76+144($sp)
br L.10
L.9:
stl $31,-76+144($sp)
L.10:
ldl $27,-76+144($sp)
ldq $25,-88+144($sp)
stl $27,($25)
mov $31,$0
L.7:
ldq $9,0($sp)
ldq $10,8($sp)
ldq $11,16($sp)
ldq $12,24($sp)
ldq $13,32($sp)
ldq $14,40($sp)
ldq $26,48($sp)
lda $sp,144($sp)
ret
.end f3
.globl f4
.text
.ent f4
f4:
ldgp $gp,0($27)
lda $sp,-128($sp)
.mask 0x4007e00,-80
.frame $sp,128,$26,48
stq $9,0($sp)
stq $10,8($sp)
stq $11,16($sp)
stq $12,24($sp)
stq $13,32($sp)
stq $14,40($sp)
stq $26,48($sp)
.prologue 1
mov $31,$14
mov $31,$13
mov $31,$12
mov $31,$11
mov $31,$10
mov $31,$9
ldl $27,i
sll $27,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,3,$25
ldt $f30,a($25)
ldt $f29,b($25)
ldt $f28,L.15
addt $f30,$f29,$f27
cmpteq $f27,$f28,$f1
fbne $f1,L.13
cmpeq $27,$31,$23
bne $23,L.13
subt $f30,$f29,$f30
cmpteq $f30,$f28,$f1
fbne $f1,L.13
lda $27,1
stl $27,-60+128($sp)
br L.14
L.13:
stl $31,-60+128($sp)
L.14:
ldl $27,-60+128($sp)
stl $27,i
mov $31,$0
L.11:
ldq $9,0($sp)
ldq $10,8($sp)
ldq $11,16($sp)
ldq $12,24($sp)
ldq $13,32($sp)
ldq $14,40($sp)
ldq $26,48($sp)
lda $sp,128($sp)
ret
.end f4
.globl f5
.text
.ent f5
f5:
ldgp $gp,0($27)
lda $sp,-64($sp)
.frame $sp,64,$26,48
.prologue 1
ldl $27,k
ldl $25,m
ldq $22,A
mull $27,$25,$8
sll $8,8*(8-4),$8
sra $8,8*(8-4),$8
sll $8,3,$8
addq $8,$22,$8
ldl $7,j
mull $7,$25,$25
sll $25,8*(8-4),$25
sra $25,8*(8-4),$25
sll $25,3,$25
addq $25,$22,$25
ldl $22,n
ldq $6,B
mull $27,$22,$27
sll $27,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,3,$27
addq $27,$6,$27
mull $7,$22,$22
sll $22,8*(8-4),$22
sra $22,8*(8-4),$22
sll $22,3,$22
addq $22,$6,$22
ldt $f30,($8)
ldt $f29,($25)
mult $f30,$f29,$f30
ldt $f29,($27)
ldt $f28,($22)
mult $f29,$f28,$f29
addt $f30,$f29,$f30
stt $f30,x
ldt $f30,($8)
ldt $f29,($22)
mult $f30,$f29,$f30
ldt $f29,($27)
ldt $f28,($25)
mult $f29,$f28,$f29
subt $f30,$f29,$f30
stt $f30,x
mov $31,$0
L.16:
lda $sp,64($sp)
ret
.end f5
.globl x
.comm x,8
.globl B
.comm B,8
.globl A
.comm A,8
.globl n
.comm n,4
.globl m
.comm m,4
.globl k
.comm k,4
.globl j
.comm j,4
.globl i
.comm i,4
.globl b
.comm b,80
.globl a
.comm a,80
.rdata
.align 3
L.15:
.long 0x0
.long 0x0

View file

@ -1,6 +0,0 @@
test 1
test 2
test 3
test 4
test 5.000000
{1 2 3 4} {1 2 3 4} {1 2 3 4} {1 2 3 4} {1 2 3 4} {1 2 3 4}

View file

@ -1 +0,0 @@
tst/stdarg.c:51: warning: missing return value

View file

@ -1,430 +0,0 @@
.sdata
.globl x
.align 2
x:
.long 0x1
.long 0x2
.long 0x3
.long 0x4
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-128($sp)
.mask 0x4000000,-72
.frame $sp,128,$26,48
stq $26,56($sp)
.prologue 1
lda $16,L.3
jsr $26,print
ldgp $gp,0($26)
lda $16,L.4
lda $17,L.5
jsr $26,print
ldgp $gp,0($26)
lda $16,L.6
lda $17,3
lda $18,10
jsr $26,print
ldgp $gp,0($26)
lda $16,L.7
lda $17,L.8
lda $18,L.9
lda $19,4
lda $20,10
jsr $26,print
ldgp $gp,0($26)
lda $16,L.10
lda $17,L.8
lda $18,L.9
ldt $f19,L.11
lda $20,10
jsr $26,print
ldgp $gp,0($26)
lda $16,L.12
lda $27,x
mov $27,$1
uldq $17,0($1)
uldq $18,8($1)
mov $27,$1
uldq $19,0($1)
uldq $20,8($1)
mov $27,$1
uldq $21,0($1)
ldl $4,8($1)
ldl $2,12($1)
stl $4,0($30)
stl $2,4($30)
mov $27,$1
ldl $4,0($1)
ldl $2,4($1)
stl $4,8($30)
stl $2,12($30)
ldl $4,8($1)
ldl $2,12($1)
stl $4,16($30)
stl $2,20($30)
mov $27,$1
ldl $4,0($1)
ldl $2,4($1)
stl $4,24($30)
stl $2,28($30)
ldl $4,8($1)
ldl $2,12($1)
stl $4,32($30)
stl $2,36($30)
mov $27,$1
ldl $4,0($1)
ldl $2,4($1)
stl $4,40($30)
stl $2,44($30)
ldl $4,8($1)
ldl $2,12($1)
stl $4,48($30)
stl $2,52($30)
jsr $26,print
ldgp $gp,0($26)
mov $31,$0
L.2:
ldq $26,56($sp)
lda $sp,128($sp)
ret
.end main
.globl print
.text
.ent print
print:
ldgp $gp,0($27)
lda $sp,-160($sp)
.mask 0x4006000,-144
.frame $sp,160,$26,96
stq $13,0($sp)
stq $14,8($sp)
stq $26,16($sp)
stq $16,112($sp)
stq $17,120($sp)
stt $f17,72($sp)
stq $18,128($sp)
stt $f18,80($sp)
stq $19,136($sp)
stt $f19,88($sp)
stq $20,144($sp)
stt $f20,96($sp)
stq $21,152($sp)
stt $f21,104($sp)
.prologue 1
lda $27,-48+160($sp)
stq $27,-120+160($sp)
lda $27,-40+160($sp)
ldq $25,-120+160($sp)
subq $27,$25,$27
stl $27,-112+160($sp)
br L.21
L.18:
ldq $27,-48+160($sp)
ldb $27,($27)
cmpeq $27,37,$23
beq $23,L.22
ldq $27,-48+160($sp)
lda $27,1($27)
stq $27,-48+160($sp)
ldb $14,($27)
lda $27,115
cmpeq $14,$27,$23
bne $23,L.74
cmple $14,$27,$23
beq $23,L.100
L.99:
lda $27,98
cmplt $14,$27,$23
bne $23,L.24
lda $27,102
cmple $14,$27,$23
beq $23,L.24
subl $14,98,$27
sll $27,3,$27
ldq $27,L.101($27)
jmp ($27)
.rdata
.align 3
L.101:
.quad L.27
.quad L.41
.quad L.52
.quad L.24
.quad L.85
.text
L.100:
lda $27,119
cmpeq $14,$27,$23
bne $23,L.63
br L.24
L.27:
ldl $27,-112+160($sp)
lda $27,16($27)
stl $27,-112+160($sp)
lda $27,-136+160($sp)
ldl $25,-112+160($sp)
ldq $22,-120+160($sp)
addq $25,$22,$25
lda $1,-16($25)
ldl $4,0($1)
ldl $2,4($1)
stl $4,0($27)
stl $2,4($27)
ldl $4,8($1)
ldl $2,12($1)
stl $4,8($27)
stl $2,12($27)
lda $16,L.37
ldl $17,-136+160($sp)
ldl $18,-132+160($sp)
ldl $19,-128+160($sp)
ldl $20,-124+160($sp)
jsr $26,printf
ldgp $gp,0($26)
br L.23
L.41:
lda $16,L.42
ldl $27,-112+160($sp)
lda $27,8($27)
stl $27,-112+160($sp)
ldl $27,-112+160($sp)
ldq $25,-120+160($sp)
addq $27,$25,$27
lda $27,-8($27)
ldb $17,($27)
jsr $26,printf
ldgp $gp,0($26)
br L.23
L.52:
lda $16,L.53
ldl $27,-112+160($sp)
lda $27,8($27)
stl $27,-112+160($sp)
ldl $27,-112+160($sp)
ldq $25,-120+160($sp)
addq $27,$25,$27
ldl $17,-8($27)
jsr $26,printf
ldgp $gp,0($26)
br L.23
L.63:
lda $16,L.64
ldl $27,-112+160($sp)
lda $27,8($27)
stl $27,-112+160($sp)
ldl $27,-112+160($sp)
ldq $25,-120+160($sp)
addq $27,$25,$27
lda $27,-8($27)
ldw $17,($27)
jsr $26,printf
ldgp $gp,0($26)
br L.23
L.74:
lda $16,L.75
ldl $27,-112+160($sp)
lda $27,8($27)
stl $27,-112+160($sp)
ldl $27,-112+160($sp)
ldq $25,-120+160($sp)
addq $27,$25,$27
ldq $17,-8($27)
jsr $26,printf
ldgp $gp,0($26)
br L.23
L.85:
lda $16,L.86
ldl $27,-112+160($sp)
lda $27,8($27)
stl $27,-112+160($sp)
ldl $27,-112+160($sp)
cmple $27,48,$23
beq $23,L.97
ldl $27,-112+160($sp)
ldq $25,-120+160($sp)
addq $27,$25,$27
lda $13,-56($27)
br L.98
L.97:
ldl $27,-112+160($sp)
ldq $25,-120+160($sp)
addq $27,$25,$27
lda $13,-8($27)
L.98:
ldt $f17,($13)
jsr $26,printf
ldgp $gp,0($26)
br L.23
L.24:
lda $16,L.42
ldq $27,-48+160($sp)
ldb $17,($27)
jsr $26,printf
ldgp $gp,0($26)
br L.23
L.22:
lda $16,L.42
ldq $27,-48+160($sp)
ldb $17,($27)
jsr $26,printf
ldgp $gp,0($26)
L.23:
L.19:
ldq $27,-48+160($sp)
lda $27,1($27)
stq $27,-48+160($sp)
L.21:
ldq $27,-48+160($sp)
ldb $27,($27)
cmpeq $27,$31,$23
beq $23,L.18
mov $31,$0
L.13:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $26,16($sp)
lda $sp,160($sp)
ret
.end print
.rdata
.align 0
L.86:
.byte 37
.byte 102
.byte 0
.align 0
L.75:
.byte 37
.byte 115
.byte 0
.align 0
L.64:
.byte 37
.byte 120
.byte 0
.align 0
L.53:
.byte 37
.byte 100
.byte 0
.align 0
L.42:
.byte 37
.byte 99
.byte 0
.align 0
L.37:
.byte 123
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 125
.byte 0
.align 0
L.12:
.byte 37
.byte 98
.byte 32
.byte 37
.byte 98
.byte 32
.byte 37
.byte 98
.byte 32
.byte 37
.byte 98
.byte 32
.byte 37
.byte 98
.byte 32
.byte 37
.byte 98
.byte 10
.byte 0
.align 3
L.11:
.long 0x0
.long 0x40140000
.align 0
L.10:
.byte 37
.byte 115
.byte 37
.byte 115
.byte 32
.byte 37
.byte 102
.byte 37
.byte 99
.byte 0
.align 0
L.9:
.byte 115
.byte 116
.byte 0
.align 0
L.8:
.byte 116
.byte 101
.byte 0
.align 0
L.7:
.byte 37
.byte 115
.byte 37
.byte 115
.byte 32
.byte 37
.byte 119
.byte 37
.byte 99
.byte 0
.align 0
L.6:
.byte 116
.byte 101
.byte 115
.byte 116
.byte 32
.byte 37
.byte 100
.byte 37
.byte 99
.byte 0
.align 0
L.5:
.byte 50
.byte 0
.align 0
L.4:
.byte 116
.byte 101
.byte 115
.byte 116
.byte 32
.byte 37
.byte 115
.byte 10
.byte 0
.align 0
L.3:
.byte 116
.byte 101
.byte 115
.byte 116
.byte 32
.byte 49
.byte 10
.byte 0

View file

@ -1,5 +0,0 @@
(-1,-1) is not within [10,10; 310,310]
(1,1) is not within [10,10; 310,310]
(20,300) is within [10,10; 310,310]
(500,400) is not within [10,10; 310,310]
ab

View file

@ -1,2 +0,0 @@
tst/struct.c:49: warning: missing return value
tst/struct.c:68: warning: missing return value

View file

@ -1,443 +0,0 @@
.globl addpoint
.text
.text
.ent addpoint
addpoint:
ldgp $gp,0($27)
lda $sp,-64($sp)
.frame $sp,64,$26,48
stq $17,24($sp)
stq $18,32($sp)
.prologue 1
ldl $27,-40+64($sp)
ldl $25,-32+64($sp)
addl $27,$25,$27
stl $27,-40+64($sp)
ldl $27,-36+64($sp)
ldl $25,-28+64($sp)
addl $27,$25,$27
stl $27,-36+64($sp)
lda $1,-40+64($sp)
ldl $4,0($1)
ldl $2,4($1)
stl $4,0($16)
stl $2,4($16)
L.1:
lda $sp,64($sp)
ret
.end addpoint
.globl canonrect
.text
.ent canonrect
canonrect:
ldgp $gp,0($27)
lda $sp,-112($sp)
.mask 0x4007800,-80
.frame $sp,112,$26,48
stq $11,0($sp)
stq $12,8($sp)
stq $13,16($sp)
stq $14,24($sp)
stq $26,32($sp)
stq $17,72($sp)
stq $18,80($sp)
.prologue 1
ldl $27,-40+112($sp)
ldl $25,-32+112($sp)
cmplt $27,$25,$23
beq $23,L.10
ldl $14,-40+112($sp)
br L.11
L.10:
ldl $14,-32+112($sp)
L.11:
stl $14,-72+112($sp)
ldl $27,-36+112($sp)
ldl $25,-28+112($sp)
cmplt $27,$25,$23
beq $23,L.20
ldl $13,-36+112($sp)
br L.21
L.20:
ldl $13,-28+112($sp)
L.21:
stl $13,-68+112($sp)
ldl $27,-40+112($sp)
ldl $25,-32+112($sp)
cmple $27,$25,$23
bne $23,L.26
ldl $12,-40+112($sp)
br L.27
L.26:
ldl $12,-32+112($sp)
L.27:
stl $12,-64+112($sp)
ldl $27,-36+112($sp)
ldl $25,-28+112($sp)
cmple $27,$25,$23
bne $23,L.37
ldl $11,-36+112($sp)
br L.38
L.37:
ldl $11,-28+112($sp)
L.38:
stl $11,-60+112($sp)
lda $1,-72+112($sp)
ldl $4,0($1)
ldl $2,4($1)
stl $4,0($16)
stl $2,4($16)
ldl $4,8($1)
ldl $2,12($1)
stl $4,8($16)
stl $2,12($16)
L.5:
ldq $11,0($sp)
ldq $12,8($sp)
ldq $13,16($sp)
ldq $14,24($sp)
ldq $26,32($sp)
lda $sp,112($sp)
ret
.end canonrect
.globl makepoint
.text
.ent makepoint
makepoint:
ldgp $gp,0($27)
lda $sp,-64($sp)
.frame $sp,64,$26,48
.prologue 1
stl $17,-64+64($sp)
stl $18,-60+64($sp)
lda $1,-64+64($sp)
ldl $4,0($1)
ldl $2,4($1)
stl $4,0($16)
stl $2,4($16)
L.39:
lda $sp,64($sp)
ret
.end makepoint
.globl makerect
.text
.ent makerect
makerect:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4000000,-80
.frame $sp,80,$26,48
stq $26,0($sp)
stq $16,32($sp)
stq $17,40($sp)
stq $18,48($sp)
.prologue 1
lda $27,-72+80($sp)
lda $1,-40+80($sp)
ldl $4,0($1)
ldl $2,4($1)
stl $4,0($27)
stl $2,4($27)
lda $27,-64+80($sp)
lda $1,-32+80($sp)
ldl $4,0($1)
ldl $2,4($1)
stl $4,0($27)
stl $2,4($27)
ldq $16,-48+80($sp)
lda $1,-72+80($sp)
uldq $17,0($1)
uldq $18,8($1)
jsr $26,canonrect
ldgp $gp,0($26)
L.42:
ldq $26,0($sp)
lda $sp,80($sp)
ret
.end makerect
.globl ptinrect
.text
.ent ptinrect
ptinrect:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
stq $16,32($sp)
stq $17,40($sp)
stq $18,48($sp)
.prologue 1
ldl $27,-48+80($sp)
ldl $25,-40+80($sp)
cmplt $27,$25,$23
bne $23,L.53
ldl $25,-32+80($sp)
cmplt $27,$25,$23
beq $23,L.53
ldl $27,-44+80($sp)
ldl $25,-36+80($sp)
cmplt $27,$25,$23
bne $23,L.53
ldl $27,-44+80($sp)
ldl $25,-28+80($sp)
cmplt $27,$25,$23
beq $23,L.53
lda $14,1
br L.54
L.53:
mov $31,$14
L.54:
mov $14,$0
L.45:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end ptinrect
.sdata
.globl y
.align 0
y:
.byte 97
.byte 98
.byte 0
.globl odd
.text
.text
.ent odd
odd:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4000000,-80
.frame $sp,80,$26,48
stq $26,0($sp)
stq $16,32($sp)
.prologue 1
lda $27,-59+80($sp)
lda $1,-48+80($sp)
ldb $4,0($1)
ldb $2,1($1)
stb $4,0($27)
stb $2,1($27)
ldb $4,2($1)
stb $4,2($27)
lda $16,L.56
lda $17,-59+80($sp)
jsr $26,printf
ldgp $gp,0($26)
mov $31,$0
L.55:
ldq $26,0($sp)
lda $sp,80($sp)
ret
.end odd
.rdata
.align 2
L.58:
.long 0x0
.long 0x0
.align 2
L.59:
.long 0x140
.long 0x140
.align 2
L.60:
.long 0xffffffff
.long 0xffffffff
.long 0x1
.long 0x1
.long 0x14
.long 0x12c
.long 0x1f4
.long 0x190
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-176($sp)
.mask 0x4004000,-168
.frame $sp,176,$26,48
stq $14,0($sp)
stq $26,8($sp)
.prologue 1
lda $27,-120+176($sp)
lda $1,L.58
ldl $4,0($1)
ldl $2,4($1)
stl $4,0($27)
stl $2,4($27)
lda $27,-128+176($sp)
lda $1,L.59
ldl $4,0($1)
ldl $2,4($1)
stl $4,0($27)
stl $2,4($27)
lda $27,-88+176($sp)
lda $1,L.60
addq $1,32,$1
addq $27,32,$3
L.76:
addq $1,-8,$1
addq $3,-8,$3
ldl $4,0($1)
ldl $2,4($1)
stl $4,0($3)
stl $2,4($3)
cmpult $27,$3,$23
bne $23,L.76
lda $16,-136+176($sp)
lda $27,-10
mov $27,$17
mov $27,$18
jsr $26,makepoint
ldgp $gp,0($26)
lda $16,-144+176($sp)
lda $1,-128+176($sp)
uldq $17,0($1)
lda $1,-136+176($sp)
uldq $18,0($1)
jsr $26,addpoint
ldgp $gp,0($26)
lda $16,-152+176($sp)
lda $27,10
mov $27,$17
mov $27,$18
jsr $26,makepoint
ldgp $gp,0($26)
lda $16,-160+176($sp)
lda $1,-120+176($sp)
uldq $17,0($1)
lda $1,-152+176($sp)
uldq $18,0($1)
jsr $26,addpoint
ldgp $gp,0($26)
lda $16,-104+176($sp)
lda $1,-144+176($sp)
uldq $17,0($1)
lda $1,-160+176($sp)
uldq $18,0($1)
jsr $26,makerect
ldgp $gp,0($26)
mov $31,$14
br L.64
L.61:
lda $16,-112+176($sp)
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,3,$27
lda $25,-88+176($sp)
addq $27,$25,$25
ldl $17,($25)
lda $25,-84+176($sp)
addq $27,$25,$27
ldl $18,($27)
jsr $26,makepoint
ldgp $gp,0($26)
lda $16,L.65
sll $14,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,3,$27
lda $25,-88+176($sp)
addq $27,$25,$27
ldl $17,($27)
ldl $18,-108+176($sp)
jsr $26,printf
ldgp $gp,0($26)
lda $1,-112+176($sp)
uldq $16,0($1)
lda $1,-104+176($sp)
uldq $17,0($1)
uldq $18,8($1)
jsr $26,ptinrect
ldgp $gp,0($26)
cmpeq $0,$31,$23
beq $23,L.68
lda $16,L.70
jsr $26,printf
ldgp $gp,0($26)
L.68:
lda $16,L.71
ldl $17,-104+176($sp)
ldl $18,-100+176($sp)
ldl $19,-96+176($sp)
ldl $20,-92+176($sp)
jsr $26,printf
ldgp $gp,0($26)
L.62:
lda $14,1($14)
L.64:
mov $14,$27
lda $25,4
cmpult $27,$25,$23
bne $23,L.61
lda $1,y
uldq $16,0($1)
jsr $26,odd
ldgp $gp,0($26)
mov $31,$16
jsr $26,exit
ldgp $gp,0($26)
mov $31,$0
L.57:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,176($sp)
ret
.end main
.rdata
.align 0
L.71:
.byte 119
.byte 105
.byte 116
.byte 104
.byte 105
.byte 110
.byte 32
.byte 91
.byte 37
.byte 100
.byte 44
.byte 37
.byte 100
.byte 59
.byte 32
.byte 37
.byte 100
.byte 44
.byte 37
.byte 100
.byte 93
.byte 10
.byte 0
.align 0
L.70:
.byte 110
.byte 111
.byte 116
.byte 32
.byte 0
.align 0
L.65:
.byte 40
.byte 37
.byte 100
.byte 44
.byte 37
.byte 100
.byte 41
.byte 32
.byte 105
.byte 115
.byte 32
.byte 0
.align 0
L.56:
.byte 37
.byte 115
.byte 10
.byte 0

View file

@ -1,76 +0,0 @@
b = 0x8
f = 0xc
n = 0xa
r = 0xd
t = 0x9
v = 0xb
x = 0x78
f:
x = 0
x = 1
x = 2
x = 2
x = 2
x = 2
x = 2
x = 7
x = 8
x = 9
x = 9
x = 9
x = 9
x = 9
x = 9
x = 9
x = 16
x = 17
x = 18
x = 19
x = 20
g:
1 1
1 2
2 3
2 4
2 5
3 6
d 6
3 7
d 7
3 8
d 8
d 9
d 10
h:
i = 8
i = 16
i = 120
i = 128
i = 248
i = 264
i = 272
i = 280
i = 288
i = 296
i = 304
i = 312
488 defaults
x = 0x1000000
x = 0x2000000
x = 0x3000000
x = 0x4000000
x = 0x5000000
x = 0x6000000 (default)
x = 0x7000000 (default)
0
1
2
3
4
5
0
1
2
3
4
5

View file

@ -1,7 +0,0 @@
tst/switch.c:55: warning: missing return value
tst/switch.c:73: warning: missing return value
tst/switch.c:97: warning: missing return value
tst/switch.c:101: warning: overflow in converting constant expression from `int' to `unsigned int'
tst/switch.c:102: warning: overflow in converting constant expression from `int' to `unsigned int'
tst/switch.c:112: warning: missing return value
tst/switch.c:137: warning: missing return value

View file

@ -1,903 +0,0 @@
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4006000,-64
.frame $sp,80,$26,48
stq $13,0($sp)
stq $14,8($sp)
stq $26,16($sp)
.prologue 1
lda $14,L.6
br L.5
L.2:
ldb $16,($14)
jsr $26,backslash
ldgp $gp,0($26)
mov $0,$27
lda $16,L.7
ldb $17,($14)
mov $27,$18
jsr $26,printf
ldgp $gp,0($26)
L.3:
lda $14,1($14)
L.5:
ldb $27,($14)
cmpeq $27,$31,$23
beq $23,L.2
jsr $26,f
ldgp $gp,0($26)
jsr $26,g
ldgp $gp,0($26)
jsr $26,h
ldgp $gp,0($26)
lda $13,16777216
br L.11
L.8:
mov $13,$16
jsr $26,big
ldgp $gp,0($26)
L.9:
lda $13,16777216($13)
L.11:
and $13,117440512,$27
addl $27,0,$27
cmpeq $27,$31,$23
beq $23,L.8
jsr $26,limit
ldgp $gp,0($26)
mov $31,$0
L.1:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $26,16($sp)
lda $sp,80($sp)
ret
.end main
.globl backslash
.text
.ent backslash
backslash:
ldgp $gp,0($27)
lda $sp,-64($sp)
.frame $sp,64,$26,48
.prologue 1
lda $27,102
cmpeq $16,$27,$23
bne $23,L.16
cmple $16,$27,$23
beq $23,L.22
L.21:
lda $27,98
cmpeq $16,$27,$23
bne $23,L.15
br L.13
L.22:
lda $27,110
cmpeq $16,$27,$23
bne $23,L.17
cmplt $16,$27,$23
bne $23,L.13
L.23:
lda $27,114
cmpeq $16,$27,$23
bne $23,L.18
lda $27,116
cmpeq $16,$27,$23
bne $23,L.19
lda $27,118
cmpeq $16,$27,$23
bne $23,L.20
br L.13
L.15:
lda $0,8
br L.12
L.16:
lda $0,12
br L.12
L.17:
lda $0,10
br L.12
L.18:
lda $0,13
br L.12
L.19:
lda $0,9
br L.12
L.20:
lda $0,11
br L.12
L.13:
mov $16,$0
L.12:
lda $sp,64($sp)
ret
.end backslash
.globl f
.text
.ent f
f:
ldgp $gp,0($27)
lda $sp,-96($sp)
.mask 0x4007000,-72
.frame $sp,96,$26,48
stq $12,0($sp)
stq $13,8($sp)
stq $14,16($sp)
stq $26,24($sp)
.prologue 1
mov $31,$13
lda $16,L.25
jsr $26,printf
ldgp $gp,0($26)
mov $31,$14
L.26:
mov $14,$12
cmplt $14,1,$23
bne $23,L.30
cmple $14,20,$23
beq $23,L.30
subl $14,1,$27
sll $27,3,$27
ldq $27,L.42($27)
jmp ($27)
.rdata
.align 3
L.42:
.quad L.32
.quad L.33
.quad L.30
.quad L.30
.quad L.30
.quad L.30
.quad L.34
.quad L.35
.quad L.36
.quad L.30
.quad L.30
.quad L.30
.quad L.30
.quad L.30
.quad L.30
.quad L.37
.quad L.38
.quad L.39
.quad L.40
.quad L.41
.text
L.32:
mov $14,$13
br L.31
L.33:
mov $14,$13
br L.31
L.34:
mov $14,$13
br L.31
L.35:
mov $14,$13
br L.31
L.36:
mov $14,$13
br L.31
L.37:
mov $14,$13
br L.31
L.38:
mov $14,$13
br L.31
L.39:
mov $14,$13
br L.31
L.40:
mov $14,$13
br L.31
L.41:
mov $14,$13
L.30:
L.31:
lda $16,L.43
mov $13,$17
jsr $26,printf
ldgp $gp,0($26)
L.27:
lda $14,1($14)
cmple $14,20,$23
bne $23,L.26
mov $31,$0
L.24:
ldq $12,0($sp)
ldq $13,8($sp)
ldq $14,16($sp)
ldq $26,24($sp)
lda $sp,96($sp)
ret
.end f
.globl g
.text
.ent g
g:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
.prologue 1
lda $16,L.45
jsr $26,printf
ldgp $gp,0($26)
lda $14,1
L.46:
lda $27,1001
cmplt $14,$27,$23
bne $23,L.63
lda $27,1004
cmple $14,$27,$23
beq $23,L.64
subl $14,1001,$27
sll $27,3,$27
ldq $27,L.65($27)
jmp ($27)
.rdata
.align 3
L.65:
.quad L.59
.quad L.59
.quad L.59
.quad L.59
.text
L.63:
cmplt $14,1,$23
bne $23,L.50
cmple $14,8,$23
beq $23,L.50
subl $14,1,$27
sll $27,3,$27
ldq $27,L.66($27)
jmp ($27)
.rdata
.align 3
L.66:
.quad L.52
.quad L.52
.quad L.54
.quad L.54
.quad L.54
.quad L.56
.quad L.56
.quad L.56
.text
L.64:
lda $27,3001
cmplt $14,$27,$23
bne $23,L.50
lda $27,3004
cmple $14,$27,$23
beq $23,L.50
subl $14,3001,$27
sll $27,3,$27
ldq $27,L.67($27)
jmp ($27)
.rdata
.align 3
L.67:
.quad L.61
.quad L.61
.quad L.61
.quad L.61
.text
L.52:
lda $16,L.53
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.51
L.54:
lda $16,L.55
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.51
L.56:
lda $16,L.57
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
L.50:
lda $16,L.58
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.51
L.59:
lda $16,L.60
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.51
L.61:
lda $16,L.62
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
L.51:
L.47:
lda $14,1($14)
cmple $14,10,$23
bne $23,L.46
mov $31,$0
L.44:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end g
.globl h
.text
.ent h
h:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4006000,-64
.frame $sp,80,$26,48
stq $13,0($sp)
stq $14,8($sp)
stq $26,16($sp)
.prologue 1
mov $31,$13
lda $16,L.69
jsr $26,printf
ldgp $gp,0($26)
lda $14,1
L.70:
lda $27,264
cmpeq $14,$27,$23
bne $23,L.82
cmple $14,$27,$23
beq $23,L.90
L.89:
lda $27,120
cmpeq $14,$27,$23
bne $23,L.80
cmple $14,$27,$23
beq $23,L.92
L.91:
cmpeq $14,8,$23
bne $23,L.79
cmplt $14,8,$23
bne $23,L.74
L.93:
cmpeq $14,16,$23
bne $23,L.78
br L.74
L.92:
lda $27,128
cmpeq $14,$27,$23
bne $23,L.76
cmplt $14,$27,$23
bne $23,L.74
L.94:
lda $27,248
cmpeq $14,$27,$23
bne $23,L.83
br L.74
L.90:
lda $27,288
cmpeq $14,$27,$23
bne $23,L.87
cmple $14,$27,$23
beq $23,L.96
L.95:
lda $27,272
cmpeq $14,$27,$23
bne $23,L.84
cmplt $14,$27,$23
bne $23,L.74
L.97:
lda $27,280
cmpeq $14,$27,$23
bne $23,L.81
br L.74
L.96:
lda $27,304
cmpeq $14,$27,$23
bne $23,L.85
cmple $14,$27,$23
beq $23,L.99
L.98:
lda $27,296
cmpeq $14,$27,$23
bne $23,L.86
br L.74
L.99:
lda $27,312
cmpeq $14,$27,$23
bne $23,L.88
br L.74
L.74:
lda $13,1($13)
br L.71
L.76:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.75
L.78:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.75
L.79:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.75
L.80:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.75
L.81:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.75
L.82:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.75
L.83:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.75
L.84:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.75
L.85:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.75
L.86:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.75
L.87:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
br L.75
L.88:
lda $16,L.77
mov $14,$17
jsr $26,printf
ldgp $gp,0($26)
L.75:
L.71:
lda $14,1($14)
lda $27,500
cmple $14,$27,$23
bne $23,L.70
lda $16,L.100
mov $13,$17
jsr $26,printf
ldgp $gp,0($26)
mov $31,$0
L.68:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $26,16($sp)
lda $sp,80($sp)
ret
.end h
.globl big
.text
.ent big
big:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
stq $16,32($sp)
.prologue 1
ldl $27,-48+80($sp)
zap $27,240,$27
and $27,0x6000000,$14
lda $25,33554432
cmpeq $14,$25,$23
bne $23,L.107
cmple $14,$25,$23
beq $23,L.111
L.110:
lda $25,-2
cmpeq $14,$25,$23
bne $23,L.105
lda $25,-1
cmpeq $14,$25,$23
bne $23,L.105
cmpeq $14,$31,$23
bne $23,L.105
br L.102
L.111:
mov $14,$27
lda $25,67108864
cmpeq $27,$25,$23
bne $23,L.108
br L.102
L.105:
lda $16,L.106
ldl $17,-48+80($sp)
zap $17,240,$17
jsr $26,printf
ldgp $gp,0($26)
br L.103
L.107:
lda $16,L.106
ldl $17,-48+80($sp)
zap $17,240,$17
jsr $26,printf
ldgp $gp,0($26)
br L.103
L.108:
lda $16,L.106
ldl $17,-48+80($sp)
zap $17,240,$17
jsr $26,printf
ldgp $gp,0($26)
br L.103
L.102:
lda $16,L.109
ldl $17,-48+80($sp)
zap $17,240,$17
jsr $26,printf
ldgp $gp,0($26)
L.103:
mov $31,$0
L.101:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end big
.globl limit
.text
.ent limit
limit:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
.prologue 1
lda $14,-2147483648
L.113:
lda $27,-2147483648
cmplt $14,$27,$23
bne $23,L.117
lda $27,-2147483644
cmple $14,$27,$23
beq $23,L.117
subl $14,-2147483648,$27
sll $27,3,$27
ldq $27,L.130($27)
jmp ($27)
.rdata
.align 3
L.130:
.quad L.119
.quad L.121
.quad L.123
.quad L.125
.quad L.127
.text
L.119:
lda $16,L.120
jsr $26,printf
ldgp $gp,0($26)
br L.118
L.121:
lda $16,L.122
jsr $26,printf
ldgp $gp,0($26)
br L.118
L.123:
lda $16,L.124
jsr $26,printf
ldgp $gp,0($26)
br L.118
L.125:
lda $16,L.126
jsr $26,printf
ldgp $gp,0($26)
br L.118
L.127:
lda $16,L.128
jsr $26,printf
ldgp $gp,0($26)
br L.118
L.117:
lda $16,L.129
jsr $26,printf
ldgp $gp,0($26)
L.118:
L.114:
lda $14,1($14)
lda $27,-2147483643
cmple $14,$27,$23
bne $23,L.113
lda $14,2147483647
L.131:
lda $27,2147483643
cmplt $14,$27,$23
bne $23,L.135
lda $27,2147483647
cmple $14,$27,$23
beq $23,L.135
subl $14,2147483643,$27
sll $27,3,$27
ldq $27,L.142($27)
jmp ($27)
.rdata
.align 3
L.142:
.quad L.141
.quad L.140
.quad L.139
.quad L.138
.quad L.137
.text
L.137:
lda $16,L.120
jsr $26,printf
ldgp $gp,0($26)
br L.136
L.138:
lda $16,L.122
jsr $26,printf
ldgp $gp,0($26)
br L.136
L.139:
lda $16,L.124
jsr $26,printf
ldgp $gp,0($26)
br L.136
L.140:
lda $16,L.126
jsr $26,printf
ldgp $gp,0($26)
br L.136
L.141:
lda $16,L.128
jsr $26,printf
ldgp $gp,0($26)
br L.136
L.135:
lda $16,L.129
jsr $26,printf
ldgp $gp,0($26)
L.136:
L.132:
subl $14,1,$14
lda $27,2147483642
cmplt $14,$27,$23
beq $23,L.131
mov $31,$0
L.112:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end limit
.rdata
.align 0
L.129:
.byte 53
.byte 10
.byte 0
.align 0
L.128:
.byte 52
.byte 10
.byte 0
.align 0
L.126:
.byte 51
.byte 10
.byte 0
.align 0
L.124:
.byte 50
.byte 10
.byte 0
.align 0
L.122:
.byte 49
.byte 10
.byte 0
.align 0
L.120:
.byte 48
.byte 10
.byte 0
.align 0
L.109:
.byte 120
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 32
.byte 40
.byte 100
.byte 101
.byte 102
.byte 97
.byte 117
.byte 108
.byte 116
.byte 41
.byte 10
.byte 0
.align 0
L.106:
.byte 120
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 10
.byte 0
.align 0
L.100:
.byte 37
.byte 100
.byte 32
.byte 100
.byte 101
.byte 102
.byte 97
.byte 117
.byte 108
.byte 116
.byte 115
.byte 10
.byte 0
.align 0
L.77:
.byte 105
.byte 32
.byte 61
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.69:
.byte 104
.byte 58
.byte 10
.byte 0
.align 0
L.62:
.byte 54
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.60:
.byte 53
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.58:
.byte 100
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.57:
.byte 51
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.55:
.byte 50
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.53:
.byte 49
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.45:
.byte 103
.byte 58
.byte 10
.byte 0
.align 0
L.43:
.byte 120
.byte 32
.byte 61
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.25:
.byte 102
.byte 58
.byte 10
.byte 0
.align 0
L.7:
.byte 37
.byte 99
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 10
.byte 0
.align 0
L.6:
.byte 98
.byte 102
.byte 110
.byte 114
.byte 116
.byte 118
.byte 120
.byte 0

View file

@ -1,74 +0,0 @@
5 a
2 and
5 buf
16 c
8 char
1 compare
4 cond
5 count
1 d
1 die
3 else
1 entry
1 eof
4 err
1 error
1 exit
1 folded
1 for
1 free
1 frequencies
1 frequency
1 get
2 getchar
3 getword
14 if
2 in
1 index
1 input
1 install
8 int
1 into
1 is
4 isletter
1 it
1 itself
5 left
1 letter
7 lookup
1 main
2 malloc
1 message
2 n
1 necessary
12 next
9 node
4 of
1 on
1 or
1 otherwise
2 out
8 p
3 print
2 printf
16 return
5 right
4 root
25 s
2 storage
3 strcmp
1 strcpy
1 strlen
8 struct
1 structures
2 subtree
1 t
5 tprint
9 tree
1 uses
1 version
1 wf
3 while
21 word
9 words
2 z

View file

@ -1,2 +0,0 @@
tst/wf1.c:29: warning: missing return value
tst/wf1.c:87: warning: missing return value

View file

@ -1,400 +0,0 @@
.globl main
.text
.text
.ent main
main:
ldgp $gp,0($27)
lda $sp,-96($sp)
.mask 0x4000000,-96
.frame $sp,96,$26,48
stq $26,0($sp)
.prologue 1
stq $31,-88+96($sp)
stl $31,next
br L.3
L.2:
lda $16,-76+96($sp)
lda $17,-88+96($sp)
jsr $26,lookup
ldgp $gp,0($26)
ldl $25,($0)
lda $25,1($25)
stl $25,($0)
L.3:
lda $16,-76+96($sp)
jsr $26,getword
ldgp $gp,0($26)
cmpeq $0,$31,$23
beq $23,L.2
ldq $16,-88+96($sp)
jsr $26,tprint
ldgp $gp,0($26)
mov $31,$0
L.1:
ldq $26,0($sp)
lda $sp,96($sp)
ret
.end main
.globl err
.text
.ent err
err:
ldgp $gp,0($27)
lda $sp,-64($sp)
.mask 0x4000000,-64
.frame $sp,64,$26,48
stq $26,0($sp)
stq $16,16($sp)
.prologue 1
lda $16,L.6
ldq $17,-48+64($sp)
jsr $26,printf
ldgp $gp,0($26)
lda $16,1
jsr $26,exit
ldgp $gp,0($26)
mov $31,$0
L.5:
ldq $26,0($sp)
lda $sp,64($sp)
ret
.end err
.globl getword
.text
.ent getword
getword:
ldgp $gp,0($27)
lda $sp,-96($sp)
.mask 0x5006000,-72
.frame $sp,96,$26,48
stq $13,0($sp)
stq $14,8($sp)
stq $24,16($sp)
stq $26,24($sp)
stq $16,48($sp)
.prologue 1
L.8:
L.9:
jsr $26,getchar
ldgp $gp,0($26)
mov $0,$27
mov $27,$14
lda $25,-1
cmpeq $27,$25,$23
bne $23,L.11
mov $14,$16
jsr $26,isletter
ldgp $gp,0($26)
cmpeq $0,$31,$23
bne $23,L.8
L.11:
ldq $13,-48+96($sp)
br L.15
L.12:
mov $13,$27
lda $13,1($27)
mov $14,$25
stb $25,($27)
L.13:
jsr $26,getchar
ldgp $gp,0($26)
mov $0,$14
L.15:
mov $14,$16
jsr $26,isletter
ldgp $gp,0($26)
mov $0,$14
cmpeq $0,$31,$23
beq $23,L.12
stb $31,($13)
mov $13,$27
ldq $25,-48+96($sp)
cmpule $27,$25,$23
bne $23,L.16
lda $0,1
br L.7
L.16:
mov $31,$0
L.7:
ldq $13,0($sp)
ldq $14,8($sp)
ldq $24,16($sp)
ldq $26,24($sp)
lda $sp,96($sp)
ret
.end getword
.globl isletter
.text
.ent isletter
isletter:
ldgp $gp,0($27)
lda $sp,-64($sp)
.frame $sp,64,$26,48
.prologue 1
lda $27,65
cmplt $16,$27,$23
bne $23,L.19
lda $27,90
cmple $16,$27,$23
beq $23,L.19
lda $16,32($16)
L.19:
lda $27,97
cmplt $16,$27,$23
bne $23,L.21
lda $27,122
cmple $16,$27,$23
beq $23,L.21
mov $16,$0
br L.18
L.21:
mov $31,$0
L.18:
lda $sp,64($sp)
ret
.end isletter
.globl lookup
.text
.ent lookup
lookup:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
stq $16,32($sp)
mov $17,$14
.prologue 1
ldq $27,($14)
cmpeq $27,$31,$23
bne $23,L.24
ldq $16,-48+80($sp)
ldq $27,($14)
ldq $17,24($27)
jsr $26,strcmp
ldgp $gp,0($26)
stl $0,-60+80($sp)
ldl $27,-60+80($sp)
cmplt $27,$31,$23
beq $23,L.26
ldq $16,-48+80($sp)
ldq $27,($14)
lda $17,8($27)
jsr $26,lookup
ldgp $gp,0($26)
mov $0,$27
br L.23
L.26:
ldl $27,-60+80($sp)
cmple $27,$31,$23
bne $23,L.28
ldq $16,-48+80($sp)
ldq $27,($14)
lda $17,16($27)
jsr $26,lookup
ldgp $gp,0($26)
mov $0,$27
br L.23
L.28:
ldq $0,($14)
br L.23
L.24:
ldl $27,next
lda $25,2000
cmplt $27,$25,$23
bne $23,L.30
lda $16,L.32
jsr $26,err
ldgp $gp,0($26)
L.30:
ldl $27,next
sll $27,5,$27
stl $31,words($27)
ldl $27,next
sll $27,5,$27
stq $31,words+16($27)
stq $31,words+8($27)
ldq $16,-48+80($sp)
jsr $26,strlen
ldgp $gp,0($26)
mov $0,$27
lda $16,1($27)
jsr $26,malloc
ldgp $gp,0($26)
ldl $25,next
sll $25,5,$25
stq $0,words+24($25)
ldl $27,next
sll $27,5,$27
ldq $27,words+24($27)
cmpeq $27,$31,$23
beq $23,L.36
lda $16,L.39
jsr $26,err
ldgp $gp,0($26)
L.36:
ldl $27,next
sll $27,5,$27
ldq $16,words+24($27)
ldq $17,-48+80($sp)
jsr $26,strcpy
ldgp $gp,0($26)
ldl $27,next
lda $25,1($27)
stl $25,next
sll $27,8*(8-4),$27
sra $27,8*(8-4),$27
sll $27,5,$27
lda $27,words($27)
stq $27,($14)
mov $27,$0
L.23:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end lookup
.globl tprint
.text
.ent tprint
tprint:
ldgp $gp,0($27)
lda $sp,-80($sp)
.mask 0x4004000,-72
.frame $sp,80,$26,48
stq $14,0($sp)
stq $26,8($sp)
mov $16,$14
.prologue 1
mov $14,$27
cmpeq $27,$31,$23
bne $23,L.42
ldq $16,8($14)
jsr $26,tprint
ldgp $gp,0($26)
lda $16,L.44
ldl $17,($14)
ldq $18,24($14)
jsr $26,printf
ldgp $gp,0($26)
ldq $16,16($14)
jsr $26,tprint
ldgp $gp,0($26)
L.42:
mov $31,$0
L.41:
ldq $14,0($sp)
ldq $26,8($sp)
lda $sp,80($sp)
ret
.end tprint
.globl strcmp
.text
.ent strcmp
strcmp:
ldgp $gp,0($27)
lda $sp,-64($sp)
.frame $sp,64,$26,48
.prologue 1
br L.47
L.46:
mov $16,$27
lda $16,1($27)
ldb $27,($27)
cmpeq $27,$31,$23
beq $23,L.49
mov $31,$0
br L.45
L.49:
lda $17,1($17)
L.47:
ldb $27,($16)
ldb $25,($17)
cmpeq $27,$25,$23
bne $23,L.46
ldb $27,($16)
cmpeq $27,$31,$23
beq $23,L.51
lda $0,-1
br L.45
L.51:
ldb $27,($17)
cmpeq $27,$31,$23
beq $23,L.53
lda $0,1
br L.45
L.53:
ldb $27,($16)
ldb $25,($17)
subl $27,$25,$0
L.45:
lda $sp,64($sp)
ret
.end strcmp
.globl next
.comm next,4
.globl words
.comm words,64000
.rdata
.align 0
L.44:
.byte 37
.byte 100
.byte 9
.byte 37
.byte 115
.byte 10
.byte 0
.align 0
L.39:
.byte 111
.byte 117
.byte 116
.byte 32
.byte 111
.byte 102
.byte 32
.byte 119
.byte 111
.byte 114
.byte 100
.byte 32
.byte 115
.byte 116
.byte 111
.byte 114
.byte 97
.byte 103
.byte 101
.byte 0
.align 0
L.32:
.byte 111
.byte 117
.byte 116
.byte 32
.byte 111
.byte 102
.byte 32
.byte 110
.byte 111
.byte 100
.byte 101
.byte 32
.byte 115
.byte 116
.byte 111
.byte 114
.byte 97
.byte 103
.byte 101
.byte 0
.align 0
L.6:
.byte 63
.byte 32
.byte 37
.byte 115
.byte 10
.byte 0

View file

@ -1,10 +0,0 @@
a
b
load
negate
push 5
c
load
multiply
add
store

View file

@ -1,3 +0,0 @@
tst/yacc.c:345: warning: missing return value
tst/yacc.c:349: warning: missing return value
tst/yacc.c:359: warning: missing return value

File diff suppressed because it is too large Load diff

View file

@ -21,9 +21,7 @@ DIFF=diff
RM=rm -f RM=rm -f
RMDIR=rmdir RMDIR=rmdir
BUILDDIR=build BUILDDIR=build
TSTDIR=$(BUILDDIR)/$(TARGET)/tst
BD=$(BUILDDIR)/ BD=$(BUILDDIR)/
T=$(TSTDIR)/
ifeq ($(PLATFORM),SunOS) ifeq ($(PLATFORM),SunOS)
INSTALL=ginstall INSTALL=ginstall
else else
@ -37,7 +35,6 @@ what:
makedirs: makedirs:
@if [ ! -d $(BD) ];then mkdir $(BD);fi @if [ ! -d $(BD) ];then mkdir $(BD);fi
@if [ ! -d $(T) ];then mkdir $(T);fi
all:: q3rcc lburg q3cpp q3lcc bprint liblcc all:: q3rcc lburg q3cpp q3lcc bprint liblcc
@ -117,18 +114,8 @@ $(BD)types$(O): src/types.c; $(CC) $(LCC_CFLAGS) -c -Isrc -o $@ src/types.c
$(BD)stab$(O): src/stab.c src/stab.h; $(CC) $(LCC_CFLAGS) -c -Isrc -o $@ src/stab.c $(BD)stab$(O): src/stab.c src/stab.h; $(CC) $(LCC_CFLAGS) -c -Isrc -o $@ src/stab.c
$(BD)dagcheck$(O): $(BD)dagcheck.c; $(CC) $(LCC_CFLAGS) -c -Isrc -o $@ $(BD)dagcheck.c $(BD)dagcheck$(O): $(BD)dagcheck.c; $(CC) $(LCC_CFLAGS) -c -Isrc -o $@ $(BD)dagcheck.c
$(BD)alpha$(O): $(BD)alpha.c; $(CC) $(LCC_CFLAGS) -c -Isrc -o $@ $(BD)alpha.c
$(BD)mips$(O): $(BD)mips.c; $(CC) $(LCC_CFLAGS) -c -Isrc -o $@ $(BD)mips.c
$(BD)sparc$(O): $(BD)sparc.c; $(CC) $(LCC_CFLAGS) -c -Isrc -o $@ $(BD)sparc.c
$(BD)x86$(O): $(BD)x86.c; $(CC) $(LCC_CFLAGS) -c -Isrc -o $@ $(BD)x86.c
$(BD)x86linux$(O): $(BD)x86linux.c; $(CC) $(LCC_CFLAGS) -c -Isrc -o $@ $(BD)x86linux.c
$(BD)dagcheck.c: $(BD)lburg$(E) src/dagcheck.md; $(BD)lburg src/dagcheck.md $@ $(BD)dagcheck.c: $(BD)lburg$(E) src/dagcheck.md; $(BD)lburg src/dagcheck.md $@
$(BD)alpha.c: $(BD)lburg$(E) src/alpha.md; $(BD)lburg src/alpha.md $@
$(BD)mips.c: $(BD)lburg$(E) src/mips.md; $(BD)lburg src/mips.md $@
$(BD)sparc.c: $(BD)lburg$(E) src/sparc.md; $(BD)lburg src/sparc.md $@
$(BD)x86.c: $(BD)lburg$(E) src/x86.md; $(BD)lburg src/x86.md $@
$(BD)x86linux.c: $(BD)lburg$(E) src/x86linux.md; $(BD)lburg src/x86linux.md $@
$(BD)q3rcc.h: src/rcc.asdl; $(ASDL_HOME)/bin/asdlGen --c -d $(BD) src/rcc.asdl $(BD)q3rcc.h: src/rcc.asdl; $(ASDL_HOME)/bin/asdlGen --c -d $(BD) src/rcc.asdl
$(BD)q3rcc$(O): $(BD)rcc.h; $(CC) $(LCC_CFLAGS) -c -Isrc -I$(BD) -I$(ASDL_HOME)/include/asdlGen -o $@ $(BD)rcc.c $(BD)q3rcc$(O): $(BD)rcc.h; $(CC) $(LCC_CFLAGS) -c -Isrc -I$(BD) -I$(ASDL_HOME)/include/asdlGen -o $@ $(BD)rcc.c
@ -182,64 +169,6 @@ $(BD)hideset$(O): cpp/hideset.c; $(CC) $(LCC_CFLAGS) -c -Icpp -o $@ cpp/hideset.
$(BD)getopt$(O): cpp/getopt.c; $(CC) $(LCC_CFLAGS) -c -Icpp -o $@ cpp/getopt.c $(BD)getopt$(O): cpp/getopt.c; $(CC) $(LCC_CFLAGS) -c -Icpp -o $@ cpp/getopt.c
$(BD)unix$(O): cpp/unix.c; $(CC) $(LCC_CFLAGS) -c -Icpp -o $@ cpp/unix.c $(BD)unix$(O): cpp/unix.c; $(CC) $(LCC_CFLAGS) -c -Icpp -o $@ cpp/unix.c
test: $(T)8q.s \
$(T)array.s \
$(T)cf.s \
$(T)cq.s \
$(T)cvt.s \
$(T)fields.s \
$(T)front.s \
$(T)incr.s \
$(T)init.s \
$(T)limits.s \
$(T)paranoia.s \
$(T)sort.s \
$(T)spill.s \
$(T)stdarg.s \
$(T)struct.s \
$(T)switch.s \
$(T)wf1.s \
$(T)yacc.s
$(T)8q.s: tst/8q.c tst/8q.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)array.s: tst/array.c tst/array.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)cf.s: tst/cf.c tst/cf.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)cq.s: tst/cq.c tst/cq.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)cvt.s: tst/cvt.c tst/cvt.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)fields.s: tst/fields.c tst/fields.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)front.s: tst/front.c tst/front.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)incr.s: tst/incr.c tst/incr.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)init.s: tst/init.c tst/init.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)limits.s: tst/limits.c tst/limits.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)paranoia.s: tst/paranoia.c tst/paranoia.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)sort.s: tst/sort.c tst/sort.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)spill.s: tst/spill.c tst/spill.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)stdarg.s: tst/stdarg.c tst/stdarg.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)struct.s: tst/struct.c tst/struct.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)switch.s: tst/switch.c tst/switch.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)wf1.s: tst/wf1.c tst/wf1.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
$(T)yacc.s: tst/yacc.c tst/yacc.0 all; @env BUILDDIR=$(BUILDDIR) TSTDIR=$(TSTDIR) src/run.sh $@
testclean:
$(RM) $(T)8q$(E) $(T)8q.s $(T)8q.2 $(T)8q.1
$(RM) $(T)array$(E) $(T)array.s $(T)array.2 $(T)array.1
$(RM) $(T)cf$(E) $(T)cf.s $(T)cf.2 $(T)cf.1
$(RM) $(T)cq$(E) $(T)cq.s $(T)cq.2 $(T)cq.1
$(RM) $(T)cvt$(E) $(T)cvt.s $(T)cvt.2 $(T)cvt.1
$(RM) $(T)fields$(E) $(T)fields.s $(T)fields.2 $(T)fields.1
$(RM) $(T)front$(E) $(T)front.s $(T)front.2 $(T)front.1
$(RM) $(T)incr$(E) $(T)incr.s $(T)incr.2 $(T)incr.1
$(RM) $(T)init$(E) $(T)init.s $(T)init.2 $(T)init.1
$(RM) $(T)limits$(E) $(T)limits.s $(T)limits.2 $(T)limits.1
$(RM) $(T)paranoia$(E) $(T)paranoia.s $(T)paranoia.2 $(T)paranoia.1
$(RM) $(T)sort$(E) $(T)sort.s $(T)sort.2 $(T)sort.1
$(RM) $(T)spill$(E) $(T)spill.s $(T)spill.2 $(T)spill.1
$(RM) $(T)stdarg$(E) $(T)stdarg.s $(T)stdarg.2 $(T)stdarg.1
$(RM) $(T)struct$(E) $(T)struct.s $(T)struct.2 $(T)struct.1
$(RM) $(T)switch$(E) $(T)switch.s $(T)switch.2 $(T)switch.1
$(RM) $(T)wf1$(E) $(T)wf1.s $(T)wf1.2 $(T)wf1.1
$(RM) $(T)yacc$(E) $(T)yacc.s $(T)yacc.2 $(T)yacc.1
install:: all install:: all
$(INSTALL) -s -m 0755 $(BD)q3lcc$(E) ../ $(INSTALL) -s -m 0755 $(BD)q3lcc$(E) ../
$(INSTALL) -s -m 0755 $(BD)q3cpp$(E) ../ $(INSTALL) -s -m 0755 $(BD)q3cpp$(E) ../
@ -250,9 +179,9 @@ uninstall::
-$(RM) ../q3cpp$(E) -$(RM) ../q3cpp$(E)
-$(RM) ../q3rcc$(E) -$(RM) ../q3rcc$(E)
clean:: testclean clean::
$(RM) $(BD)*$(O) $(RM) $(BD)*$(O)
$(RM) $(BD)dagcheck.c $(BD)alpha.c $(BD)mips.c $(BD)x86.c $(BD)sparc.c $(BD)x86linux.c $(BD)gram.c $(RM) $(BD)dagcheck.c $(BD)gram.c
$(RM) $(BD)rcc.c $(BD)rcc.h $(RM) $(BD)rcc.c $(BD)rcc.h
$(RM) $(BD)rcc1$(E) $(BD)rcc1$(E) $(BD)1rcc$(E) $(BD)2rcc$(E) $(RM) $(BD)rcc1$(E) $(BD)rcc1$(E) $(BD)1rcc$(E) $(BD)2rcc$(E)
$(RM) $(BD)*.ilk $(RM) $(BD)*.ilk

View file

@ -1,92 +0,0 @@
1 5 8 6 3 7 2 4
1 6 8 3 7 4 2 5
1 7 4 6 8 2 5 3
1 7 5 8 2 4 6 3
2 4 6 8 3 1 7 5
2 5 7 1 3 8 6 4
2 5 7 4 1 8 6 3
2 6 1 7 4 8 3 5
2 6 8 3 1 4 7 5
2 7 3 6 8 5 1 4
2 7 5 8 1 4 6 3
2 8 6 1 3 5 7 4
3 1 7 5 8 2 4 6
3 5 2 8 1 7 4 6
3 5 2 8 6 4 7 1
3 5 7 1 4 2 8 6
3 5 8 4 1 7 2 6
3 6 2 5 8 1 7 4
3 6 2 7 1 4 8 5
3 6 2 7 5 1 8 4
3 6 4 1 8 5 7 2
3 6 4 2 8 5 7 1
3 6 8 1 4 7 5 2
3 6 8 1 5 7 2 4
3 6 8 2 4 1 7 5
3 7 2 8 5 1 4 6
3 7 2 8 6 4 1 5
3 8 4 7 1 6 2 5
4 1 5 8 2 7 3 6
4 1 5 8 6 3 7 2
4 2 5 8 6 1 3 7
4 2 7 3 6 8 1 5
4 2 7 3 6 8 5 1
4 2 7 5 1 8 6 3
4 2 8 5 7 1 3 6
4 2 8 6 1 3 5 7
4 6 1 5 2 8 3 7
4 6 8 2 7 1 3 5
4 6 8 3 1 7 5 2
4 7 1 8 5 2 6 3
4 7 3 8 2 5 1 6
4 7 5 2 6 1 3 8
4 7 5 3 1 6 8 2
4 8 1 3 6 2 7 5
4 8 1 5 7 2 6 3
4 8 5 3 1 7 2 6
5 1 4 6 8 2 7 3
5 1 8 4 2 7 3 6
5 1 8 6 3 7 2 4
5 2 4 6 8 3 1 7
5 2 4 7 3 8 6 1
5 2 6 1 7 4 8 3
5 2 8 1 4 7 3 6
5 3 1 6 8 2 4 7
5 3 1 7 2 8 6 4
5 3 8 4 7 1 6 2
5 7 1 3 8 6 4 2
5 7 1 4 2 8 6 3
5 7 2 4 8 1 3 6
5 7 2 6 3 1 4 8
5 7 2 6 3 1 8 4
5 7 4 1 3 8 6 2
5 8 4 1 3 6 2 7
5 8 4 1 7 2 6 3
6 1 5 2 8 3 7 4
6 2 7 1 3 5 8 4
6 2 7 1 4 8 5 3
6 3 1 7 5 8 2 4
6 3 1 8 4 2 7 5
6 3 1 8 5 2 4 7
6 3 5 7 1 4 2 8
6 3 5 8 1 4 2 7
6 3 7 2 4 8 1 5
6 3 7 2 8 5 1 4
6 3 7 4 1 8 2 5
6 4 1 5 8 2 7 3
6 4 2 8 5 7 1 3
6 4 7 1 3 5 2 8
6 4 7 1 8 2 5 3
6 8 2 4 1 7 5 3
7 1 3 8 6 4 2 5
7 2 4 1 8 5 3 6
7 2 6 3 1 4 8 5
7 3 1 6 8 5 2 4
7 3 8 2 5 1 6 4
7 4 2 5 8 1 3 6
7 4 2 8 6 1 3 5
7 5 3 1 6 8 2 4
8 2 4 1 7 5 3 6
8 2 5 3 1 7 4 6
8 3 1 6 2 5 7 4
8 4 1 3 6 2 7 5

View file

@ -1,2 +0,0 @@
tst/8q.c:30: warning: missing return value
tst/8q.c:39: warning: missing return value

View file

@ -1,169 +0,0 @@
.set reorder
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-8
.cprestore 16
sw $30,20($sp)
sw $31,24($sp)
move $30,$0
L.2:
sll $24,$30,2
la $15,1
sw $15,down($24)
sw $15,up($24)
L.3:
la $30,1($30)
la $24,15
blt $30,$24,L.2
move $30,$0
L.6:
sll $24,$30,2
la $15,1
sw $15,rows($24)
L.7:
la $30,1($30)
la $24,8
blt $30,$24,L.6
move $4,$0
jal queens
move $2,$0
L.1:
lw $25,16($sp)
lw $30,20($sp)
lw $31,24($sp)
addu $sp,$sp,32
j $31
.end main
.globl queens
.text
.align 2
.ent queens
queens:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2800000,-4
sw $23,16($sp)
.cprestore 20
sw $30,24($sp)
sw $31,28($sp)
move $30,$4
move $23,$0
L.11:
sll $15,$23,2
lw $15,rows($15)
beq $15,$0,L.15
subu $15,$23,$30
sll $15,$15,2
lw $15,up+28($15)
beq $15,$0,L.15
addu $15,$23,$30
sll $15,$15,2
lw $15,down($15)
beq $15,$0,L.15
addu $15,$23,$30
sll $15,$15,2
sw $0,down($15)
subu $15,$23,$30
sll $15,$15,2
sw $0,up+28($15)
sll $15,$23,2
sw $0,rows($15)
sll $24,$30,2
sw $23,x($24)
la $24,7
bne $30,$24,L.19
jal print
b L.20
L.19:
la $4,1($30)
jal queens
L.20:
la $24,1
addu $15,$23,$30
sll $15,$15,2
sw $24,down($15)
subu $15,$23,$30
sll $15,$15,2
sw $24,up+28($15)
sll $15,$23,2
sw $24,rows($15)
L.15:
L.12:
la $23,1($23)
la $24,8
blt $23,$24,L.11
move $2,$0
L.10:
lw $23,16($sp)
lw $25,20($sp)
lw $30,24($sp)
lw $31,28($sp)
addu $sp,$sp,32
j $31
.end queens
.globl print
.text
.align 2
.ent print
print:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-8
.cprestore 16
sw $30,20($sp)
sw $31,24($sp)
move $30,$0
L.23:
la $4,L.27
sll $24,$30,2
lw $24,x($24)
la $5,49($24)
jal printf
L.24:
la $30,1($30)
la $24,8
blt $30,$24,L.23
la $4,L.28
jal printf
move $2,$0
L.22:
lw $25,16($sp)
lw $30,20($sp)
lw $31,24($sp)
addu $sp,$sp,32
j $31
.end print
.globl x
.comm x,32
.globl rows
.comm rows,32
.globl down
.comm down,60
.globl up
.comm up,60
.rdata
.align 0
L.28:
.byte 10
.byte 0
.align 0
L.27:
.byte 37
.byte 99
.byte 32
.byte 0

View file

@ -1,4 +0,0 @@
0 1 2 3 1000 1001 1002 1003 2000 2001 2002 2003
0 1 2 3 1000 1001 1002 1003 2000 2001 2002 2003
0 1 2 3 1000 1001 1002 1003 2000 2001 2002 2003
0 1 2 3 1000 1001 1002 1003 2000 2001 2002 2003

View file

@ -1,2 +0,0 @@
tst/array.c:33: warning: missing return value
tst/array.c:48: warning: missing return value

View file

@ -1,235 +0,0 @@
.set reorder
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,88,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-88
.mask 0xc2c00000,-56
sw $22,16($sp)
sw $23,20($sp)
.cprestore 24
sw $30,28($sp)
sw $31,32($sp)
move $23,$0
L.2:
move $30,$0
L.6:
sll $24,$30,2
sll $15,$23,4
la $15,x($15)
addu $24,$24,$15
la $15,1000
mul $15,$15,$23
addu $15,$15,$30
sw $15,($24)
L.7:
la $30,1($30)
la $24,4
blt $30,$24,L.6
sll $24,$23,2
sll $15,$23,4
la $15,x($15)
sw $15,y($24)
L.3:
la $23,1($23)
la $24,3
blt $23,$24,L.2
jal f
move $23,$0
L.10:
sll $24,$23,4
la $15,-48+88($sp)
addu $24,$24,$15
move $22,$24
sll $15,$23,2
sw $24,y($15)
move $30,$0
L.14:
sll $24,$30,2
addu $15,$24,$22
sll $14,$23,4
la $14,x($14)
addu $24,$24,$14
lw $24,($24)
sw $24,($15)
L.15:
la $30,1($30)
la $24,4
blt $30,$24,L.14
L.11:
la $23,1($23)
la $24,3
blt $23,$24,L.10
la $4,-48+88($sp)
la $5,y
jal g
move $2,$0
L.1:
lw $22,16($sp)
lw $23,20($sp)
lw $25,24($sp)
lw $30,28($sp)
lw $31,32($sp)
addu $sp,$sp,88
j $31
.end main
.globl f
.text
.align 2
.ent f
f:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2800000,-4
sw $23,16($sp)
.cprestore 20
sw $30,24($sp)
sw $31,28($sp)
move $23,$0
L.19:
move $30,$0
L.23:
la $4,L.27
sll $24,$30,2
sll $15,$23,4
la $15,x($15)
addu $24,$24,$15
lw $5,($24)
jal printf
L.24:
la $30,1($30)
la $24,4
blt $30,$24,L.23
L.20:
la $23,1($23)
la $24,3
blt $23,$24,L.19
la $4,L.28
jal printf
move $23,$0
L.29:
move $30,$0
L.33:
la $4,L.27
sll $24,$30,2
sll $15,$23,2
lw $15,y($15)
addu $24,$24,$15
lw $5,($24)
jal printf
L.34:
la $30,1($30)
la $24,4
blt $30,$24,L.33
L.30:
la $23,1($23)
la $24,3
blt $23,$24,L.29
la $4,L.28
jal printf
move $2,$0
L.18:
lw $23,16($sp)
lw $25,20($sp)
lw $30,24($sp)
lw $31,28($sp)
addu $sp,$sp,32
j $31
.end f
.globl g
.text
.align 2
.ent g
g:
.frame $sp,40,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-40
.mask 0xc2e00000,-4
sw $21,16($sp)
sw $22,20($sp)
sw $23,24($sp)
.cprestore 28
sw $30,32($sp)
sw $31,36($sp)
move $30,$4
move $23,$5
move $21,$0
L.38:
move $22,$0
L.42:
la $4,L.27
sll $24,$22,2
sll $15,$21,4
addu $15,$15,$30
addu $24,$24,$15
lw $5,($24)
jal printf
L.43:
la $22,1($22)
la $24,4
blt $22,$24,L.42
L.39:
la $21,1($21)
la $24,3
blt $21,$24,L.38
la $4,L.28
jal printf
move $21,$0
L.46:
move $22,$0
L.50:
la $4,L.27
sll $24,$22,2
sll $15,$21,2
addu $15,$15,$23
lw $15,($15)
addu $24,$24,$15
lw $5,($24)
jal printf
L.51:
la $22,1($22)
la $24,4
blt $22,$24,L.50
L.47:
la $21,1($21)
la $24,3
blt $21,$24,L.46
la $4,L.28
jal printf
move $2,$0
L.37:
lw $21,16($sp)
lw $22,20($sp)
lw $23,24($sp)
lw $25,28($sp)
lw $30,32($sp)
lw $31,36($sp)
addu $sp,$sp,40
j $31
.end g
.globl y
.comm y,12
.globl x
.comm x,48
.rdata
.align 0
L.28:
.byte 10
.byte 0
.align 0
L.27:
.byte 32
.byte 37
.byte 100
.byte 0

View file

@ -1,51 +0,0 @@
char freq
011 8.1
012 6.1
040 11.9
! 0.2
" 1.5
% 0.6
& 0.4
' 0.4
( 2.9
) 2.9
* 0.8
+ 1.3
, 1.3
- 0.4
. 0.6
/ 1.0
0 2.5
1 1.9
2 0.6
3 0.2
7 0.4
8 0.2
; 3.8
< 0.8
= 2.7
> 0.2
[ 1.5
\ 0.8
] 1.5
a 3.1
c 4.4
e 2.3
f 6.0
g 1.3
h 1.0
i 5.0
l 1.0
m 0.2
n 3.3
o 2.1
p 1.0
q 0.4
r 4.2
s 0.6
t 3.8
u 1.2
v 0.6
w 0.2
{ 0.6
} 0.6

View file

@ -1,153 +0,0 @@
.set reorder
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,48,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-48
.fmask 0xc0000000,-32
.mask 0xc2c00000,-8
s.d $f30,16($sp)
sw $22,24($sp)
sw $23,28($sp)
.cprestore 32
sw $30,36($sp)
sw $31,40($sp)
sw $4,48($sp)
sw $5,52($sp)
lw $24,0+48($sp)
la $15,1
bgt $24,$15,L.2
l.s $f30,L.4
b L.3
L.2:
lw $24,4+48($sp)
lw $4,4($24)
jal atof
l.s $f16,L.5
div.s $f30,$f0,$f16
L.3:
move $30,$0
L.6:
move $24,$30
la $30,1($24)
sll $24,$24,2
l.s $f18,L.4
s.s $f18,f($24)
L.7:
la $24,127
ble $30,$24,L.6
move $23,$0
b L.11
L.10:
sll $24,$22,2
la $24,f($24)
l.s $f18,($24)
l.s $f16,L.13
add.s $f18,$f18,$f16
s.s $f18,($24)
la $23,1($23)
L.11:
jal getchar
move $22,$2
la $15,-1
bne $2,$15,L.10
la $4,L.14
jal printf
move $30,$0
L.15:
sll $24,$30,2
l.s $f18,f($24)
l.s $f16,L.4
c.eq.s $f18,$f16; bc1t L.19
mtc1 $23,$f16; cvt.s.w $f16,$f16
div.s $f18,$f18,$f16
c.lt.s $f18,$f30; bc1t L.19
la $24,32
bgt $30,$24,L.21
la $4,L.23
move $5,$30
jal printf
b L.22
L.21:
la $4,L.24
move $5,$30
jal printf
L.22:
la $4,L.25
l.s $f18,L.5
sll $24,$30,2
l.s $f16,f($24)
mul.s $f18,$f18,$f16
mtc1 $23,$f16; cvt.s.w $f16,$f16
div.s $f18,$f18,$f16
cvt.d.s $f18,$f18
mfc1.d $6,$f18
jal printf
L.19:
L.16:
la $30,1($30)
la $24,127
ble $30,$24,L.15
move $2,$0
L.1:
l.d $f30,16($sp)
lw $22,24($sp)
lw $23,28($sp)
lw $25,32($sp)
lw $30,36($sp)
lw $31,40($sp)
addu $sp,$sp,48
j $31
.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:
.word 0x3f800000
.align 2
L.5:
.word 0x42c80000
.align 2
L.4:
.word 0x0

View file

@ -1,48 +0,0 @@
Section s22 returned 0.
Decimal and octal/hex constants sometimes give
different results when assigned to longs.
Decimal and octal/hex constants sometimes give
different results when assigned to longs.
Section s241 returned 0.
Section s243 returned 0.
Section s244 returned 0.
Section s25 returned 0.
8 bits in chars.
32 bits in ints.
16 bits in shorts.
32 bits in longs.
32 bits in unsigneds.
32 bits in floats.
64 bits in doubles.
1.192093e-07 is the least number that can be added to 1. (float).
2.220446e-16 is the least number that can be added to 1. (double).
Section s26 returned 0.
Section s4 returned 0.
Section s61 returned 0.
Section s626 returned 0.
Section s71 returned 0.
Section s72 returned 0.
Section s757 returned 0.
Section s7813 returned 0.
Section s714 returned 0.
Section s715 returned 0.
Register count for char is unreliable.
Register count for pointer is unreliable.
Register count for int is unreliable.
Section s81 returned 0.
Section s84 returned 0.
char alignment: 1
short alignment: 2
int alignment: 4
long alignment: 4
unsigned alignment: 4
float alignment: 4
double alignment: 8
Sign extension in fields
Be especially careful with 1-bit fields!
Section s85 returned 0.
Section s86 returned 0.
Section s88 returned 0.
Section s9 returned 0.
No errors detected.

View file

@ -1,25 +0,0 @@
tst/cq.c:394: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:394: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:394: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:395: warning: overflow in constant `4294967296'
tst/cq.c:395: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:395: warning: overflow in constant `040000000000'
tst/cq.c:395: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:395: warning: overflow in constant `0x100000000'
tst/cq.c:395: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:396: warning: overflow in constant `68719476735'
tst/cq.c:396: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:396: warning: overflow in constant `0777777777777'
tst/cq.c:396: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:396: warning: overflow in constant `0xfffffffff'
tst/cq.c:396: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:397: warning: overflow in constant `68719476736'
tst/cq.c:397: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:397: warning: overflow in constant `01000000000000'
tst/cq.c:397: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:397: warning: overflow in constant `0x1000000000'
tst/cq.c:397: warning: overflow in converting constant expression from `unsigned long' to `long int'
tst/cq.c:533: warning: missing return value
tst/cq.c:1169: warning: missing return value
tst/cq.c:5294: warning: unreachable code
tst/cq.c:5303: warning: missing return value

File diff suppressed because it is too large Load diff

View file

@ -1,11 +0,0 @@
1 1 1 1 1 1 1 1 1.000000 1.000000 1.000000
2 2 2 2 2 2 2 2 2.000000 2.000000 2.000000
3 3 3 3 3 3 3 3 3.000000 3.000000 3.000000
4 4 4 4 4 4 4 4 4.000000 4.000000 4.000000
5 5 5 5 5 5 5 5 5.000000 5.000000 5.000000
6 6 6 6 6 6 6 6 6.000000 6.000000 6.000000
7 7 7 7 7 7 7 7 7.000000 7.000000 7.000000
8 8 8 8 8 8 8 8 8.000000 8.000000 8.000000
9 9 9 9 9 9 9 9 9.000000 9.000000 9.000000
10 10 10 10 10 10 10 10 10.000000 10.000000 10.000000
11 11 11 11 11 11 11 11 11.000000 11.000000 11.000000

View file

@ -1,2 +0,0 @@
tst/cvt.c:32: warning: conversion from `pointer to void function(void)' to `pointer to void' is compiler dependent
tst/cvt.c:33: warning: conversion from `pointer to void' to `pointer to void function(void)' is compiler dependent

View file

@ -1,557 +0,0 @@
.set reorder
.globl print
.text
.text
.align 2
.ent print
print:
.frame $sp,72,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-72
.mask 0x82000000,-4
.cprestore 64
sw $31,68($sp)
la $4,L.2
lb $5,c
lh $6,s
lw $7,i
lw $24,l
sw $24,16($sp)
lbu $24,C
sw $24,20($sp)
lhu $24,S
sw $24,24($sp)
lw $24,I
sw $24,28($sp)
lw $24,L
sw $24,32($sp)
l.s $f18,f
cvt.d.s $f18,$f18
s.d $f18,40($sp)
l.d $f18,d
s.d $f18,48($sp)
l.d $f18,D
s.d $f18,56($sp)
jal printf
L.1:
lw $25,64($sp)
lw $31,68($sp)
addu $sp,$sp,72
j $31
.end print
.globl main
.text
.align 2
.ent main
main:
.frame $sp,72,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-72
.mask 0xc2ff0000,-16
sw $16,16($sp)
sw $17,20($sp)
sw $18,24($sp)
sw $19,28($sp)
sw $20,32($sp)
sw $21,36($sp)
sw $22,40($sp)
sw $23,44($sp)
.cprestore 48
sw $30,52($sp)
sw $31,56($sp)
la $24,1
sb $24,c
lb $24,c
move $15,$24
sh $15,s
sw $24,i
sw $24,l
move $15,$24
move $14,$15
sb $14,C
move $14,$15
sh $14,S
sw $15,I
sw $15,L
mtc1 $24,$f18; cvt.s.w $f18,$f18
s.s $f18,f
mtc1 $24,$f18; cvt.d.w $f18,$f18
s.d $f18,d
s.d $f18,D
jal print
la $24,2
sh $24,s
lh $24,s
move $15,$24
sb $15,c
sw $24,i
sw $24,l
move $15,$24
move $14,$15
sb $14,C
move $14,$15
sh $14,S
sw $15,I
sw $15,L
mtc1 $24,$f18; cvt.s.w $f18,$f18
s.s $f18,f
mtc1 $24,$f18; cvt.d.w $f18,$f18
s.d $f18,d
s.d $f18,D
jal print
la $24,3
sw $24,i
lw $24,i
move $15,$24
sb $15,c
move $15,$24
sh $15,s
sw $24,l
move $15,$24
move $14,$15
sb $14,C
move $14,$15
sh $14,S
sw $15,I
sw $15,L
mtc1 $24,$f18; cvt.s.w $f18,$f18
s.s $f18,f
mtc1 $24,$f18; cvt.d.w $f18,$f18
s.d $f18,d
s.d $f18,D
jal print
la $24,4
sw $24,l
lw $24,l
move $15,$24
sb $15,c
move $15,$24
sh $15,s
sw $24,i
move $15,$24
move $14,$15
sb $14,C
move $14,$15
sh $14,S
sw $15,I
sw $15,L
mtc1 $24,$f18; cvt.s.w $f18,$f18
s.s $f18,f
mtc1 $24,$f18; cvt.d.w $f18,$f18
s.d $f18,d
s.d $f18,D
jal print
la $24,5
sb $24,C
lbu $24,C
move $15,$24
sb $15,c
move $15,$24
sh $15,s
sw $24,i
sw $24,l
move $15,$24
move $14,$15
sh $14,S
sw $15,I
sw $15,L
mtc1 $24,$f18; cvt.s.w $f18,$f18
s.s $f18,f
mtc1 $24,$f18; cvt.d.w $f18,$f18
s.d $f18,d
s.d $f18,D
jal print
la $24,6
sh $24,S
lhu $24,S
move $15,$24
sb $15,c
move $15,$24
sh $15,s
sw $24,i
sw $24,l
move $15,$24
move $14,$15
sb $14,C
sw $15,I
sw $15,L
mtc1 $24,$f18; cvt.s.w $f18,$f18
s.s $f18,f
mtc1 $24,$f18; cvt.d.w $f18,$f18
s.d $f18,d
s.d $f18,D
jal print
la $24,7
sw $24,I
lw $24,I
move $14,$24
sb $14,c
move $14,$24
sh $14,s
sw $24,i
sw $24,l
move $15,$24
sb $15,C
move $15,$24
sh $15,S
sw $24,L
l.d $f18,L.4
srl $15,$24,1
mtc1 $15,$f16; cvt.d.w $f16,$f16
mul.d $f18,$f18,$f16
and $24,$24,1
mtc1 $24,$f16; cvt.d.w $f16,$f16
add.d $f18,$f18,$f16
cvt.s.d $f16,$f18
s.s $f16,f
s.d $f18,d
s.d $f18,D
jal print
la $24,8
sw $24,L
lw $24,L
move $14,$24
sb $14,c
move $14,$24
sh $14,s
sw $24,i
sw $24,l
move $15,$24
sb $15,C
move $15,$24
sh $15,S
lhu $15,S
sw $15,I
l.d $f18,L.4
srl $15,$24,1
mtc1 $15,$f16; cvt.d.w $f16,$f16
mul.d $f18,$f18,$f16
and $24,$24,1
mtc1 $24,$f16; cvt.d.w $f16,$f16
add.d $f18,$f18,$f16
cvt.s.d $f16,$f18
s.s $f16,f
s.d $f18,d
s.d $f18,D
jal print
l.s $f18,L.5
s.s $f18,f
l.s $f18,f
trunc.w.s $f2,$f18,$24; mfc1 $24,$f2
move $15,$24
sb $15,c
move $15,$24
sh $15,s
sw $24,i
sw $24,l
l.s $f16,L.9
c.lt.s $f18,$f16; bc1t L.7
sub.s $f16,$f18,$f16
trunc.w.s $f2,$f16,$24; mfc1 $24,$f2
la $30,0x80000000($24)
b L.8
L.7:
trunc.w.s $f2,$f18,$24; mfc1 $24,$f2
move $30,$24
L.8:
move $24,$30
sb $24,C
l.s $f18,f
l.s $f16,L.9
c.lt.s $f18,$f16; bc1t L.11
sub.s $f16,$f18,$f16
trunc.w.s $f2,$f16,$24; mfc1 $24,$f2
la $23,0x80000000($24)
b L.12
L.11:
trunc.w.s $f2,$f18,$24; mfc1 $24,$f2
move $23,$24
L.12:
move $24,$23
sh $24,S
l.s $f18,f
l.s $f16,L.9
c.lt.s $f18,$f16; bc1t L.14
sub.s $f16,$f18,$f16
trunc.w.s $f2,$f16,$24; mfc1 $24,$f2
la $22,0x80000000($24)
b L.15
L.14:
trunc.w.s $f2,$f18,$24; mfc1 $24,$f2
move $22,$24
L.15:
sw $22,I
l.s $f18,f
l.s $f16,L.9
c.lt.s $f18,$f16; bc1t L.17
sub.s $f16,$f18,$f16
trunc.w.s $f2,$f16,$24; mfc1 $24,$f2
la $21,0x80000000($24)
b L.18
L.17:
trunc.w.s $f2,$f18,$24; mfc1 $24,$f2
move $21,$24
L.18:
sw $21,L
l.s $f18,f
cvt.d.s $f18,$f18
s.d $f18,d
s.d $f18,D
jal print
l.d $f18,L.19
s.d $f18,d
l.d $f18,d
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
move $15,$24
sb $15,c
move $15,$24
sh $15,s
sw $24,i
sw $24,l
l.d $f16,L.23
c.lt.d $f18,$f16; bc1t L.21
sub.d $f16,$f18,$f16
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
la $20,0x80000000($24)
b L.22
L.21:
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
move $20,$24
L.22:
move $24,$20
sb $24,C
l.d $f18,d
l.d $f16,L.23
c.lt.d $f18,$f16; bc1t L.25
sub.d $f16,$f18,$f16
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
la $19,0x80000000($24)
b L.26
L.25:
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
move $19,$24
L.26:
move $24,$19
sh $24,S
l.d $f18,d
l.d $f16,L.23
c.lt.d $f18,$f16; bc1t L.28
sub.d $f16,$f18,$f16
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
la $18,0x80000000($24)
b L.29
L.28:
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
move $18,$24
L.29:
sw $18,I
l.d $f18,d
l.d $f16,L.23
c.lt.d $f18,$f16; bc1t L.31
sub.d $f16,$f18,$f16
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
la $17,0x80000000($24)
b L.32
L.31:
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
move $17,$24
L.32:
sw $17,L
l.d $f18,d
cvt.s.d $f16,$f18
s.s $f16,f
s.d $f18,D
jal print
l.d $f18,L.33
s.d $f18,D
l.d $f18,D
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
move $15,$24
sb $15,c
move $15,$24
sh $15,s
sw $24,i
sw $24,l
l.d $f16,L.37
c.lt.d $f18,$f16; bc1t L.35
sub.d $f16,$f18,$f16
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
la $16,0x80000000($24)
b L.36
L.35:
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
move $16,$24
L.36:
move $24,$16
sb $24,C
l.d $f18,D
l.d $f16,L.37
c.lt.d $f18,$f16; bc1t L.39
sub.d $f16,$f18,$f16
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
la $24,0x80000000($24)
sw $24,-4+72($sp)
b L.40
L.39:
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
sw $24,-4+72($sp)
L.40:
lw $24,-4+72($sp)
sh $24,S
l.d $f18,D
l.d $f16,L.37
c.lt.d $f18,$f16; bc1t L.42
sub.d $f16,$f18,$f16
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
la $24,0x80000000($24)
sw $24,-8+72($sp)
b L.43
L.42:
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
sw $24,-8+72($sp)
L.43:
lw $24,-8+72($sp)
sw $24,I
l.d $f18,D
l.d $f16,L.37
c.lt.d $f18,$f16; bc1t L.45
sub.d $f16,$f18,$f16
trunc.w.d $f2,$f16,$24; mfc1 $24,$f2
la $24,0x80000000($24)
sw $24,-12+72($sp)
b L.46
L.45:
trunc.w.d $f2,$f18,$24; mfc1 $24,$f2
sw $24,-12+72($sp)
L.46:
lw $24,-12+72($sp)
sw $24,L
l.d $f18,D
cvt.s.d $f16,$f18
s.s $f16,f
s.d $f18,d
jal print
sw $0,p
sw $0,p
sw $0,p
sw $0,p
lw $24,P
sw $24,p
sw $0,P
sw $0,P
sw $0,P
sw $0,P
lw $24,p
sw $24,P
move $2,$0
L.3:
lw $16,16($sp)
lw $17,20($sp)
lw $18,24($sp)
lw $19,28($sp)
lw $20,32($sp)
lw $21,36($sp)
lw $22,40($sp)
lw $23,44($sp)
lw $25,48($sp)
lw $30,52($sp)
lw $31,56($sp)
addu $sp,$sp,72
j $31
.end main
.globl P
.comm P,4
.globl p
.comm p,4
.globl D
.comm D,8
.globl d
.comm d,8
.globl f
.comm f,4
.globl L
.comm L,4
.globl I
.comm I,4
.globl S
.comm S,2
.globl C
.comm C,1
.globl l
.comm l,4
.globl i
.comm i,4
.globl s
.comm s,2
.globl c
.comm c,1
.rdata
.align 3
L.37:
.word 0x41e00000
.word 0x0
.align 3
L.33:
.word 0x40260000
.word 0x0
.align 3
L.23:
.word 0x41e00000
.word 0x0
.align 3
L.19:
.word 0x40240000
.word 0x0
.align 2
L.9:
.word 0x4f000000
.align 2
L.5:
.word 0x41100000
.align 3
L.4:
.word 0x40000000
.word 0x0
.align 0
L.2:
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 108
.byte 100
.byte 32
.byte 37
.byte 117
.byte 32
.byte 37
.byte 117
.byte 32
.byte 37
.byte 117
.byte 32
.byte 37
.byte 108
.byte 117
.byte 32
.byte 37
.byte 102
.byte 32
.byte 37
.byte 102
.byte 32
.byte 37
.byte 108
.byte 102
.byte 10
.byte 0

View file

@ -1,5 +0,0 @@
x = 1 2 3 4 -3 6
y = 3 8 9
x = 1 2 3 0 0 6
y = 2 8 16
p->a = 0x3, p->b = 0xf

View file

@ -1,4 +0,0 @@
tst/fields.c:6: warning: initializer exceeds bit-field width
tst/fields.c:8: warning: initializer exceeds bit-field width
tst/fields.c:30: warning: missing return value
tst/fields.c:34: warning: missing return value

View file

@ -1,304 +0,0 @@
.set reorder
.globl x
.data
.align 2
x:
.word 0x1
.byte 0x2
.space 3
.byte 0x0
.byte 0x34
.space 2
.byte 0xa
.byte 0x6
.space 2
.globl i
.sdata
.align 2
i:
.word 0x10
.globl y
.sdata
.align 2
y:
.byte 0xe0
.space 3
.byte 0x0
.byte 0x0
.byte 0x0
.byte 0x9
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,40,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-40
.mask 0x82000000,-8
.cprestore 28
sw $31,32($sp)
la $4,L.4
lw $5,x
lb $6,x+4
lw $24,x+8
sra $7,$24,20
lw $24,x+8
sll $24,$24,12
sra $24,$24,28
sw $24,16($sp)
lw $24,x+12
sll $24,$24,4
sra $24,$24,29
sw $24,20($sp)
lb $24,x+13
sw $24,24($sp)
jal printf
la $4,L.10
lw $24,y
srl $15,$24,30
and $5,$15,3
srl $24,$24,26
and $6,$24,15
lw $7,y+4
jal printf
lw $24,x+8
and $24,$24,0xfff0ffff
lw $15,i
sll $15,$15,28
sra $15,$15,28
sll $15,$15,16
and $15,$15,0xf0000
or $24,$24,$15
sw $24,x+8
lw $24,x+12
and $24,$24,0xf1ffffff
sw $24,x+12
la $4,L.4
lw $5,x
lb $6,x+4
lw $24,x+8
sra $7,$24,20
lw $24,x+8
sll $24,$24,12
sra $24,$24,28
sw $24,16($sp)
lw $24,x+12
sll $24,$24,4
sra $24,$24,29
sw $24,20($sp)
lb $24,x+13
sw $24,24($sp)
jal printf
lw $24,y
and $24,$24,0x3fffffff
or $24,$24,0x80000000
sw $24,y
lw $24,i
sw $24,y+4
la $4,L.10
lw $24,y
srl $15,$24,30
and $5,$15,3
srl $24,$24,26
and $6,$24,15
lw $7,y+4
jal printf
la $4,x
jal f2
move $2,$0
L.3:
lw $25,28($sp)
lw $31,32($sp)
addu $sp,$sp,40
j $31
.end main
.globl f1
.text
.align 2
.ent f1
f1:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-8
.cprestore 16
sw $30,20($sp)
sw $31,24($sp)
move $30,$4
lw $24,($30)
and $24,$24,0xc3ffffff
sw $24,($30)
lw $24,($30)
and $24,$24,0x3fffffff
and $15,$0,3
sll $15,$15,30
and $15,$15,0xc0000000
or $24,$24,$15
sw $24,($30)
lw $24,($30)
and $24,$24,0x3c000000
beq $24,$0,L.22
la $4,L.24
jal printf
L.22:
lw $24,($30)
or $24,$24,0xc0000000
sw $24,($30)
lw $24,($30)
or $24,$24,0x3c000000
sw $24,($30)
la $4,L.25
lw $24,($30)
srl $15,$24,30
and $5,$15,3
srl $24,$24,26
and $6,$24,15
jal printf
move $2,$0
L.21:
lw $25,16($sp)
lw $30,20($sp)
lw $31,24($sp)
addu $sp,$sp,32
j $31
.end f1
.globl f2
.text
.align 2
.ent f2
f2:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2800000,-4
sw $23,16($sp)
.cprestore 20
sw $30,24($sp)
sw $31,28($sp)
move $30,$4
lw $24,i
bne $24,$0,L.28
la $23,1
b L.29
L.28:
move $23,$0
L.29:
lw $24,($30)
and $24,$24,0x3fffffff
move $15,$23
and $15,$15,3
sll $15,$15,30
and $15,$15,0xc0000000
or $24,$24,$15
sw $24,($30)
move $4,$30
jal f1
lw $24,($30)
and $24,$24,0xc3ffffff
move $15,$0
and $15,$15,15
sll $15,$15,26
and $15,$15,0x3c000000
or $24,$24,$15
sw $24,($30)
move $2,$0
L.26:
lw $23,16($sp)
lw $25,20($sp)
lw $30,24($sp)
lw $31,28($sp)
addu $sp,$sp,32
j $31
.end f2
.rdata
.align 0
L.25:
.byte 112
.byte 45
.byte 62
.byte 97
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 44
.byte 32
.byte 112
.byte 45
.byte 62
.byte 98
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 10
.byte 0
.align 0
L.24:
.byte 112
.byte 45
.byte 62
.byte 98
.byte 32
.byte 33
.byte 61
.byte 32
.byte 48
.byte 33
.byte 10
.byte 0
.align 0
L.10:
.byte 121
.byte 32
.byte 61
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.4:
.byte 120
.byte 32
.byte 61
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0

View file

@ -1,29 +0,0 @@
tst/front.c:3: warning: missing return value
tst/front.c:10: warning: missing return value
tst/front.c:20: type error in argument 1 to `s'; found `pointer to struct D' expected `pointer to incomplete struct D defined at tst/front.c:14'
tst/front.c:21: warning: missing return value
tst/front.c:32: warning: missing return value
tst/front.c:36: operands of = have illegal types `pointer to int' and `pointer to const int'
tst/front.c:38: warning: missing return value
tst/front.c:62: operands of = have illegal types `pointer to char' and `pointer to const void'
tst/front.c:63: warning: missing return value
tst/front.c:68: warning: missing return value
tst/front.c:69: warning: inconsistent linkage for `yy' previously declared at tst/front.c:68
tst/front.c:69: warning: missing return value
tst/front.c:71: invalid storage class `static' for `int function goo'
tst/front.c:71: warning: declaration of `goo' does not match previous declaration at tst/front.c:70
tst/front.c:71: warning: missing return value
tst/front.c:74: warning: declaration of `xr' does not match previous declaration at tst/front.c:72
tst/front.c:74: warning: missing return value
tst/front.c:81: warning: missing return value
tst/front.c:82: warning: declaration of `ss2' does not match previous declaration at tst/front.c:81
tst/front.c:84: warning: inconsistent linkage for `ss5' previously declared at tst/front.c:80
tst/front.c:92: type error in argument 1 to `gx1'; found `pointer to double' expected `double'
tst/front.c:92: warning: missing return value
tst/front.c:95: redeclaration of `hx1' previously declared at tst/front.c:94
tst/front.c:98: warning: missing return value
tst/front.c:101: conflicting argument declarations for function `gg1'
tst/front.c:101: warning: missing return value
tst/front.c:112: type error in argument 4 to `qsort'; found `pointer to int function(pointer to pointer to char,pointer to pointer to char)' expected `pointer to int function(pointer to const void,pointer to const void)'
tst/front.c:113: warning: missing return value
tst/front.c:120: warning: missing return value

View file

@ -1,416 +0,0 @@
.set reorder
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
move $4,$0
jal exit
move $2,$0
L.1:
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end main
.globl nested
.text
.align 2
.ent nested
nested:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
la $24,4
bge $4,$24,L.6
la $24,114
beq $5,$24,L.9
L.6:
la $24,1
bne $4,$24,L.8
la $24,104
beq $5,$24,L.9
la $24,105
beq $5,$24,L.9
L.8:
la $24,2
bne $4,$24,L.3
la $24,111
beq $5,$24,L.9
la $24,121
bne $5,$24,L.3
L.9:
move $4,$5
L.3:
move $2,$0
L.2:
j $31
.end nested
.globl s
.text
.align 2
.ent s
s:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
L.10:
j $31
.end s
.globl Dy
.sdata
.align 2
Dy:
.word 0x0
.space 4
.globl Dz
.sdata
.align 2
Dz:
.word 0x1
.space 4
.globl Dfunc
.text
.text
.align 2
.ent Dfunc
Dfunc:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end Dfunc
.globl f
.text
.align 2
.ent f
f:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end f
.globl f1
.text
.align 2
.ent f1
f1:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end f1
.globl f2
.text
.align 2
.ent f2
f2:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
sw $4,24($sp)
sw $5,28($sp)
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end f2
.globl g
.text
.align 2
.ent g
g:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
sw $4,24($sp)
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end g
.globl h
.text
.align 2
.ent h
h:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
sw $4,24($sp)
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end h
.globl h1
.text
.align 2
.ent h1
h1:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
sw $4,24($sp)
sw $5,28($sp)
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end h1
.globl h2
.text
.align 2
.ent h2
h2:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end h2
.sdata
.align 2
L.21:
.word 0x1
.globl set1
.text
.text
.align 2
.ent set1
set1:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end set1
.sdata
.align 2
L.23:
.word 0x2
.globl set2
.text
.text
.align 2
.ent set2
set2:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end set2
.text
.align 2
.ent goo
goo:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end goo
.globl sss
.text
.align 2
.ent sss
sss:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end sss
.lcomm L.27,4
.globl rrr
.text
.text
.align 2
.ent rrr
rrr:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end rrr
.globl setstatic
.text
.align 2
.ent setstatic
setstatic:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end setstatic
.globl gx1
.text
.align 2
.ent gx1
gx1:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
s.d $f12,24($sp)
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end gx1
.globl ff1
.text
.align 2
.ent ff1
ff1:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end ff1
.globl gg1
.text
.align 2
.ent gg1
gg1:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end gg1
.globl hh1
.text
.align 2
.ent hh1
hh1:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
j $31
.end hh1
.globl cmp
.text
.align 2
.ent cmp
cmp:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
sw $4,24($sp)
sw $5,28($sp)
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end cmp
.globl sort
.text
.align 2
.ent sort
sort:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end sort
.globl onearg
.text
.align 2
.ent onearg
onearg:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end onearg
.extern xr 4
.globl ss4
.comm ss4,4
.lcomm ss2,4
.lcomm ss5,4
.globl ss3
.comm ss3,4
.lcomm ss1,4
.lcomm yy,4
.globl z
.comm z,4
.globl y
.comm y,4
.globl x
.comm x,4
.globl b
.comm b,4
.globl a
.comm a,4

View file

@ -1,9 +0,0 @@
tst/incr.c:1: warning: missing return value
tst/incr.c:6: warning: expression with no effect elided
tst/incr.c:6: warning: expression with no effect elided
tst/incr.c:11: warning: missing return value
tst/incr.c:16: warning: expression with no effect elided
tst/incr.c:16: warning: expression with no effect elided
tst/incr.c:21: warning: missing return value
tst/incr.c:30: warning: missing return value
tst/incr.c:39: warning: missing return value

View file

@ -1,149 +0,0 @@
.set reorder
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
move $2,$0
L.1:
j $31
.end main
.globl memchar
.text
.align 2
.ent memchar
memchar:
.frame $sp,8,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-8
lw $24,-8+8($sp)
la $15,1($24)
sw $15,-8+8($sp)
lb $24,($24)
sb $24,-1+8($sp)
lw $24,-8+8($sp)
la $24,1($24)
sw $24,-8+8($sp)
lb $24,($24)
sb $24,-1+8($sp)
lw $24,-8+8($sp)
la $15,-1($24)
sw $15,-8+8($sp)
lb $24,($24)
sb $24,-1+8($sp)
lw $24,-8+8($sp)
la $24,-1($24)
sw $24,-8+8($sp)
lb $24,($24)
sb $24,-1+8($sp)
move $2,$0
L.2:
addu $sp,$sp,8
j $31
.end memchar
.globl memint
.text
.align 2
.ent memint
memint:
.frame $sp,8,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-8
lw $24,-8+8($sp)
la $15,4($24)
sw $15,-8+8($sp)
lw $24,($24)
sw $24,-4+8($sp)
lw $24,-8+8($sp)
la $24,4($24)
sw $24,-8+8($sp)
lw $24,($24)
sw $24,-4+8($sp)
lw $24,-8+8($sp)
la $15,-4($24)
sw $15,-8+8($sp)
lw $24,($24)
sw $24,-4+8($sp)
lw $24,-8+8($sp)
la $24,-4($24)
sw $24,-8+8($sp)
lw $24,($24)
sw $24,-4+8($sp)
move $2,$0
L.3:
addu $sp,$sp,8
j $31
.end memint
.globl regchar
.text
.align 2
.ent regchar
regchar:
.frame $sp,8,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-8
.mask 0x40800000,-4
sw $23,0($sp)
sw $30,4($sp)
move $24,$23
la $23,1($24)
lb $30,($24)
la $24,1($23)
move $23,$24
lb $30,($24)
move $24,$23
la $23,-1($24)
lb $30,($24)
la $24,-1($23)
move $23,$24
lb $30,($24)
move $2,$0
L.4:
lw $23,0($sp)
lw $30,4($sp)
addu $sp,$sp,8
j $31
.end regchar
.globl regint
.text
.align 2
.ent regint
regint:
.frame $sp,8,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-8
.mask 0x40800000,-4
sw $23,0($sp)
sw $30,4($sp)
move $24,$23
la $23,4($24)
lw $30,($24)
la $24,4($23)
move $23,$24
lw $30,($24)
move $24,$23
la $23,-4($24)
lw $30,($24)
la $24,-4($23)
move $23,$24
lw $30,($24)
move $2,$0
L.5:
lw $23,0($sp)
lw $30,4($sp)
addu $sp,$sp,8
j $31
.end regint

View file

@ -1,16 +0,0 @@
1 2 3 4
5 6
7
if
for
else
while
1 2 3 if
4 5 0 for
6 7 8 else
9 10 11 while
1 2 3 if
4 5 0 for
6 7 8 else
9 10 11 while
0 0 0

View file

@ -1,3 +0,0 @@
tst/init.c:36: warning: missing return value
tst/init.c:49: warning: missing return value
tst/init.c:59: warning: missing return value

View file

@ -1,325 +0,0 @@
.set reorder
.globl words
.data
.align 2
words:
.word 0x1
.word 0x2
.word 0x3
.byte 105
.byte 102
.byte 0
.space 3
.space 2
.word 0x4
.word 0x5
.space 4
.byte 102
.byte 111
.byte 114
.space 3
.space 2
.word 0x6
.word 0x7
.word 0x8
.byte 101
.byte 108
.byte 115
.byte 101
.byte 0
.space 1
.space 2
.word 0x9
.word 0xa
.word 0xb
.byte 119
.byte 104
.byte 105
.byte 108
.byte 101
.space 1
.space 2
.word 0x0
.space 8
.space 8
.globl wordlist
.sdata
.align 2
wordlist:
.word words
.globl x
.data
.align 2
x:
.word 0x1
.word 0x2
.word 0x3
.word 0x4
.word 0x0
.word 0x5
.word 0x6
.space 12
.word 0x7
.space 16
.globl y
.data
.align 2
y:
.word x
.word x+20
.word x+40
.word 0x0
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2800000,-4
sw $23,16($sp)
.cprestore 20
sw $30,24($sp)
sw $31,28($sp)
move $23,$0
b L.8
L.5:
move $30,$0
b L.12
L.9:
la $4,L.13
sll $24,$30,2
sll $15,$23,2
lw $15,y($15)
addu $24,$24,$15
lw $5,($24)
jal printf
L.10:
la $30,1($30)
L.12:
sll $24,$30,2
sll $15,$23,2
lw $15,y($15)
addu $24,$24,$15
lw $24,($24)
bne $24,$0,L.9
la $4,L.14
jal printf
L.6:
la $23,1($23)
L.8:
sll $24,$23,2
lw $24,y($24)
bne $24,$0,L.5
jal f
lw $4,wordlist
jal g
move $2,$0
L.4:
lw $23,16($sp)
lw $25,20($sp)
lw $30,24($sp)
lw $31,28($sp)
addu $sp,$sp,32
j $31
.end main
.data
.align 2
L.16:
.word L.17
.word L.18
.word L.19
.word L.20
.word 0x0
.globl f
.text
.text
.align 2
.ent f
f:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-8
.cprestore 16
sw $30,20($sp)
sw $31,24($sp)
la $30,L.16
b L.24
L.21:
la $4,L.25
lw $5,($30)
jal printf
L.22:
la $30,4($30)
L.24:
lw $24,($30)
bne $24,$0,L.21
move $2,$0
L.15:
lw $25,16($sp)
lw $30,20($sp)
lw $31,24($sp)
addu $sp,$sp,32
j $31
.end f
.globl g
.text
.align 2
.ent g
g:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2800000,-4
sw $23,16($sp)
.cprestore 20
sw $30,24($sp)
sw $31,28($sp)
move $30,$4
b L.30
L.27:
move $23,$0
b L.34
L.31:
la $4,L.35
sll $24,$23,2
addu $24,$24,$30
lw $5,($24)
jal printf
L.32:
la $23,1($23)
L.34:
move $24,$23
la $15,3
bltu $24,$15,L.31
la $4,L.25
la $5,12($30)
jal printf
L.28:
la $30,20($30)
L.30:
lw $24,($30)
bne $24,$0,L.27
jal h
move $2,$0
L.26:
lw $23,16($sp)
lw $25,20($sp)
lw $30,24($sp)
lw $31,28($sp)
addu $sp,$sp,32
j $31
.end g
.globl h
.text
.align 2
.ent h
h:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-4
.cprestore 20
sw $30,24($sp)
sw $31,28($sp)
move $30,$0
b L.40
L.37:
la $4,L.41
la $24,20
mul $24,$24,$30
lw $5,words($24)
lw $6,words+4($24)
lw $7,words+8($24)
la $24,words+12($24)
sw $24,16($sp)
jal printf
L.38:
la $30,1($30)
L.40:
move $24,$30
la $15,5
bltu $24,$15,L.37
move $2,$0
L.36:
lw $25,20($sp)
lw $30,24($sp)
lw $31,28($sp)
addu $sp,$sp,32
j $31
.end h
.rdata
.align 0
L.41:
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 115
.byte 10
.byte 0
.align 0
L.35:
.byte 37
.byte 100
.byte 32
.byte 0
.align 0
L.25:
.byte 37
.byte 115
.byte 10
.byte 0
.align 0
L.20:
.byte 119
.byte 104
.byte 105
.byte 108
.byte 101
.byte 0
.align 0
L.19:
.byte 101
.byte 108
.byte 115
.byte 101
.byte 0
.align 0
L.18:
.byte 102
.byte 111
.byte 114
.byte 0
.align 0
L.17:
.byte 105
.byte 102
.byte 0
.align 0
L.14:
.byte 10
.byte 0
.align 0
L.13:
.byte 32
.byte 37
.byte 100
.byte 0

View file

@ -1,14 +0,0 @@
UCHAR_MAX: 000000ff=255
USHRT_MAX: 0000ffff=65535
UINT_MAX: ffffffff=-1
ULONG_MAX: ffffffff=-1
CHAR_MAX: 0000007f=127
SCHAR_MAX: 0000007f=127
SHRT_MAX: 00007fff=32767
INT_MAX: 7fffffff=2147483647
LONG_MAX: 7fffffff=2147483647
CHAR_MIN: ffffff80=-128
SCHAR_MIN: ffffff80=-128
SHRT_MIN: ffff8000=-32768
INT_MIN: 80000000=-2147483648
LONG_MIN: 80000000=-2147483648

View file

@ -1,396 +0,0 @@
.set reorder
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
la $4,L.2
la $24,255
move $5,$24
move $6,$24
jal printf
la $4,L.3
la $24,65535
move $5,$24
move $6,$24
jal printf
la $4,L.4
la $24,0xffffffff
move $5,$24
move $6,$24
jal printf
la $4,L.5
la $24,0xffffffff
move $5,$24
move $6,$24
jal printf
la $4,L.6
la $24,127
move $5,$24
move $6,$24
jal printf
la $4,L.7
la $24,127
move $5,$24
move $6,$24
jal printf
la $4,L.8
la $24,32767
move $5,$24
move $6,$24
jal printf
la $4,L.9
la $24,2147483647
move $5,$24
move $6,$24
jal printf
la $4,L.10
la $24,2147483647
move $5,$24
move $6,$24
jal printf
la $4,L.11
la $24,-128
move $5,$24
move $6,$24
jal printf
la $4,L.12
la $24,-128
move $5,$24
move $6,$24
jal printf
la $4,L.13
la $24,-32768
move $5,$24
move $6,$24
jal printf
la $4,L.14
la $24,-2147483648
move $5,$24
move $6,$24
jal printf
la $4,L.15
la $24,-2147483648
move $5,$24
move $6,$24
jal printf
move $2,$0
L.1:
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end main
.rdata
.align 0
L.15:
.byte 76
.byte 79
.byte 78
.byte 71
.byte 95
.byte 77
.byte 73
.byte 78
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 108
.byte 120
.byte 61
.byte 37
.byte 108
.byte 100
.byte 10
.byte 0
.align 0
L.14:
.byte 73
.byte 78
.byte 84
.byte 95
.byte 77
.byte 73
.byte 78
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.13:
.byte 83
.byte 72
.byte 82
.byte 84
.byte 95
.byte 77
.byte 73
.byte 78
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.12:
.byte 83
.byte 67
.byte 72
.byte 65
.byte 82
.byte 95
.byte 77
.byte 73
.byte 78
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.11:
.byte 67
.byte 72
.byte 65
.byte 82
.byte 95
.byte 77
.byte 73
.byte 78
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.10:
.byte 76
.byte 79
.byte 78
.byte 71
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 108
.byte 120
.byte 61
.byte 37
.byte 108
.byte 100
.byte 10
.byte 0
.align 0
L.9:
.byte 73
.byte 78
.byte 84
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.8:
.byte 83
.byte 72
.byte 82
.byte 84
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.7:
.byte 83
.byte 67
.byte 72
.byte 65
.byte 82
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.6:
.byte 67
.byte 72
.byte 65
.byte 82
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.5:
.byte 85
.byte 76
.byte 79
.byte 78
.byte 71
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 108
.byte 120
.byte 61
.byte 37
.byte 108
.byte 100
.byte 10
.byte 0
.align 0
L.4:
.byte 85
.byte 73
.byte 78
.byte 84
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.3:
.byte 85
.byte 83
.byte 72
.byte 82
.byte 84
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.2:
.byte 85
.byte 67
.byte 72
.byte 65
.byte 82
.byte 95
.byte 77
.byte 65
.byte 88
.byte 58
.byte 9
.byte 37
.byte 48
.byte 56
.byte 120
.byte 61
.byte 37
.byte 100
.byte 10
.byte 0

View file

@ -1,178 +0,0 @@
Lest this program stop prematurely, i.e. before displaying
`END OF TEST',
try to persuade the computer NOT to terminate execution when an
error like Over/Underflow or Division by Zero occurs, but rather
to persevere with a surrogate value after, perhaps, displaying some
warning. If persuasion avails naught, don't despair but run this
program anyway to see how many milestones it passes, and then
amend it to make further progress.
Answer questions with Y, y, N or n (unless otherwise indicated).
Diagnosis resumes after milestone Number 0 Page: 1
Users are invited to help debug and augment this program so it will
cope with unanticipated and newly uncovered arithmetic pathologies.
Please send suggestions and interesting results to
Richard Karpinski
Computer Center U-76
University of California
San Francisco, CA 94143-0704, USA
In doing so, please include the following information:
Precision: double;
Version: 10 February 1989;
Computer:
Compiler:
Optimization level:
Other relevant compiler options:
Diagnosis resumes after milestone Number 1 Page: 2
Running this program should reveal these characteristics:
Radix = 1, 2, 4, 8, 10, 16, 100, 256 ...
Precision = number of significant digits carried.
U2 = Radix/Radix^Precision = One Ulp
(OneUlpnit in the Last Place) of 1.000xxx .
U1 = 1/Radix^Precision = One Ulp of numbers a little less than 1.0 .
Adequacy of guard digits for Mult., Div. and Subt.
Whether arithmetic is chopped, correctly rounded, or something else
for Mult., Div., Add/Subt. and Sqrt.
Whether a Sticky Bit used correctly for rounding.
UnderflowThreshold = an underflow threshold.
E0 and PseudoZero tell whether underflow is abrupt, gradual, or fuzzy.
V = an overflow threshold, roughly.
V0 tells, roughly, whether Infinity is represented.
Comparisions are checked for consistency with subtraction
and for contamination with pseudo-zeros.
Sqrt is tested. Y^X is not tested.
Extra-precise subexpressions are revealed but NOT YET tested.
Decimal-Binary conversion is NOT YET tested for accuracy.
Diagnosis resumes after milestone Number 2 Page: 3
The program attempts to discriminate among
FLAWs, like lack of a sticky bit,
Serious DEFECTs, like lack of a guard digit, and
FAILUREs, like 2+2 == 5 .
Failures may confound subsequent diagnoses.
The diagnostic capabilities of this program go beyond an earlier
program called `MACHAR', which can be found at the end of the
book `Software Manual for the Elementary Functions' (1980) by
W. J. Cody and W. Waite. Although both programs try to discover
the Radix, Precision and range (over/underflow thresholds)
of the arithmetic, this program tries to cope with a wider variety
of pathologies, and to say how well the arithmetic is implemented.
The program is based upon a conventional radix representation for
floating-point numbers, but also allows logarithmic encoding
as used by certain early WANG machines.
BASIC version of this program (C) 1983 by Prof. W. M. Kahan;
see source comments for more history.
Diagnosis resumes after milestone Number 3 Page: 4
Program is now RUNNING tests on small integers:
-1, 0, 1/2, 1, 2, 3, 4, 5, 9, 27, 32 & 240 are O.K.
Searching for Radix and Precision.
Radix = 2.000000 .
Closest relative separation found is U1 = 1.1102230e-16 .
Recalculating radix and precision
confirms closest relative separation U1 .
Radix confirmed.
The number of significant digits of the Radix is 53.000000 .
Diagnosis resumes after milestone Number 30 Page: 5
Subtraction appears to be normalized, as it should be.
Checking for guard digit in *, /, and -.
*, /, and - appear to have guard digits, as they should.
Diagnosis resumes after milestone Number 40 Page: 6
Checking rounding on multiply, divide and add/subtract.
Multiplication appears to round correctly.
Division appears to round correctly.
Addition/Subtraction appears to round correctly.
Checking for sticky bit.
Sticky bit apparently used correctly.
Does Multiplication commute? Testing on 20 random pairs.
No failures found in 20 integer pairs.
Running test of square root(x).
Testing if sqrt(X * X) == X for 20 Integers X.
Test for sqrt monotonicity.
sqrt has passed a test for Monotonicity.
Testing whether sqrt is rounded or chopped.
Square root appears to be correctly rounded.
Diagnosis resumes after milestone Number 90 Page: 7
Testing powers Z^i for small Integers Z and i.
... no discrepancis found.
Seeking Underflow thresholds UfThold and E0.
Smallest strictly positive number found is E0 = 4.94066e-324 .
Since comparison denies Z = 0, evaluating (Z + Z) / Z should be safe.
What the machine gets for (Z + Z) / Z is 2.00000000000000000e+00 .
This is O.K., provided Over/Underflow has NOT just been signaled.
Underflow is gradual; it incurs Absolute Error =
(roundoff in UfThold) < E0.
The Underflow threshold is 2.22507385850720190e-308, below which
calculation may suffer larger Relative error than merely roundoff.
Since underflow occurs below the threshold
UfThold = (2.00000000000000000e+00) ^ (-1.02200000000000000e+03)
only underflow should afflict the expression
(2.00000000000000000e+00) ^ (-1.02200000000000000e+03);
actually calculating yields: 0.00000000000000000e+00 .
This computed value is O.K.
Testing X^((X + 1) / (X - 1)) vs. exp(2) = 7.38905609893065220e+00 as X -> 1.
Accuracy seems adequate.
Testing powers Z^Q at four nearly extreme values.
... no discrepancies found.
Diagnosis resumes after milestone Number 160 Page: 8
Searching for Overflow threshold:
This may generate an error.
Can `Z = -Y' overflow?
Trying it on Y = -inf .
Seems O.K.
Overflow threshold is V = 1.79769313486231570e+308 .
Overflow saturates at V0 = inf .
No Overflow should be signaled for V * 1 = 1.79769313486231570e+308
nor for V / 1 = 1.79769313486231570e+308 .
Any overflow signal separating this * from the one
above is a DEFECT.
Diagnosis resumes after milestone Number 190 Page: 9
What message and/or values does Division by Zero produce?
Trying to compute 1 / 0 produces ... inf .
Trying to compute 0 / 0 produces ... nan .
Diagnosis resumes after milestone Number 220 Page: 10
No failures, defects nor flaws have been discovered.
Rounding appears to conform to the proposed IEEE standard P754.
The arithmetic diagnosed appears to be Excellent!
END OF TEST.

View file

@ -1,16 +0,0 @@
tst/paranoia.c:1867: warning: missing return value
tst/paranoia.c:1874: warning: missing return value
tst/paranoia.c:1884: warning: missing return value
tst/paranoia.c:1924: warning: missing return value
tst/paranoia.c:1939: warning: missing return value
tst/paranoia.c:1956: warning: missing return value
tst/paranoia.c:1975: warning: missing return value
tst/paranoia.c:1988: warning: missing return value
tst/paranoia.c:1995: warning: missing return value
tst/paranoia.c:2055: warning: missing return value
tst/paranoia.c:2062: warning: missing return value
tst/paranoia.c:2070: warning: missing return value
tst/paranoia.c:2087: warning: missing return value
tst/paranoia.c:2115: warning: missing return value
tst/paranoia.c:2144: warning: missing return value
tst/paranoia.c:2173: warning: missing return value

File diff suppressed because it is too large Load diff

View file

@ -1,20 +0,0 @@
exchange(1,9)
exchange(3,7)
exchange(5,6)
exchange(0,5)
exchange(0,3)
exchange(0,0)
exchange(1,2)
exchange(6,6)
exchange(8,9)
exchange(7,8)
-51
-1
0
1
3
10
18
32
567
789

View file

@ -1,5 +0,0 @@
tst/sort.c:23: warning: missing return value
tst/sort.c:30: warning: missing return value
tst/sort.c:37: warning: missing return value
tst/sort.c:41: warning: missing return value
tst/sort.c:65: warning: missing return value

View file

@ -1,308 +0,0 @@
.set reorder
.globl in
.data
.align 2
in:
.word 0xa
.word 0x20
.word 0xffffffff
.word 0x237
.word 0x3
.word 0x12
.word 0x1
.word 0xffffffcd
.word 0x315
.word 0x0
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-8
.cprestore 16
sw $30,20($sp)
sw $31,24($sp)
la $4,in
la $5,10
jal sort
move $30,$0
b L.5
L.2:
sll $24,$30,2
lw $4,in($24)
jal putd
la $4,10
jal putchar
L.3:
la $30,1($30)
L.5:
move $24,$30
la $15,10
bltu $24,$15,L.2
move $2,$0
L.1:
lw $25,16($sp)
lw $30,20($sp)
lw $31,24($sp)
addu $sp,$sp,32
j $31
.end main
.globl putd
.text
.align 2
.ent putd
putd:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-8
.cprestore 16
sw $30,20($sp)
sw $31,24($sp)
move $30,$4
bge $30,$0,L.7
la $4,45
jal putchar
negu $30,$30
L.7:
la $24,10
div $24,$30,$24
beq $24,$0,L.9
la $24,10
div $4,$30,$24
jal putd
L.9:
la $24,10
rem $24,$30,$24
la $4,48($24)
jal putchar
move $2,$0
L.6:
lw $25,16($sp)
lw $30,20($sp)
lw $31,24($sp)
addu $sp,$sp,32
j $31
.end putd
.globl sort
.text
.align 2
.ent sort
sort:
.frame $sp,24,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-24
.mask 0x82000000,-4
.cprestore 16
sw $31,20($sp)
sw $4,24($sp)
sw $5,28($sp)
lw $24,0+24($sp)
sw $24,xx
move $4,$24
move $5,$0
lw $24,4+24($sp)
subu $24,$24,1
sw $24,4+24($sp)
move $6,$24
jal quick
move $2,$0
L.11:
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,24
j $31
.end sort
.globl quick
.text
.align 2
.ent quick
quick:
.frame $sp,40,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-40
.mask 0xc2e00000,-4
sw $21,16($sp)
sw $22,20($sp)
sw $23,24($sp)
.cprestore 28
sw $30,32($sp)
sw $31,36($sp)
move $30,$4
move $23,$5
move $22,$6
blt $23,$22,L.13
b L.12
L.13:
move $4,$30
move $5,$23
move $6,$22
jal partition
move $21,$2
move $4,$30
move $5,$23
subu $6,$21,1
jal quick
move $4,$30
la $5,1($21)
move $6,$22
jal quick
move $2,$0
L.12:
lw $21,16($sp)
lw $22,20($sp)
lw $23,24($sp)
lw $25,28($sp)
lw $30,32($sp)
lw $31,36($sp)
addu $sp,$sp,40
j $31
.end quick
.globl partition
.text
.align 2
.ent partition
partition:
.frame $sp,48,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-48
.mask 0xc2f00000,-8
sw $20,16($sp)
sw $21,20($sp)
sw $22,24($sp)
sw $23,28($sp)
.cprestore 32
sw $30,36($sp)
sw $31,40($sp)
move $30,$4
move $23,$5
move $22,$6
la $22,1($22)
move $20,$23
sll $24,$20,2
addu $24,$24,$30
lw $21,($24)
b L.17
L.16:
la $23,1($23)
b L.20
L.19:
la $23,1($23)
L.20:
sll $24,$23,2
addu $24,$24,$30
lw $24,($24)
blt $24,$21,L.19
subu $22,$22,1
b L.23
L.22:
subu $22,$22,1
L.23:
sll $24,$22,2
addu $24,$24,$30
lw $24,($24)
bgt $24,$21,L.22
bge $23,$22,L.25
sll $24,$23,2
addu $4,$24,$30
sll $24,$22,2
addu $5,$24,$30
jal exchange
L.25:
L.17:
blt $23,$22,L.16
sll $24,$20,2
addu $4,$24,$30
sll $24,$22,2
addu $5,$24,$30
jal exchange
move $2,$22
L.15:
lw $20,16($sp)
lw $21,20($sp)
lw $22,24($sp)
lw $23,28($sp)
lw $25,32($sp)
lw $30,36($sp)
lw $31,40($sp)
addu $sp,$sp,48
j $31
.end partition
.globl exchange
.text
.align 2
.ent exchange
exchange:
.frame $sp,40,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-40
.mask 0xc2800000,-12
sw $23,16($sp)
.cprestore 20
sw $30,24($sp)
sw $31,28($sp)
move $30,$4
move $23,$5
la $4,L.28
lw $24,xx
la $15,4
move $14,$30
subu $14,$14,$24
div $5,$14,$15
move $14,$23
subu $24,$14,$24
div $6,$24,$15
jal printf
lw $24,($30)
sw $24,-4+40($sp)
lw $24,($23)
sw $24,($30)
lw $24,-4+40($sp)
sw $24,($23)
move $2,$0
L.27:
lw $23,16($sp)
lw $25,20($sp)
lw $30,24($sp)
lw $31,28($sp)
addu $sp,$sp,40
j $31
.end exchange
.globl xx
.comm xx,4
.rdata
.align 0
L.28:
.byte 101
.byte 120
.byte 99
.byte 104
.byte 97
.byte 110
.byte 103
.byte 101
.byte 40
.byte 37
.byte 100
.byte 44
.byte 37
.byte 100
.byte 41
.byte 10
.byte 0

View file

@ -1,6 +0,0 @@
tst/spill.c:1: warning: missing return value
tst/spill.c:3: warning: missing return value
tst/spill.c:5: warning: missing return value
tst/spill.c:7: warning: missing return value
tst/spill.c:9: warning: missing return value
tst/spill.c:17: warning: missing return value

View file

@ -1,271 +0,0 @@
.set reorder
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
move $2,$0
L.1:
j $31
.end main
.globl f
.text
.align 2
.ent f
f:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0x82000000,-12
.cprestore 16
sw $31,20($sp)
sw $4,32($sp)
jal f
move $24,$2
sw $24,-4+32($sp)
jal f
lw $15,-4+32($sp)
addu $24,$15,$2
sw $24,0+32($sp)
move $2,$0
L.2:
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,32
j $31
.end f
.globl f2
.text
.align 2
.ent f2
f2:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-8
.cprestore 16
sw $30,20($sp)
sw $31,24($sp)
sw $4,32($sp)
jal f
move $24,$2
sw $24,-4+32($sp)
lw $15,0+32($sp)
beq $15,$0,L.5
jal f
move $24,$2
move $30,$24
b L.6
L.5:
la $30,1
L.6:
lw $24,-4+32($sp)
addu $24,$24,$30
sw $24,0+32($sp)
move $2,$0
L.3:
lw $25,16($sp)
lw $30,20($sp)
lw $31,24($sp)
addu $sp,$sp,32
j $31
.end f2
.globl f3
.text
.align 2
.ent f3
f3:
.frame $sp,72,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-72
.mask 0xc2ff0000,-16
sw $16,16($sp)
sw $17,20($sp)
sw $18,24($sp)
sw $19,28($sp)
sw $20,32($sp)
sw $21,36($sp)
sw $22,40($sp)
sw $23,44($sp)
.cprestore 48
sw $30,52($sp)
sw $31,56($sp)
sw $4,72($sp)
sw $5,76($sp)
move $30,$0
move $23,$0
move $22,$0
move $21,$0
move $20,$0
move $19,$0
move $18,$0
move $17,$0
move $16,$0
sw $0,-4+72($sp)
lw $24,4+72($sp)
sw $24,-12+72($sp)
la $15,4($24)
sw $15,4+72($sp)
lw $15,0+72($sp)
beq $15,$0,L.9
jal f
move $24,$2
sw $24,-8+72($sp)
b L.10
L.9:
sw $0,-8+72($sp)
L.10:
lw $24,-8+72($sp)
lw $15,-12+72($sp)
sw $24,($15)
move $2,$0
L.7:
lw $16,16($sp)
lw $17,20($sp)
lw $18,24($sp)
lw $19,28($sp)
lw $20,32($sp)
lw $21,36($sp)
lw $22,40($sp)
lw $23,44($sp)
lw $25,48($sp)
lw $30,52($sp)
lw $31,56($sp)
addu $sp,$sp,72
j $31
.end f3
.globl f4
.text
.align 2
.ent f4
f4:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0x40fc0000,-8
sw $18,0($sp)
sw $19,4($sp)
sw $20,8($sp)
sw $21,12($sp)
sw $22,16($sp)
sw $23,20($sp)
sw $30,24($sp)
move $30,$0
move $23,$0
move $22,$0
move $21,$0
move $20,$0
move $19,$0
lw $24,i
sll $15,$24,3
l.d $f18,a($15)
l.d $f16,b($15)
l.d $f10,L.15
add.d $f8,$f18,$f16
c.eq.d $f8,$f10; bc1t L.13
beq $24,$0,L.13
sub.d $f18,$f18,$f16
c.eq.d $f18,$f10; bc1t L.13
la $18,1
b L.14
L.13:
move $18,$0
L.14:
sw $18,i
move $2,$0
L.11:
lw $18,0($sp)
lw $19,4($sp)
lw $20,8($sp)
lw $21,12($sp)
lw $22,16($sp)
lw $23,20($sp)
lw $30,24($sp)
addu $sp,$sp,32
j $31
.end f4
.globl f5
.text
.align 2
.ent f5
f5:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
lw $24,k
lw $15,m
lw $14,A
mul $13,$24,$15
sll $13,$13,3
addu $13,$13,$14
lw $12,j
mul $15,$12,$15
sll $15,$15,3
addu $15,$15,$14
lw $14,n
lw $11,B
mul $24,$24,$14
sll $24,$24,3
addu $24,$24,$11
mul $14,$12,$14
sll $14,$14,3
addu $14,$14,$11
l.d $f18,($13)
l.d $f16,($15)
mul.d $f18,$f18,$f16
l.d $f16,($24)
l.d $f10,($14)
mul.d $f16,$f16,$f10
add.d $f18,$f18,$f16
s.d $f18,x
l.d $f18,($13)
l.d $f16,($14)
mul.d $f18,$f18,$f16
l.d $f16,($24)
l.d $f10,($15)
mul.d $f16,$f16,$f10
sub.d $f18,$f18,$f16
s.d $f18,x
move $2,$0
L.16:
j $31
.end f5
.globl x
.comm x,8
.globl B
.comm B,4
.globl A
.comm A,4
.globl n
.comm n,4
.globl m
.comm m,4
.globl k
.comm k,4
.globl j
.comm j,4
.globl i
.comm i,4
.globl b
.comm b,80
.globl a
.comm a,80
.rdata
.align 3
L.15:
.word 0x0
.word 0x0

View file

@ -1,6 +0,0 @@
test 1
test 2
test 3
test 4
test 5.000000
{1 2 3 4} {1 2 3 4} {1 2 3 4} {1 2 3 4} {1 2 3 4} {1 2 3 4}

View file

@ -1 +0,0 @@
tst/stdarg.c:51: warning: missing return value

View file

@ -1,395 +0,0 @@
.set reorder
.globl x
.data
.align 2
x:
.word 0x1
.word 0x2
.word 0x3
.word 0x4
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,112,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-112
.mask 0x82000000,-8
.cprestore 100
sw $31,104($sp)
la $4,L.2
jal print
la $4,L.3
la $5,L.4
jal print
la $4,L.5
la $5,3
la $6,10
jal print
la $4,L.6
la $5,L.7
la $6,L.8
la $7,4
la $24,10
sw $24,16($sp)
jal print
la $4,L.9
la $5,L.7
la $6,L.8
l.d $f18,L.10
s.d $f18,16($sp)
la $24,10
sw $24,24($sp)
jal print
la $4,L.11
la $24,x
move $8,$24
lw $3,0($8)
lw $9,4($8)
sw $3,4($29)
sw $9,8($29)
lw $3,8($8)
lw $9,12($8)
sw $3,12($29)
sw $9,16($29)
lw $5,4($sp)
lw $6,8($sp)
lw $7,12($sp)
move $8,$24
lw $3,0($8)
lw $9,4($8)
sw $3,20($29)
sw $9,24($29)
lw $3,8($8)
lw $9,12($8)
sw $3,28($29)
sw $9,32($29)
move $8,$24
lw $3,0($8)
lw $9,4($8)
sw $3,36($29)
sw $9,40($29)
lw $3,8($8)
lw $9,12($8)
sw $3,44($29)
sw $9,48($29)
move $8,$24
lw $3,0($8)
lw $9,4($8)
sw $3,52($29)
sw $9,56($29)
lw $3,8($8)
lw $9,12($8)
sw $3,60($29)
sw $9,64($29)
move $8,$24
lw $3,0($8)
lw $9,4($8)
sw $3,68($29)
sw $9,72($29)
lw $3,8($8)
lw $9,12($8)
sw $3,76($29)
sw $9,80($29)
move $8,$24
lw $3,0($8)
lw $9,4($8)
sw $3,84($29)
sw $9,88($29)
lw $3,8($8)
lw $9,12($8)
sw $3,92($29)
sw $9,96($29)
jal print
move $2,$0
L.1:
lw $25,100($sp)
lw $31,104($sp)
addu $sp,$sp,112
j $31
.end main
.globl print
.text
.align 2
.ent print
print:
.frame $sp,56,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-56
.mask 0xc2800000,-24
sw $23,20($sp)
.cprestore 24
sw $30,28($sp)
sw $31,32($sp)
sw $4,56($sp)
sw $5,60($sp)
sw $6,64($sp)
sw $7,68($sp)
la $30,4+56($sp)
b L.18
L.15:
lw $24,0+56($sp)
lb $24,($24)
la $15,37
bne $24,$15,L.19
lw $24,0+56($sp)
la $24,1($24)
sw $24,0+56($sp)
lb $23,($24)
la $24,115
beq $23,$24,L.35
bgt $23,$24,L.40
L.39:
la $24,98
blt $23,$24,L.21
la $24,102
bgt $23,$24,L.21
sll $24,$23,2
lw $24,L.41-392($24)
.cpadd $24
j $24
.rdata
.align 2
L.41:
.gpword L.24
.gpword L.29
.gpword L.31
.gpword L.21
.gpword L.37
.text
L.40:
la $24,119
beq $23,$24,L.33
b L.21
L.24:
la $24,16($30)
move $30,$24
la $15,-16+56($sp)
la $8,-16($24)
lw $3,0($8)
lw $9,4($8)
sw $3,0($15)
sw $9,4($15)
lw $3,8($8)
lw $9,12($8)
sw $3,8($15)
sw $9,12($15)
la $4,L.25
lw $5,-16+56($sp)
lw $6,-12+56($sp)
lw $7,-8+56($sp)
lw $24,-4+56($sp)
sw $24,16($sp)
jal printf
b L.20
L.29:
la $4,L.30
la $24,4($30)
move $30,$24
lb $5,-1($24)
jal printf
b L.20
L.31:
la $4,L.32
la $24,4($30)
move $30,$24
lw $5,-4($24)
jal printf
b L.20
L.33:
la $4,L.34
la $24,4($30)
move $30,$24
lh $5,-2($24)
jal printf
b L.20
L.35:
la $4,L.36
la $24,4($30)
move $30,$24
lw $5,-4($24)
jal printf
b L.20
L.37:
la $4,L.38
move $24,$30
la $24,15($24)
and $24,$24,0xfffffff8
move $30,$24
l.d $f18,-8($24)
mfc1.d $6,$f18
jal printf
b L.20
L.21:
la $4,L.30
lw $24,0+56($sp)
lb $5,($24)
jal printf
b L.20
L.19:
la $4,L.30
lw $24,0+56($sp)
lb $5,($24)
jal printf
L.20:
L.16:
lw $24,0+56($sp)
la $24,1($24)
sw $24,0+56($sp)
L.18:
lw $24,0+56($sp)
lb $24,($24)
bne $24,$0,L.15
move $2,$0
L.12:
lw $23,20($sp)
lw $25,24($sp)
lw $30,28($sp)
lw $31,32($sp)
addu $sp,$sp,56
j $31
.end print
.rdata
.align 0
L.38:
.byte 37
.byte 102
.byte 0
.align 0
L.36:
.byte 37
.byte 115
.byte 0
.align 0
L.34:
.byte 37
.byte 120
.byte 0
.align 0
L.32:
.byte 37
.byte 100
.byte 0
.align 0
L.30:
.byte 37
.byte 99
.byte 0
.align 0
L.25:
.byte 123
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 32
.byte 37
.byte 100
.byte 125
.byte 0
.align 0
L.11:
.byte 37
.byte 98
.byte 32
.byte 37
.byte 98
.byte 32
.byte 37
.byte 98
.byte 32
.byte 37
.byte 98
.byte 32
.byte 37
.byte 98
.byte 32
.byte 37
.byte 98
.byte 10
.byte 0
.align 3
L.10:
.word 0x40140000
.word 0x0
.align 0
L.9:
.byte 37
.byte 115
.byte 37
.byte 115
.byte 32
.byte 37
.byte 102
.byte 37
.byte 99
.byte 0
.align 0
L.8:
.byte 115
.byte 116
.byte 0
.align 0
L.7:
.byte 116
.byte 101
.byte 0
.align 0
L.6:
.byte 37
.byte 115
.byte 37
.byte 115
.byte 32
.byte 37
.byte 119
.byte 37
.byte 99
.byte 0
.align 0
L.5:
.byte 116
.byte 101
.byte 115
.byte 116
.byte 32
.byte 37
.byte 100
.byte 37
.byte 99
.byte 0
.align 0
L.4:
.byte 50
.byte 0
.align 0
L.3:
.byte 116
.byte 101
.byte 115
.byte 116
.byte 32
.byte 37
.byte 115
.byte 10
.byte 0
.align 0
L.2:
.byte 116
.byte 101
.byte 115
.byte 116
.byte 32
.byte 49
.byte 10
.byte 0

View file

@ -1,5 +0,0 @@
(-1,-1) is not within [10,10; 310,310]
(1,1) is not within [10,10; 310,310]
(20,300) is within [10,10; 310,310]
(500,400) is not within [10,10; 310,310]
ab

View file

@ -1,2 +0,0 @@
tst/struct.c:49: warning: missing return value
tst/struct.c:68: warning: missing return value

View file

@ -1,485 +0,0 @@
.set reorder
.globl addpoint
.text
.text
.align 2
.ent addpoint
addpoint:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
sw $5,4($sp)
sw $6,8($sp)
sw $7,12($sp)
lw $24,4+0($sp)
lw $15,12+0($sp)
addu $24,$24,$15
sw $24,4+0($sp)
lw $24,8+0($sp)
lw $15,16+0($sp)
addu $24,$24,$15
sw $24,8+0($sp)
la $8,4+0($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,0($4)
sw $9,4($4)
L.1:
j $31
.end addpoint
.globl canonrect
.text
.align 2
.ent canonrect
canonrect:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0x40e00000,-20
sw $21,0($sp)
sw $22,4($sp)
sw $23,8($sp)
sw $30,12($sp)
sw $5,36($sp)
sw $6,40($sp)
sw $7,44($sp)
lw $24,4+32($sp)
lw $15,12+32($sp)
bge $24,$15,L.10
lw $30,4+32($sp)
b L.11
L.10:
lw $30,12+32($sp)
L.11:
sw $30,-16+32($sp)
lw $24,8+32($sp)
lw $15,16+32($sp)
bge $24,$15,L.20
lw $23,8+32($sp)
b L.21
L.20:
lw $23,16+32($sp)
L.21:
sw $23,-12+32($sp)
lw $24,4+32($sp)
lw $15,12+32($sp)
ble $24,$15,L.26
lw $22,4+32($sp)
b L.27
L.26:
lw $22,12+32($sp)
L.27:
sw $22,-8+32($sp)
lw $24,8+32($sp)
lw $15,16+32($sp)
ble $24,$15,L.37
lw $21,8+32($sp)
b L.38
L.37:
lw $21,16+32($sp)
L.38:
sw $21,-4+32($sp)
la $8,-16+32($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,0($4)
sw $9,4($4)
lw $3,8($8)
lw $9,12($8)
sw $3,8($4)
sw $9,12($4)
L.5:
lw $21,0($sp)
lw $22,4($sp)
lw $23,8($sp)
lw $30,12($sp)
addu $sp,$sp,32
j $31
.end canonrect
.globl makepoint
.text
.align 2
.ent makepoint
makepoint:
.frame $sp,8,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-8
sw $5,-8+8($sp)
sw $6,-4+8($sp)
la $8,-8+8($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,0($4)
sw $9,4($4)
L.39:
addu $sp,$sp,8
j $31
.end makepoint
.globl makerect
.text
.align 2
.ent makerect
makerect:
.frame $sp,48,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-48
.mask 0x82000000,-24
.cprestore 20
sw $31,24($sp)
sw $4,48($sp)
sw $5,52($sp)
sw $6,56($sp)
sw $7,60($sp)
la $24,-16+48($sp)
la $8,4+48($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,0($24)
sw $9,4($24)
la $24,-8+48($sp)
la $8,12+48($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,0($24)
sw $9,4($24)
lw $4,0+48($sp)
la $8,-16+48($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,4($29)
sw $9,8($29)
lw $3,8($8)
lw $9,12($8)
sw $3,12($29)
sw $9,16($29)
lw $5,4($sp)
lw $6,8($sp)
lw $7,12($sp)
jal canonrect
L.42:
lw $25,20($sp)
lw $31,24($sp)
addu $sp,$sp,48
j $31
.end makerect
.globl ptinrect
.text
.align 2
.ent ptinrect
ptinrect:
.frame $sp,8,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-8
.mask 0x40000000,-8
sw $30,0($sp)
sw $4,8($sp)
sw $5,12($sp)
sw $6,16($sp)
sw $7,20($sp)
lw $24,0+8($sp)
lw $15,8+8($sp)
blt $24,$15,L.53
lw $15,16+8($sp)
bge $24,$15,L.53
lw $24,4+8($sp)
lw $15,12+8($sp)
blt $24,$15,L.53
lw $24,4+8($sp)
lw $15,20+8($sp)
bge $24,$15,L.53
la $30,1
b L.54
L.53:
move $30,$0
L.54:
move $2,$30
L.45:
lw $30,0($sp)
addu $sp,$sp,8
j $31
.end ptinrect
.globl y
.sdata
.align 0
y:
.byte 97
.byte 98
.byte 0
.globl odd
.text
.text
.align 2
.ent odd
odd:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0x82000000,-12
.cprestore 16
sw $31,20($sp)
sw $4,32($sp)
la $24,-3+32($sp)
la $8,0+32($sp)
ulhu $3,0($8)
ush $3,0($24)
lbu $3,2($8)
sb $3,2($24)
la $4,L.56
la $5,-3+32($sp)
jal printf
move $2,$0
L.55:
lw $25,16($sp)
lw $31,20($sp)
addu $sp,$sp,32
j $31
.end odd
.rdata
.align 2
L.58:
.word 0x0
.word 0x0
.align 2
L.59:
.word 0x140
.word 0x140
.align 2
L.60:
.word 0xffffffff
.word 0xffffffff
.word 0x1
.word 0x1
.word 0x14
.word 0x12c
.word 0x1f4
.word 0x190
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,144,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-144
.mask 0xc2000000,-112
.cprestore 24
sw $30,28($sp)
sw $31,32($sp)
la $24,-64+144($sp)
la $8,L.58
lw $3,0($8)
lw $9,4($8)
sw $3,0($24)
sw $9,4($24)
la $24,-72+144($sp)
la $8,L.59
lw $3,0($8)
lw $9,4($8)
sw $3,0($24)
sw $9,4($24)
la $24,-32+144($sp)
la $8,L.60
addu $8,$8,32
addu $10,$24,32
L.76:
addu $8,$8,-8
addu $10,$10,-8
lw $3,0($8)
lw $9,4($8)
sw $3,0($10)
sw $9,4($10)
bltu $24,$10,L.76
la $4,-80+144($sp)
la $24,-10
move $5,$24
move $6,$24
jal makepoint
la $4,-88+144($sp)
la $8,-72+144($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,4($29)
sw $9,8($29)
lw $5,4($sp)
lw $6,8($sp)
la $8,-80+144($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,12($29)
sw $9,16($29)
lw $7,12($sp)
jal addpoint
la $4,-96+144($sp)
la $24,10
move $5,$24
move $6,$24
jal makepoint
la $4,-104+144($sp)
la $8,-64+144($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,4($29)
sw $9,8($29)
lw $5,4($sp)
lw $6,8($sp)
la $8,-96+144($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,12($29)
sw $9,16($29)
lw $7,12($sp)
jal addpoint
la $4,-48+144($sp)
la $8,-88+144($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,4($29)
sw $9,8($29)
lw $5,4($sp)
lw $6,8($sp)
la $8,-104+144($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,12($29)
sw $9,16($29)
lw $7,12($sp)
jal makerect
move $30,$0
b L.64
L.61:
la $4,-56+144($sp)
sll $24,$30,3
la $15,-32+144($sp)
addu $15,$24,$15
lw $5,($15)
la $15,-28+144($sp)
addu $24,$24,$15
lw $6,($24)
jal makepoint
la $4,L.65
sll $24,$30,3
la $15,-32+144($sp)
addu $24,$24,$15
lw $5,($24)
lw $6,-52+144($sp)
jal printf
la $8,-56+144($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,0($29)
sw $9,4($29)
lw $4,0($sp)
lw $5,4($sp)
la $8,-48+144($sp)
lw $3,0($8)
lw $9,4($8)
sw $3,8($29)
sw $9,12($29)
lw $3,8($8)
lw $9,12($8)
sw $3,16($29)
sw $9,20($29)
lw $6,8($sp)
lw $7,12($sp)
jal ptinrect
bne $2,$0,L.68
la $4,L.70
jal printf
L.68:
la $4,L.71
lw $5,-48+144($sp)
lw $6,-44+144($sp)
lw $7,-40+144($sp)
lw $24,-36+144($sp)
sw $24,16($sp)
jal printf
L.62:
la $30,1($30)
L.64:
move $24,$30
la $15,4
bltu $24,$15,L.61
la $8,y
ulhu $3,0($8)
sh $3,0($29)
lbu $3,2($8)
sb $3,2($29)
lw $4,0($sp)
jal odd
move $4,$0
jal exit
move $2,$0
L.57:
lw $25,24($sp)
lw $30,28($sp)
lw $31,32($sp)
addu $sp,$sp,144
j $31
.end main
.rdata
.align 0
L.71:
.byte 119
.byte 105
.byte 116
.byte 104
.byte 105
.byte 110
.byte 32
.byte 91
.byte 37
.byte 100
.byte 44
.byte 37
.byte 100
.byte 59
.byte 32
.byte 37
.byte 100
.byte 44
.byte 37
.byte 100
.byte 93
.byte 10
.byte 0
.align 0
L.70:
.byte 110
.byte 111
.byte 116
.byte 32
.byte 0
.align 0
L.65:
.byte 40
.byte 37
.byte 100
.byte 44
.byte 37
.byte 100
.byte 41
.byte 32
.byte 105
.byte 115
.byte 32
.byte 0
.align 0
L.56:
.byte 37
.byte 115
.byte 10
.byte 0

View file

@ -1,76 +0,0 @@
b = 0x8
f = 0xc
n = 0xa
r = 0xd
t = 0x9
v = 0xb
x = 0x78
f:
x = 0
x = 1
x = 2
x = 2
x = 2
x = 2
x = 2
x = 7
x = 8
x = 9
x = 9
x = 9
x = 9
x = 9
x = 9
x = 9
x = 16
x = 17
x = 18
x = 19
x = 20
g:
1 1
1 2
2 3
2 4
2 5
3 6
d 6
3 7
d 7
3 8
d 8
d 9
d 10
h:
i = 8
i = 16
i = 120
i = 128
i = 248
i = 264
i = 272
i = 280
i = 288
i = 296
i = 304
i = 312
488 defaults
x = 0x1000000
x = 0x2000000
x = 0x3000000
x = 0x4000000
x = 0x5000000
x = 0x6000000 (default)
x = 0x7000000 (default)
0
1
2
3
4
5
0
1
2
3
4
5

View file

@ -1,5 +0,0 @@
tst/switch.c:55: warning: missing return value
tst/switch.c:73: warning: missing return value
tst/switch.c:97: warning: missing return value
tst/switch.c:112: warning: missing return value
tst/switch.c:137: warning: missing return value

View file

@ -1,836 +0,0 @@
.set reorder
.globl main
.text
.text
.align 2
.ent main
main:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2800000,-4
sw $23,16($sp)
.cprestore 20
sw $30,24($sp)
sw $31,28($sp)
la $30,L.6
b L.5
L.2:
lb $4,($30)
jal backslash
move $24,$2
la $4,L.7
lb $5,($30)
move $6,$24
jal printf
L.3:
la $30,1($30)
L.5:
lb $24,($30)
bne $24,$0,L.2
jal f
jal g
jal h
la $23,16777216
b L.11
L.8:
move $4,$23
jal big
L.9:
la $23,16777216($23)
L.11:
and $24,$23,117440512
bne $24,$0,L.8
jal limit
move $2,$0
L.1:
lw $23,16($sp)
lw $25,20($sp)
lw $30,24($sp)
lw $31,28($sp)
addu $sp,$sp,32
j $31
.end main
.globl backslash
.text
.align 2
.ent backslash
backslash:
.frame $sp,0,$31
.set noreorder
.cpload $25
.set reorder
la $24,102
beq $4,$24,L.16
bgt $4,$24,L.22
L.21:
la $24,98
beq $4,$24,L.15
b L.13
L.22:
la $24,110
beq $4,$24,L.17
blt $4,$24,L.13
L.23:
la $24,114
beq $4,$24,L.18
la $24,116
beq $4,$24,L.19
la $24,118
beq $4,$24,L.20
b L.13
L.15:
la $2,8
b L.12
L.16:
la $2,12
b L.12
L.17:
la $2,10
b L.12
L.18:
la $2,13
b L.12
L.19:
la $2,9
b L.12
L.20:
la $2,11
b L.12
L.13:
move $2,$4
L.12:
j $31
.end backslash
.globl f
.text
.align 2
.ent f
f:
.frame $sp,40,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-40
.mask 0xc2c00000,-8
sw $22,16($sp)
sw $23,20($sp)
.cprestore 24
sw $30,28($sp)
sw $31,32($sp)
move $23,$0
la $4,L.25
jal printf
move $30,$0
L.26:
move $22,$30
la $24,1
blt $30,$24,L.30
la $24,20
bgt $30,$24,L.30
sll $24,$30,2
lw $24,L.42-4($24)
.cpadd $24
j $24
.rdata
.align 2
L.42:
.gpword L.32
.gpword L.33
.gpword L.30
.gpword L.30
.gpword L.30
.gpword L.30
.gpword L.34
.gpword L.35
.gpword L.36
.gpword L.30
.gpword L.30
.gpword L.30
.gpword L.30
.gpword L.30
.gpword L.30
.gpword L.37
.gpword L.38
.gpword L.39
.gpword L.40
.gpword L.41
.text
L.32:
move $23,$30
b L.31
L.33:
move $23,$30
b L.31
L.34:
move $23,$30
b L.31
L.35:
move $23,$30
b L.31
L.36:
move $23,$30
b L.31
L.37:
move $23,$30
b L.31
L.38:
move $23,$30
b L.31
L.39:
move $23,$30
b L.31
L.40:
move $23,$30
b L.31
L.41:
move $23,$30
L.30:
L.31:
la $4,L.44
move $5,$23
jal printf
L.27:
la $30,1($30)
la $24,20
ble $30,$24,L.26
move $2,$0
L.24:
lw $22,16($sp)
lw $23,20($sp)
lw $25,24($sp)
lw $30,28($sp)
lw $31,32($sp)
addu $sp,$sp,40
j $31
.end f
.globl g
.text
.align 2
.ent g
g:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-8
.cprestore 16
sw $30,20($sp)
sw $31,24($sp)
la $4,L.46
jal printf
la $30,1
L.47:
la $24,1001
blt $30,$24,L.64
la $24,1004
bgt $30,$24,L.65
sll $24,$30,2
lw $24,L.66-4004($24)
.cpadd $24
j $24
.rdata
.align 2
L.66:
.gpword L.60
.gpword L.60
.gpword L.60
.gpword L.60
.text
L.64:
la $24,1
blt $30,$24,L.51
la $24,8
bgt $30,$24,L.51
sll $24,$30,2
lw $24,L.68-4($24)
.cpadd $24
j $24
.rdata
.align 2
L.68:
.gpword L.53
.gpword L.53
.gpword L.55
.gpword L.55
.gpword L.55
.gpword L.57
.gpword L.57
.gpword L.57
.text
L.65:
la $24,3001
blt $30,$24,L.51
la $24,3004
bgt $30,$24,L.51
sll $24,$30,2
lw $24,L.70-12004($24)
.cpadd $24
j $24
.rdata
.align 2
L.70:
.gpword L.62
.gpword L.62
.gpword L.62
.gpword L.62
.text
L.53:
la $4,L.54
move $5,$30
jal printf
b L.52
L.55:
la $4,L.56
move $5,$30
jal printf
b L.52
L.57:
la $4,L.58
move $5,$30
jal printf
L.51:
la $4,L.59
move $5,$30
jal printf
b L.52
L.60:
la $4,L.61
move $5,$30
jal printf
b L.52
L.62:
la $4,L.63
move $5,$30
jal printf
L.52:
L.48:
la $30,1($30)
la $24,10
ble $30,$24,L.47
move $2,$0
L.45:
lw $25,16($sp)
lw $30,20($sp)
lw $31,24($sp)
addu $sp,$sp,32
j $31
.end g
.globl h
.text
.align 2
.ent h
h:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2800000,-4
sw $23,16($sp)
.cprestore 20
sw $30,24($sp)
sw $31,28($sp)
move $23,$0
la $4,L.73
jal printf
la $30,1
L.74:
la $24,264
beq $30,$24,L.86
bgt $30,$24,L.94
L.93:
la $24,120
beq $30,$24,L.84
bgt $30,$24,L.96
L.95:
la $24,8
beq $30,$24,L.83
blt $30,$24,L.78
L.97:
la $24,16
beq $30,$24,L.82
b L.78
L.96:
la $24,128
beq $30,$24,L.80
blt $30,$24,L.78
L.98:
la $24,248
beq $30,$24,L.87
b L.78
L.94:
la $24,288
beq $30,$24,L.91
bgt $30,$24,L.100
L.99:
la $24,272
beq $30,$24,L.88
blt $30,$24,L.78
L.101:
la $24,280
beq $30,$24,L.85
b L.78
L.100:
la $24,304
beq $30,$24,L.89
bgt $30,$24,L.103
L.102:
la $24,296
beq $30,$24,L.90
b L.78
L.103:
la $24,312
beq $30,$24,L.92
b L.78
L.78:
la $23,1($23)
b L.75
L.80:
la $4,L.81
move $5,$30
jal printf
b L.79
L.82:
la $4,L.81
move $5,$30
jal printf
b L.79
L.83:
la $4,L.81
move $5,$30
jal printf
b L.79
L.84:
la $4,L.81
move $5,$30
jal printf
b L.79
L.85:
la $4,L.81
move $5,$30
jal printf
b L.79
L.86:
la $4,L.81
move $5,$30
jal printf
b L.79
L.87:
la $4,L.81
move $5,$30
jal printf
b L.79
L.88:
la $4,L.81
move $5,$30
jal printf
b L.79
L.89:
la $4,L.81
move $5,$30
jal printf
b L.79
L.90:
la $4,L.81
move $5,$30
jal printf
b L.79
L.91:
la $4,L.81
move $5,$30
jal printf
b L.79
L.92:
la $4,L.81
move $5,$30
jal printf
L.79:
L.75:
la $30,1($30)
la $24,500
ble $30,$24,L.74
la $4,L.104
move $5,$23
jal printf
move $2,$0
L.72:
lw $23,16($sp)
lw $25,20($sp)
lw $30,24($sp)
lw $31,28($sp)
addu $sp,$sp,32
j $31
.end h
.globl big
.text
.align 2
.ent big
big:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-8
.cprestore 16
sw $30,20($sp)
sw $31,24($sp)
sw $4,32($sp)
lw $24,0+32($sp)
and $30,$24,0x6000000
la $15,33554432
beq $30,$15,L.111
bgt $30,$15,L.115
L.114:
la $15,-2
beq $30,$15,L.109
la $15,-1
beq $30,$15,L.109
beq $30,$0,L.109
b L.106
L.115:
move $24,$30
la $15,67108864
beq $24,$15,L.112
b L.106
L.109:
la $4,L.110
lw $5,0+32($sp)
jal printf
b L.107
L.111:
la $4,L.110
lw $5,0+32($sp)
jal printf
b L.107
L.112:
la $4,L.110
lw $5,0+32($sp)
jal printf
b L.107
L.106:
la $4,L.113
lw $5,0+32($sp)
jal printf
L.107:
move $2,$0
L.105:
lw $25,16($sp)
lw $30,20($sp)
lw $31,24($sp)
addu $sp,$sp,32
j $31
.end big
.globl limit
.text
.align 2
.ent limit
limit:
.frame $sp,32,$31
.set noreorder
.cpload $25
.set reorder
addu $sp,$sp,-32
.mask 0xc2000000,-8
.cprestore 16
sw $30,20($sp)
sw $31,24($sp)
la $30,-2147483648
L.117:
la $24,-2147483648
blt $30,$24,L.121
la $15,-2147483644
bgt $30,$15,L.121
sll $15,$30,2
sll $24,$24,2
subu $24,$15,$24
lw $24,L.134($24)
.cpadd $24
j $24
.rdata
.align 2
L.134:
.gpword L.123
.gpword L.125
.gpword L.127
.gpword L.129
.gpword L.131
.text
L.123:
la $4,L.124
jal printf
b L.122
L.125:
la $4,L.126
jal printf
b L.122
L.127:
la $4,L.128
jal printf
b L.122
L.129:
la $4,L.130
jal printf
b L.122
L.131:
la $4,L.132
jal printf
b L.122
L.121:
la $4,L.133
jal printf
L.122:
L.118:
la $30,1($30)
la $24,-2147483643
ble $30,$24,L.117
la $30,2147483647
L.135:
la $24,2147483643
blt $30,$24,L.139
la $15,2147483647
bgt $30,$15,L.139
sll $15,$30,2
sll $24,$24,2
subu $24,$15,$24
lw $24,L.146($24)
.cpadd $24
j $24
.rdata
.align 2
L.146:
.gpword L.145
.gpword L.144
.gpword L.143
.gpword L.142
.gpword L.141
.text
L.141:
la $4,L.124
jal printf
b L.140
L.142:
la $4,L.126
jal printf
b L.140
L.143:
la $4,L.128
jal printf
b L.140
L.144:
la $4,L.130
jal printf
b L.140
L.145:
la $4,L.132
jal printf
b L.140
L.139:
la $4,L.133
jal printf
L.140:
L.136:
subu $30,$30,1
la $24,2147483642
bge $30,$24,L.135
move $2,$0
L.116:
lw $25,16($sp)
lw $30,20($sp)
lw $31,24($sp)
addu $sp,$sp,32
j $31
.end limit
.rdata
.align 0
L.133:
.byte 53
.byte 10
.byte 0
.align 0
L.132:
.byte 52
.byte 10
.byte 0
.align 0
L.130:
.byte 51
.byte 10
.byte 0
.align 0
L.128:
.byte 50
.byte 10
.byte 0
.align 0
L.126:
.byte 49
.byte 10
.byte 0
.align 0
L.124:
.byte 48
.byte 10
.byte 0
.align 0
L.113:
.byte 120
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 32
.byte 40
.byte 100
.byte 101
.byte 102
.byte 97
.byte 117
.byte 108
.byte 116
.byte 41
.byte 10
.byte 0
.align 0
L.110:
.byte 120
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 10
.byte 0
.align 0
L.104:
.byte 37
.byte 100
.byte 32
.byte 100
.byte 101
.byte 102
.byte 97
.byte 117
.byte 108
.byte 116
.byte 115
.byte 10
.byte 0
.align 0
L.81:
.byte 105
.byte 32
.byte 61
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.73:
.byte 104
.byte 58
.byte 10
.byte 0
.align 0
L.63:
.byte 54
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.61:
.byte 53
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.59:
.byte 100
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.58:
.byte 51
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.56:
.byte 50
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.54:
.byte 49
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.46:
.byte 103
.byte 58
.byte 10
.byte 0
.align 0
L.44:
.byte 120
.byte 32
.byte 61
.byte 32
.byte 37
.byte 100
.byte 10
.byte 0
.align 0
L.25:
.byte 102
.byte 58
.byte 10
.byte 0
.align 0
L.7:
.byte 37
.byte 99
.byte 32
.byte 61
.byte 32
.byte 48
.byte 120
.byte 37
.byte 120
.byte 10
.byte 0
.align 0
L.6:
.byte 98
.byte 102
.byte 110
.byte 114
.byte 116
.byte 118
.byte 120
.byte 0

View file

@ -1,74 +0,0 @@
5 a
2 and
5 buf
16 c
8 char
1 compare
4 cond
5 count
1 d
1 die
3 else
1 entry
1 eof
4 err
1 error
1 exit
1 folded
1 for
1 free
1 frequencies
1 frequency
1 get
2 getchar
3 getword
14 if
2 in
1 index
1 input
1 install
8 int
1 into
1 is
4 isletter
1 it
1 itself
5 left
1 letter
7 lookup
1 main
2 malloc
1 message
2 n
1 necessary
12 next
9 node
4 of
1 on
1 or
1 otherwise
2 out
8 p
3 print
2 printf
16 return
5 right
4 root
25 s
2 storage
3 strcmp
1 strcpy
1 strlen
8 struct
1 structures
2 subtree
1 t
5 tprint
9 tree
1 uses
1 version
1 wf
3 while
21 word
9 words
2 z

Some files were not shown because too many files have changed in this diff Show more