2 Right shift of negative values is implementation-defined by SDCC to arithmetic right shift.
17 ASSERT(func( x
>> 8 ) == -4);
18 ASSERT(func( x
/ 256 ) == -4);
22 testOtherSignedShifts(void)
27 ASSERT(left
>> 3 == (-2345>>3));
28 ASSERT(left
>> 8 == (-2345>>8));
29 ASSERT(left
>> 9 == (-2345>>9));
33 testShiftByParam(void)
35 volatile int left
, count
;
40 ASSERT(left
>> count
== (-2345>>3));
42 ASSERT(left
>> count
== (-2345>>8));
44 ASSERT(left
>> count
== (-2345>>9));