Re:The Performance Cost of Integer Overflow Checking
by solarexplorer on Thursday December 18, 2014 @04:48AM
(#8766651)
Yes, AMD should have added it to x64. It isn't exactly new either. The Alpha's integer instructions had a bit in the instruction word that indicated if an overflow should cause a trap or not. IMHO that is the ideal solution.
[ Parent
| on HN ]
Re:The Performance Cost of Integer Overflow Checking
by thesz on Thursday December 18, 2014 @10:51AM
(#8767791)
No, it is not an ideal solution. It causes decrease in clock frequency for about 10% (or you have to make your design noticeably more complex).
The trap in Alpha ISA was done for MIPS compatibility reasons (Alpha was more or less MIPS assembly compatible).