]> Git Repo - qemu.git/commitdiff
target/arm: Tidy conditions in handle_vec_simd_shri
authorRichard Henderson <[email protected]>
Fri, 4 May 2018 17:05:51 +0000 (18:05 +0100)
committerPeter Maydell <[email protected]>
Fri, 4 May 2018 17:05:51 +0000 (18:05 +0100)
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
Signed-off-by: Richard Henderson <[email protected]>
Reviewed-by: Alex BennĂ©e <[email protected]>
Message-id: 20180501180455[email protected]
Signed-off-by: Peter Maydell <[email protected]>
target/arm/translate-a64.c

index bff4e13bf6008fff3b550f9ae581cc87da022cb3..97950dce1acff7c3345a6b6b5e1c6c5ac4c57e54 100644 (file)
@@ -9019,11 +9019,7 @@ static void handle_vec_simd_shri(DisasContext *s, bool is_q, bool is_u,
         unallocated_encoding(s);
         return;
     }
-
-    if (size > 3 && !is_q) {
-        unallocated_encoding(s);
-        return;
-    }
+    tcg_debug_assert(size <= 3);
 
     if (!fp_access_check(s)) {
         return;
This page took 0.039593 seconds and 4 git commands to generate.