* Scimark 2.0 LU.c regression - matrices
@ 2004-09-23 16:11 Uros Bizjak
2004-09-23 19:41 ` Giovanni Bajo
0 siblings, 1 reply; 2+ messages in thread
From: Uros Bizjak @ 2004-09-23 16:11 UTC (permalink / raw)
To: gcc
Hello!
Comparing asm code from LU.c source (scimark-2.0):
With "GCC: (GNU) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)" the inner loop
of LU_copy_matrix() function looks like:
.L59:
xorl %eax, %eax
cmpl %esi, %eax
jge .L63
movl 16(%ebp), %edi
movl (%edi,%ebx,4), %ecx
movl 20(%ebp), %edi
movl (%edi,%ebx,4), %edx
.L58:
fldl (%edx,%eax,8)
fstpl (%ecx,%eax,8)
addl $1, %eax
cmpl %esi, %eax
jl .L58
.L63:
addl $1, %ebx
cmpl 8(%ebp), %ebx
jl .L59
and with "GCC: (GNU) 4.0.0 20040923 (experimental)":
.L6:
movl 12(%ebp), %eax
testl %eax, %eax
jle .L8
movl (%esi), %ecx
movl (%ebx), %edx
xorl %eax, %eax
.L7:
fldl (%ecx)
fstpl (%edx)
addl $1, %eax
addl $8, %ecx
addl $8, %edx
cmpl %eax, 12(%ebp)
jg .L7
.L8:
addl $1, %edi
addl $4, %esi
addl $4, %ebx
cmpl %edi, 8(%ebp)
jg .L6
There is something wrong with memory references in gcc-4.0.0 code. Look
at .L7 loop in gcc-4.0's asm and corresponding .L58 in gcc-3.2's asm,
movl, fldl and fstpl instructions.
Uros.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Scimark 2.0 LU.c regression - matrices
2004-09-23 16:11 Scimark 2.0 LU.c regression - matrices Uros Bizjak
@ 2004-09-23 19:41 ` Giovanni Bajo
0 siblings, 0 replies; 2+ messages in thread
From: Giovanni Bajo @ 2004-09-23 19:41 UTC (permalink / raw)
To: Uros Bizjak; +Cc: gcc
Uros Bizjak wrote:
> Comparing asm code from LU.c source (scimark-2.0):
> There is something wrong with memory references in gcc-4.0.0 code. Look
> at .L7 loop in gcc-4.0's asm and corresponding .L58 in gcc-3.2's asm,
> movl, fldl and fstpl instructions.
Can you extract a small source code from that file/function, and file a bug
report about it? So that we keep track of this and get it fixed before the
release.
Giovanni Bajo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-09-23 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-23 16:11 Scimark 2.0 LU.c regression - matrices Uros Bizjak
2004-09-23 19:41 ` Giovanni Bajo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).