qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] 29851e: target-mips: fix calculation of overf


From: GitHub
Subject: [Qemu-commits] [qemu/qemu] 29851e: target-mips: fix calculation of overflow for SHLL....
Date: Fri, 03 May 2013 03:00:09 -0700

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: 29851ee7c8bd3fb8542e21cd0270c73132590350
      
https://github.com/qemu/qemu/commit/29851ee7c8bd3fb8542e21cd0270c73132590350
  Author: Petar Jovanovic <address@hidden>
  Date:   2013-05-03 (Fri, 03 May 2013)

  Changed paths:
    M target-mips/dsp_helper.c
    M tests/tcg/mips/mips32-dsp/shll_ph.c
    M tests/tcg/mips/mips32-dsp/shll_qb.c

  Log Message:
  -----------
  target-mips: fix calculation of overflow for SHLL.PH and SHLL.QB

This change corrects and simplifies how discard is calculated for shift
left logical vector instructions. It is used to detect overflow and set bit
22 in the DSPControl register.

The existing tests (shll_ph.c, shll_qb.c) are extended with the corner cases
that expose incorrectness in the previous implementation.

Signed-off-by: Petar Jovanovic <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]