Technical information

Operating Precautions for CPDW9X/NT-CDR-V85X, Y-GHS-MULTI-V800
TM
Customer Notification r20tu0003ed1812 54
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.
Version Information
V4.0.5
Details
When a signed load is already done on a variable, the compiler considers unnecessary to do an
unsigned load:
Example:
test.c
int sub(unsigned char *res)
{
int i = 0x80, j = 0;
while (i != 0)
{
if(1 & *res)
j = i;
i >>= 1;
*res >>= 1;
}
return j;
}