OSDN Git Service

target-sh4: optimize swap.w
authorAurelien Jarno <aurelien@aurel32.net>
Sun, 16 Sep 2012 11:12:20 +0000 (13:12 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 21 Sep 2012 17:53:16 +0000 (19:53 +0200)
commitc53b36d210a55c67eca3ae89ebfdf665c0f2c3e2
tree99d8eacdc4ebe6a83b9768520a3d95856e5c82a3
parentf16640f47bb0b8f907fff08a2e8d1c891ce82480
target-sh4: optimize swap.w

It's possible swap the two 16-bit words of a 32-bit register using a
rotation. If the TCG target doesn't implement rotation, the replacement
code is similar to the previously implemented code.

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-sh4/translate.c