]> git.ipfire.org Git - thirdparty/qemu.git/commit
tcg/mips: implement rotl/rotr ops on MIPS32R2
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 21 Sep 2012 16:20:26 +0000 (18:20 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Oct 2012 06:42:09 +0000 (01:42 -0500)
commita8067da5d1e31a1232eb836d351057ceb79161dc
tree645fd26aca4aa25ba8b6ea927a5599547c7f588e
parent3b63392482a72f89e08dbbd221f56fda8907803c
tcg/mips: implement rotl/rotr ops on MIPS32R2

rotr operations can be optimized on MIPS32 Release 2 using the ROTR and
ROTRV instructions. Also implemented rotl operations by subtracting the
shift from 32.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tcg/mips/tcg-target.c
tcg/mips/tcg-target.h