This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug sim/11284] MADDU instruction increments ACX if non-carry


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]