Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • Q qemu
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • Xing Lin
  • qemu
  • Repository
  • qemu
  • target-arm
  • translate.c
Find file BlameHistoryPermalink
  • Christophe Lyon's avatar
    Support saturation with shift=0. · 40d3c433
    Christophe Lyon authored Jan 19, 2011
    
    
    This patch fixes corner-case saturations, when the target range is
    zero. It merely removes the guard against (sh == 0), and makes:
    __ssat(0x87654321, 1) return 0xffffffff and set the saturation flag
    __usat(0x87654321, 0) return 0 and set the saturation flag
    
    Signed-off-by: default avatarChristophe Lyon <christophe.lyon@st.com>
    Reviewed-by: default avatarPeter Maydell <peter.maydell@linaro.org>
    Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
    40d3c433