Skip to content
Snippets Groups Projects
Commit 8d745875 authored by Stefan Brankovic's avatar Stefan Brankovic Committed by David Gibson
Browse files

target/ppc: Fix for optimized vsl/vsr instructions


In previous implementation, invocation of TCG shift function could request
shift of TCG variable by 64 bits when variable 'sh' is 0, which is not
supported in TCG (values can be shifted by 0 to 63 bits). This patch fixes
this by using two separate invocation of TCG shift functions, with maximum
shift amount of 32.

Name of variable 'shifted' is changed to 'carry' so variable naming
is similar to old helper implementation.

Variables 'avrA' and 'avrB' are replaced with variable 'avr'.

Fixes: 4e6d0920
Reported-by: default avatar"Paul A. Clark" <pc@us.ibm.com>
Reported-by: default avatarMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Suggested-by: default avatarAleksandar Markovic <aleksandar.markovic@rt-rk.com>
Signed-off-by: default avatarStefan Brankovic <stefan.brankovic@rt-rk.com>
Message-Id: <1570196639-7025-2-git-send-email-stefan.brankovic@rt-rk.com>
Tested-by: default avatarPaul A. Clarke <pc@us.ibm.com>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent e6144bf9
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment