This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: m68k stuff
- To: law at cygnus dot com
- Subject: Re: m68k stuff
- From: Kate Hedstrom <kate at ahab dot rutgers dot edu>
- Date: Fri, 14 Aug 1998 12:13:21 -0400 (EDT)
- Cc: egcs at cygnus dot com
> Looking over the gcc test results for m68k-sun-sunos4.1, I see one
> gcc regression. compile/950612-1.c.
>
> I built a cross compiler for m68k-sun-sunos4.1 and tried the test
> and it worked fine.
>
> Do you still have the build dir for your m68k 19980727 directory
> lying around? Any chance I could get you to send me the gcc.log
> file. Or better yet, can you look in the log file and find out
> why dejagnu thought compile/950612-1.c failed at -O2 optimization
> levels?
I no longer have the original log file, but I can reproduce the
problem:
skink% gcc 950612-1.c -w -O2 -c --save-temps
950612-1.s: Assembler messages:
950612-1.s:182: Error: operands mismatch -- statement `addl a6@(-160),a6@(-132)' ignored
950612-1.s:195: Error: operands mismatch -- statement `addl a6@(-172),a6@(-136)' ignored
The assembly file is below.
Kate
#NO_APP
gcc2_compiled.:
___gnu_compiled_c:
.text
LC0:
.ascii "shift = %d\12\0"
LC1:
.ascii "%08lx.%08lx\12\0"
.even
.globl _f
_f:
link a6,#-200
moveml #0x3f3c,sp@-
movel a6@(8),a3
movel a6,a4
clrl a6@(-136)
clrl a6@(-132)
.even
L2:
movew a3@+,a0
moveq #11,d4
cmpl a0,d4
jcs L5
LI36:
movew pc@(L36-LI36-2:b,a0:l:2),d0
jmp pc@(2,d0:w)
.even
L36:
.word L6-L36
.word L7-L36
.word L8-L36
.word L9-L36
.word L10-L36
.word L11-L36
.word L12-L36
.word L13-L36
.word L17-L36
.word L18-L36
.word L34-L36
.word L35-L36
.even
L6:
movel a6@(-132),a4@-
movel a6@(-136),a4@-
movew a3@+,a1
movel a1,a6@(-136)
clrl a6@(-132)
jra L5
.even
L7:
movel a6@(-136),d5
smi d4
extbl d4
movel a6@(-136),d3
addl d3,d3
movel a6@(-132),d2
addl d2,d2
subxl d2,d2
negl d2
movel d3,d1
orl d2,d1
movel a6@(-136),d0
addl d0,d0
subxl d0,d0
negl d0
clrl d0
andl #1,d1
movel d5,d0
addl d1,d0
jra L38
.even
L8:
movew a3@+,d4
extl d4
addl d4,a6@(-136)
jra L5
.even
L9:
movel a4@+,d6
movel a4@+,d7
jra L39
.even
L10:
movew a3@+,d6
extl d6
subl d6,a6@(-136)
jra L5
.even
L11:
movel a4@+,d6
movel a4@+,d7
movel a6@(-136),d4
subl a6@(-132),d7
subxl d4,d6
movel d6,a6@(-136)
movel d7,a6@(-132)
jra L5
.even
L12:
movew a3@+,d1
extl d1
smi d0
extbl d0
movel a6@(-132),d6
mulul d1,d7:d6
movel d6,a6@(-140)
movel d7,a6@(-144)
movel a6@(-132),d2
mulsl d0,d2
addl d2,a6@(-144)
movel a6@(-136),d0
mulsl d1,d0
addl d0,a6@(-144)
movel a6@(-144),a6@(-136)
movel a6@(-140),a6@(-132)
movel a6@(-136),a6@(-144)
movel a6@(-132),a6@(-140)
jra L5
.even
L13:
clrb a6@(-191)
movel a4@+,a6@(-152)
movel a4@+,a6@(-148)
tstl a6@(-152)
jpl L14
st a6@(-191)
negl a6@(-148)
negxl a6@(-152)
L14:
tstl a6@(-136)
jpl L15
notb a6@(-191)
negl a6@(-132)
negxl a6@(-136)
L15:
clrl d2
moveq #-1,d3
movel a6@(-136),a6@(-200)
movel a6@(-132),a6@(-196)
andl d2,a6@(-200)
andl d3,a6@(-196)
movel a6@(-152),d0
movel a6@(-148),d1
andl d2,d0
andl d3,d1
movel a6@(-196),d4
mulul d1,d6:d4
movel d4,a6@(-156)
movel d6,a6@(-160)
movel a6@(-196),d2
mulsl d0,d2
addl d2,a6@(-160)
movel a6@(-200),d2
mulsl d1,d2
addl d2,a6@(-160)
movel a6@(-136),d3
clrl d2
movel d3,d7
mulul d1,d4:d7
movel d7,a6@(-164)
movel d4,a6@(-168)
movel d3,d6
mulsl d0,d6
addl d6,a6@(-168)
movel d1,d0
mulsl d2,d0
addl d0,a6@(-168)
movel a6@(-168),a6@(-136)
movel a6@(-164),a6@(-132)
movel a6@(-200),d6
movel a6@(-196),d7
addl d7,a6@(-132)
movel a6@(-136),d4
addxl d6,d4
movel d4,a6@(-136)
movel a6@(-152),d1
clrl d0
addl d1,a6@(-132)
movel a6@(-136),d6
addxl d0,d6
movel d6,a6@(-136)
addl a6@(-160),a6@(-132)
negxl a6@(-136)
negl a6@(-136)
movel d3,d7
mulul d1,d4:d7
movel d7,a6@(-172)
movel d4,a6@(-176)
movel d3,d6
mulsl d0,d6
addl d6,a6@(-176)
movel d1,d0
mulsl d2,d0
addl d0,a6@(-176)
addl a6@(-172),a6@(-136)
tstb a6@(-191)
jeq L5
negl a6@(-132)
negxl a6@(-136)
jra L5
.even
L17:
movew a3@+,d3
extl d3
smi d2
extbl d2
movew d2,d0
moveq #15,d7
lsrw d7,d0
addw d2,d0
asrw #1,d0
movew d0,d1
extl d1
smi d0
extbl d0
movel d3,sp@-
movel d2,sp@-
movel a6@(-136),d6
movel a6@(-132),d7
addl d1,d7
addxl d0,d6
movel d7,sp@-
movel d6,sp@-
jbsr ___divdi3
lea sp@(16),sp
movel d0,a6@(-136)
movel d1,a6@(-132)
jra L5
.even
L18:
clrb a6@(-177)
movel a4@+,a6@(-190)
movel a4@+,a6@(-186)
tstl a6@(-190)
jpl L19
st a6@(-177)
negl a6@(-186)
negxl a6@(-190)
L19:
tstl a6@(-136)
jpl L20
notb a6@(-177)
negl a6@(-132)
negxl a6@(-136)
L20:
movel a6@(-136),d7
orl a6@(-132),d7
jne L21
movel #2147483647,a6@(-136)
movel #-1,a6@(-132)
jra L22
.even
L21:
movel a6@(-136),d0
movel a6@(-132),d1
clrl d0
movel a6@(-136),d3
clrl d2
lea ___udivdi3,a2
movel d0,d4
orl d1,d4
jne L23
movel d3,sp@-
movel d2,sp@-
movel a6@(-186),sp@-
movel a6@(-190),sp@-
jbsr a2@
lea sp@(16),sp
movel d0,a6@(-136)
movel d1,a6@(-132)
jra L22
.even
L23:
lea ___umoddi3,a5
movel d2,d6
orl d3,d6
jne L25
movel a6@(-132),sp@-
movel a6@(-136),sp@-
movel a6@(-186),sp@-
movel a6@(-190),sp@-
jbsr a2@
lea sp@(16),sp
movel d0,d2
movel d1,d3
movel d3,d2
clrl d3
movel a6@(-132),sp@-
movel a6@(-136),sp@-
movel a6@(-186),sp@-
movel a6@(-190),sp@-
jbsr a5@
lea sp@(16),sp
movel a6@(-132),sp@-
movel a6@(-136),sp@-
clrl sp@-
movel d1,sp@-
jbsr a2@
lea sp@(16),sp
addl d1,d3
addxl d0,d2
movel d2,a6@(-136)
movel d3,a6@(-132)
jra L22
.even
L25:
moveb #32,a6@(-200)
movel d3,d2
lea _printf,a0
jlt L28
clrl d1
.even
L29:
subqb #1,a6@(-200)
jeq L28
moveb a6@(-200),d1
moveq #32,d0
subl d1,d0
bftst d2{d0:#1}
jeq L29
L28:
clrl d7
moveb a6@(-200),d7
movel d7,sp@-
pea LC0
jbsr a0@
movel a6@(-132),sp@-
movel a6@(-136),sp@-
movel a6@(-186),sp@-
movel a6@(-190),sp@-
jbsr a2@
lea sp@(16),sp
movel d0,d3
movel d1,d4
movel d4,d3
clrl d4
movel a6@(-132),sp@-
movel a6@(-136),sp@-
movel a6@(-186),sp@-
movel a6@(-190),sp@-
jbsr a5@
lea sp@(16),sp
moveq #32,d2
subl d7,d2
movel d2,sp@-
movel d1,sp@-
movel d0,sp@-
jbsr ___ashldi3
lea sp@(12),sp
movel d0,d5
movel d1,d6
movel d7,sp@-
movel a6@(-132),sp@-
movel a6@(-136),sp@-
jbsr ___lshrdi3
lea sp@(12),sp
movel d1,sp@-
movel d0,sp@-
lsrl #1,d0
roxrl #1,d1
addl d1,d6
addxl d0,d5
movel d6,sp@-
movel d5,sp@-
jbsr a2@
lea sp@(16),sp
addl d1,d4
addxl d0,d3
movel d3,a6@(-136)
movel d4,a6@(-132)
addql #8,sp
L22:
tstb a6@(-177)
jeq L5
negl a6@(-132)
negxl a6@(-136)
jra L5
.even
L34:
clrl d6
moveq #1,d7
jra L39
.even
L35:
moveq #-1,d6
moveq #-1,d7
L39:
addl d7,a6@(-132)
movel a6@(-136),d4
addxl d6,d4
movel d4,a6@(-136)
L5:
movel a6@(-132),sp@-
movel a6@(-136),sp@-
pea LC1
jbsr _printf
lea sp@(12),sp
jra L2
.even
L38:
moveml a6@(-240),#0x3cfc
unlk a6
rts