diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-17 10:43:40 -0700 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2022-04-22 14:44:54 +0100 |
commit | fe12080c5f96f077552de92eb44ea2bb0588f51f (patch) | |
tree | ce167793f45d7155410304441b30897c9e695e85 /python | |
parent | e01aa38d48babc21b62286e2435cb1d00bc82ae9 (diff) |
target/arm: Simplify GEN_SHIFT in translate.c
Instead of computing
tmp1 = shift & 0xff;
dest = (tmp1 > 0x1f ? 0 : value) << (tmp1 & 0x1f)
use
tmpd = value << (shift & 0x1f);
dest = shift & 0xe0 ? 0 : tmpd;
which has a flatter dependency tree.
Use tcg_constant_i32 while we're at it.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'python')
0 files changed, 0 insertions, 0 deletions