powerpc 64-bit multiplication bug
Original Reporter info from Mantis: nickysn @nickysn
-
Reporter name: Nikolay Nikolov
Original Reporter info from Mantis: nickysn @nickysn
- Reporter name: Nikolay Nikolov
Description:
On 32-bit powerpc, multiplying two int64 numbers, that are converted from dwords, produces an incorrect value, if one of these dwords is larger than 2**31-1. The attached program illustrates the bug. Additionally, if overflow checking is on (if you change the {R-}{
Q-} line to {R+}{
Q+}), the multiplication causes an overflow error, which is also wrong.
Mantis conversion info:
- Mantis ID: 30035
- Platform: powerpc
- Version: 3.0.0
- Fixed in version: 3.1.1
- Fixed in revision: 33539 (#1850cb4c)
- Monitored by: » Vincent (Vincent Snijders)