[Info-vax] Native compilers
John Reagan
xyzzy1959 at gmail.com
Tue Mar 8 14:33:48 EST 2022
On Tuesday, March 8, 2022 at 2:08:12 PM UTC-5, Simon Clubley wrote:
> On 2022-03-08, abrsvc <dansabr... at yahoo.com> wrote:
> > Does is make sense to increment R7 at all? It seems that this step should be eliminated as it will be overwritten anyway.
> >
> Is it a strange way to set or clear some CPU flags ?
>
> Of course, what I would be looking at is the surrounding source code
> to see what the other register should _really_ have been instead of R7. :-)
> Simon.
>
> --
> Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
> Walking destinations on a map are further away than they appear.
It was the last use of the pointer so they reused R7 as the destination.
I suspect they cut-n-pasted earlier code (ie, MOVL (R7)+, R3), changed the
dest to R7 and didn't care/bother with the autoinc. As I said, the autoinc is tossed
by the Alpha and Itanium compilers. We had a bug for x86.
More information about the Info-vax
mailing list