target/arm: remove redundant code
PATCH 1/1 target/arm: remove redundant code
From: Denis Rastyogin <[email protected]>
This call is redundant as it only retrieves a value that is not used further.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by Denis Rastyogin <[email protected]>
--- target/arm/vfp_helper.c | 2 -- 1 file changed, 2 deletions(-)
target/arm/vfp_helper.c +0 -2
@@ -1095,8 +1095,6 @@ float64 HELPER(rintd)(float64 x, void *fp_status) ret =float64_round_to_int (x, fp_status); - new_flags =get_float_exception_flags (fp_status); -/* Suppress any inexact exceptions the conversion produced */ if (!(old_flags & float_flag_inexact)) { new_flags =get_float_exception_flags (fp_status);
Signature · 1 line
2.42.2
Quoted 16 lines · On 12/12/24 06:06, [email protected] wrote:
From: Denis Rastyogin <[email protected]>
This call is redundant as it only retrieves a value that is not used further.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by Denis Rastyogin <[email protected]>--- target/arm/vfp_helper.c | 2 -- 1 file changed, 2 deletions(-)target/arm/vfp_helper.c +0
-0
target/arm/vfp_helper.c float64 HELPER(rintd)(float64 x, void *fp_status) · line 1100
Quoted 8 lines
target/arm/vfp_helper.c +0
-2@@ -1095,8 +1095,6 @@ float64 HELPER(rintd)(float64 x, void *fp_status) ret =float64_round_to_int (x, fp_status); - new_flags =get_float_exception_flags (fp_status); -/* Suppress any inexact exceptions the conversion produced */ if (!(old_flags & float_flag_inexact)) { new_flags =get_float_exception_flags (fp_status);
Reviewed-by Richard Henderson <[email protected]>
r~
Peter Maydell
AppliedQuoted 8 lines · On Thu, 12 Dec 2024 at 12:06, <[email protected]> wrote:
From: Denis Rastyogin <[email protected]>
This call is redundant as it only retrieves a value that is not used further.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Signed-off-by Denis Rastyogin <[email protected]>
Applied to target-arm.next, thanks.
-- PMM