tcg/optimize: Do not skip default processing of dup_vec
PATCH 1/1 tcg/optimize: Do not skip default processing of dup_vec
If we do not opimize away dup_vec, we must mark its output as changed.
Fixes 170ba88f45b
Reported-by Laurent Desnogues <[email protected]>
Signed-off-by Richard Henderson <[email protected]>
--- tcg/optimize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
tcg/optimize.c +2 -2
@@ -1094,9 +1094,9 @@ void tcg_optimize(TCGContext *s) tmp =arg_info (op->args[1 ])->val; tmp =dup_const (TCGOP_VECE (op), tmp);tcg_opt_gen_movi (s, op, op->args[0 ], tmp); -continue ; +break ; } -break ; + goto do_default; CASE_OP_32_64(not): CASE_OP_32_64(neg):
Signature · 1 line
2.17.1
Hello,
Quoted 5 lines · Richard Henderson
If we do not opimize away
dup_vec, we must mark its output as changed.Fixes 170ba88f45bReported-by Laurent Desnogues <[email protected]>Signed-off-by Richard Henderson <[email protected]>
Reviewed-by Laurent Desnogues <[email protected]>
Tested-by Laurent Desnogues <[email protected]>
Thanks,
Laurent
Quoted 23 lines
--- tcg/optimize.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)tcg/optimize.c +2
-3@@ -1094,9 +1094,9 @@ void tcg_optimize(TCGContext *s) tmp =arg_info (op->args[1 ])->val; tmp =dup_const (TCGOP_VECE (op), tmp);tcg_opt_gen_movi (s, op, op->args[0 ], tmp); -continue ; +break ; } -break ; + goto do_default; CASE_OP_32_64(not): CASE_OP_32_64(neg): --2.17.1
Peter Maydell
AppliedQuoted 4 lines · Laurent Desnogues
Hello,
On Mon, Aug 6, 2018 at 1:32 AM, Richard Henderson
<[email protected]> wrote:
Quoted 9 lines
Quoted 5 lines
If we do not opimize away
dup_vec, we must mark its output as changed.Fixes 170ba88f45bReported-by Laurent Desnogues <[email protected]>Signed-off-by Richard Henderson <[email protected]>Reviewed-by Laurent Desnogues <[email protected]>Tested-by Laurent Desnogues <[email protected]>
Applied to master for rc4, thanks.
-- PMM