> This appears to be a bug in the IR Optimizer (opts on). I think you
> are correct, it should be muls.w. I will log this bug. In the meantime, I
> would suggest a couple extra lines of code to work around this bug:
>
> unsigned long test (unsigned long x, signed short y, signed short z)
> {
> unsigned long tm;
> signed long f;
>
> f = (signed long) (y - z) * 10;
> tm = x + f;
> return tm;
> }
Thanks for logging it. This is what I ended up using:
return x + ((signed long) y - (signed long) z) * 10;
Stephen Best
Bitware Australia
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html