This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug sim/11284] MADDU instruction increments ACX if non-carry
- From: "kiyoshi dot coquser at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 16 Feb 2010 07:03:55 -0000
- Subject: [Bug sim/11284] MADDU instruction increments ACX if non-carry
- References: <20100215060644.11284.kiyoshi.coquser@gmail.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From kiyoshi dot coquser at gmail dot com 2010-02-16 07:03 -------
I also found following issues:
1. -- MULT break ACX --
TEST_MULT:
li $t0, 1 /* T0 = 1 */
mthi $t0 /* HI = T0 */
mtlo $0 /* LO = 0 */
mtlhx $0 /* ACX|HI|LO <<= 32 */
mult $t0, $t0 /* HI|LO = T0 * T0 */
mflhxu $0 /* ACX|HI|LO >>= 32 */
CHECKPOINT1:
/* HI == 0 (HI SHOUD BE 1) */
2. -- MULTU ignore ACX --
TEST_MULTU:
li $t0, 1 /* T0 = 1 */
mthi $t0 /* HI = T0 */
mtlo $0 /* LO = 0 */
mtlhx $0 /* ACX|HI|LO <<= 32 */
multu $t0, $t0 /* ACX|HI|LO = T0 * T0 */
mflhxu $0 /* ACX|HI|LO >>= 32 */
CHECKPOINT2:
/* HI == 1 (HI SHOUD BE 0) */
The patch attached to this report will fix these issues.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11284
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.