mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-25 19:06:55 +00:00
target/arm: Tidy conditions in handle_vec_simd_shri
The (size > 3 && !is_q) condition is identical to the preceeding test of bit 3 in immh; eliminate it. For the benefit of Coverity, assert that size is within the bounds we expect. Fixes: Coverity CID1385846 Fixes: Coverity CID1385849 Fixes: Coverity CID1385852 Fixes: Coverity CID1385857 Backports commit 8dae46970532afcf93470b00e83ca9921980efc3 from qemu
This commit is contained in:
parent
0087625b7e
commit
cb324fd039
|
@ -9151,10 +9151,7 @@ static void handle_vec_simd_shri(DisasContext *s, bool is_q, bool is_u,
|
|||
return;
|
||||
}
|
||||
|
||||
if (size > 3 && !is_q) {
|
||||
unallocated_encoding(s);
|
||||
return;
|
||||
}
|
||||
tcg_debug_assert(size <= 3);
|
||||
|
||||
if (!fp_access_check(s)) {
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue