target/sh4: optimize gen_write_sr using extract op
commita380f9db96dc94e5109611e4fd0fb4f671e30143
authorAurelien Jarno <aurelien@aurel32.net>
Mon, 1 May 2017 21:20:43 +0000 (1 23:20 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Sat, 13 May 2017 09:18:26 +0000 (13 11:18 +0200)
tree7ef41df51ce6e938438abf473cba3865cbf6910f
parent58d2a9aef4cacb3056f5b12c1eb92105704183fe
target/sh4: optimize gen_write_sr using extract op

This doesn't change the generated code on x86, but optimizes it on most
RISC architectures and makes the code simpler to read.

Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target/sh4/translate.c