* Problem with goto's saxpy and daxpy
@ 1998-11-26 5:00 Tony Hoffmann
1998-11-26 5:00 ` Joachim Wesner
0 siblings, 1 reply; 5+ messages in thread
From: Tony Hoffmann @ 1998-11-26 5:00 UTC (permalink / raw)
I found that goto's saxpy and daxpy were not working when I built
the LAPACK
RPM package on my benchmark machine. The code appears to check float
register 3 and take an exit branchline if equal to zero. (at least I
assume that what
fbeq $f3, $Exit does.). Anyways commenting the instruction out appears
to
fix the problem. saxpy and daxpy then work correctly.
Am I missing something here?
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Problem with goto's saxpy and daxpy
1998-11-26 5:00 Problem with goto's saxpy and daxpy Tony Hoffmann
@ 1998-11-26 5:00 ` Joachim Wesner
1998-11-27 5:00 ` Johannes G.D. Hausmann
0 siblings, 1 reply; 5+ messages in thread
From: Joachim Wesner @ 1998-11-26 5:00 UTC (permalink / raw)
Tony Hoffmann wrote:
>
> I found that goto's saxpy and daxpy were not working when I built
> the LAPACK
> RPM package on my benchmark machine. The code appears to check float
> register 3 and take an exit branchline if equal to zero. (at least I
> assume that what
> fbeq $f3, $Exit does.). Anyways commenting the instruction out appears
> to
> fix the problem. saxpy and daxpy then work correctly.
>
> Am I missing something here?
Yep, it seems to be a typing error.
I looked in the code and it seems that it has to be $f30 instead of $f3.
This way he checks if da equals zero, which essentually is a NOP for
xAXPY, so the code can return immediately.
$f3 usually is a register, that has to be retained from the calling
routine (the code does save it), and as long as it not happens to have a
value of zero by accident, the code worked.
Joachim Wesner
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Problem with goto's saxpy and daxpy
1998-11-26 5:00 ` Joachim Wesner
@ 1998-11-27 5:00 ` Johannes G.D. Hausmann
1998-11-27 5:00 ` Joachim Wesner
0 siblings, 1 reply; 5+ messages in thread
From: Johannes G.D. Hausmann @ 1998-11-27 5:00 UTC (permalink / raw)
Hi,
> > I found that goto's saxpy and daxpy were not working when I built
> > the LAPACK
In what way not working?
[snip]
> I looked in the code and it seems that it has to be $f30 instead of $f3.
> This way he checks if da equals zero, which essentually is a NOP for
> xAXPY, so the code can return immediately.
>
> $f3 usually is a register, that has to be retained from the calling
> routine (the code does save it), and as long as it not happens to have a
> value of zero by accident, the code worked.
>
If Kazushige-san doesn't have the time to put up another libaxpy, I'll
patch it in the lapackrpm thing.
Jo
--
-----------------------------------------
Johannes Hausmann
Carl von Ossietzky Universitaet Oldenburg
FB Physik -- AG Komplexe Systeme
EMail : joe@neuro.uni-oldenburg.de
-----------------------------------------
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1998-11-28 5:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-11-26 5:00 Problem with goto's saxpy and daxpy Tony Hoffmann
1998-11-26 5:00 ` Joachim Wesner
1998-11-27 5:00 ` Johannes G.D. Hausmann
1998-11-27 5:00 ` Joachim Wesner
1998-11-28 5:00 ` Johannes G.D. Hausmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox