[mips-gnu-discuss] unsigned short is sign extended in 34K DSP-ASE support
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mips-gnu-discuss] unsigned short is sign extended in 34K DSP-ASE support



Hi All,

I am getting a problem with using the unsigned short arrays. When accessing
the array in a loop using a variable counter, the compiler generated
assembly incorporates LHX instruction. This instruction performs a 16 bit
sign extend, thus treating the unsigned short as a signed one.

Can anyone tell me how to disable this instruction for being used for
unsigned shorts, and if not, then how to overall disable this instruction.

Thanks in advance,
Sachin