(forwarding this question)
This code
j = --i + i--;
Is transformed into this (pseudo)WHIRL:
STID(i) - ADD - LDID(i) ; this is the side
\ INTCONST(-1); effect of the --i expression
STID(preg_I4) - LDID(i)
To: open64-devel
Subject: [Open64-devel] WHIRL question
(forwarding this question)
This code
j = --i + i--;
Is transformed into this (pseudo)WHIRL:
STID(i) - ADD - LDID(i) ; this is the side
\ INTCONST(-1); effect of the --i
[mailto:doug.gilm...@amd.com]
Sent: Wednesday, September 29, 2010 10:39 AM
To: C. Bergström; open64-devel
Subject: Re: [Open64-devel] WHIRL question
I suspect that the translation is done in a way that that ensures correctness.
The temp is not needed in your example, but it is needed for:
j = i