diff options
author | Tom Musta <tommusta@gmail.com> | 2014-08-12 08:45:04 -0500 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-09-08 12:50:50 +0200 |
commit | 1c0a150f4bb60ce9af7b4b10f0deabdea1b22f93 (patch) | |
tree | 6f12b6b20b0a84d788726b4c18676f9926c2e56d /linux-user/m68k | |
parent | a7f23d0f8bfbe76864a6427c0e21fe794ab9b7ef (diff) |
target-ppc: Bug Fix: rlwnm
The rlwnm specification includes the ROTL32 operation, which is defined
to be a left rotation of two copies of the least significant 32 bits of
the source GPR.
The current implementation is incorrect on 64-bit implementations in that
it rotates a single copy of the least significant 32 bits, padding with
zeroes in the most significant bits.
Fix the code to properly implement this ROTL32 operation.
Example:
R3 = 0000000000000002
R4 = 7FFFFFFFFFFFFFFF
rlwnm 3,3,4,31,16
R3 expected : 0000000100000001
R3 actual : 0000000000000001 (without this patch)
Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'linux-user/m68k')
0 files changed, 0 insertions, 0 deletions