OSDN Git Service

tcg-aarch64: Simplify tcg_out_ldst_9 encoding
authorRichard Henderson <rth@twiddle.net>
Tue, 4 Mar 2014 16:52:49 +0000 (08:52 -0800)
committerRichard Henderson <rth@twiddle.net>
Sun, 9 Mar 2014 05:23:25 +0000 (21:23 -0800)
commit523fdc08ccc64d20e6cab1326635fb9ab864bf74
tree161a47f41c3f519470b4b2a605ddf622ea9aff39
parent017a86f7ad6da088927f7000c79388177d91a9ad
tcg-aarch64: Simplify tcg_out_ldst_9 encoding

At first glance the code appears to be using 1's compliment encoding,
a-la AArch32.  Except that the constant is "off", creating a complicated
split field 2's compliment encoding.

Much clearer to just use a normal mask and shift.

Reviewed-by: Claudio Fontana <claudio.fontana@huawei.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/aarch64/tcg-target.c