Sender: jkf AT user DOT jkf Message-ID: <3A3A48DB.5E8947E4@penguinpowered.com> Date: Fri, 15 Dec 2000 17:37:47 +0100 From: Martijn X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.2.16-22smp i686) X-Accept-Language: en MIME-Version: 1.0 To: pgcc AT delorie DOT com Subject: Re: pgcc generates invalid asm code References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: pgcc AT delorie DOT com Tuukka Toivonen wrote: > Problem: Pentium GCC generates assembly like the following: > > .L868: > movl 120(%esp),%eax > addl %edx,%eax > movd %eax,%mm0 > pslld $4,%mm0 > <84>, > movd %eax,%mm1 > psubd %mm1,%mm0 > movd %mm0,%edx > sall $3,%edx > testl %ebp,%ebp > je .L938 > > and as you can see there are invalid characters there. And the assembler > complains, of course (ie. there are ASCII characters #84, #AD and #FB). > > Most files in the program were compiled successfully, but this file > produced the above string <84>, twice in the 7000 line asm file. > > It happened only when I tried using the -mmx switch. > > Programs I'm using: > > GNU assembler 2.9.5 > 774574 Nov 17 14:20 gcc-2.95.2-pgcc-2.95.3.diff > 12885815 Dec 7 14:22 gcc-2.95.2.tar.gz > > Command line: > > -s -O3 -fomit-frame-pointer -Wall -mpentiumpro -march=pentiumpro > -malign-functions=4 -funroll-loops -fexpensive-optimizations > -malign-double -fschedule-insns2 -mwide-multiply -mmx > > Red Hat 6.2 equivalent system. > > By the way, the same happens also with Athlon GCC (which is patch against > the pgcc). I had the same problem when using -mmx, not using -mmx "solved" the problem