Hi guys,

I was just wondering if there's a real implementation that actually
implements the l.mul and l.mulu instructions correctly, including the OV
and CY flags, and if any software actually uses them.

GCC doesn't use them (from a quick glance at the or1k.md), so if anyone
actually uses them it would have to be assembly code.

Would anyone be bothered if the CY flag was never set by the l.mul and
l.mulu instructions, and instead, the OV flag was set for signed overflow
in the case of l.mul, and for unsigned overflow in the case of l.mulu?

Changing it like this makes more sense to me, and makes the OVE flag more
useful, since right now there's no way to cause a trap when multiplying two
unsigned values whose product won't fit in 32-bits.

-Pete
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to