Technical information

Operating Precautions for CPDW9X/NT-CDR-V85X, Y-GHS-MULTI-V800
TM
Customer Notification r20tu0003ed1812 55
No. a39
In case of redundant load, an unsigned load is considered unnecessary in case a signed
load to the same location was previously done.
ASM- Code:
_sub:
movea 128,zero,r2
mov 0,r10
.L6:
-- if(1 & *res) ld.b 0[r6],r17 -- signed load
mov r17,r16
shr 1,r16
bnl .L7
mov r2,r10
.L7:
sar 1,r2
-- *res >>= 1; shr 1,r17 -- doesn’t reload the value as unsigned.
st.b r17,0[r6]
cmp zero,r2
bne .L6
Command Sequence
ccv850e Ospace test.c
ccv850e Ospace
Workaround
A new compiler Ver. 4.05c, which fixes this problem, can be downloaded from the NEC WEB
page(s) at http://www.renesas.eu/updates?id=443