Patchwork [1/4] target-sparc: Fix optimized %icc comparisons

login
register
mail settings
Submitter Richard Henderson
Date Oct. 9, 2012, 9:49 p.m.
Message ID <1349819400-25833-2-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/190475/
State New
Headers show

Comments

Richard Henderson - Oct. 9, 2012, 9:49 p.m.
Signed-off-by: Richard Henderson <rth@twiddle.net>
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
---
 target-sparc/translate.c | 1 +
 1 file changed, 1 insertion(+)

Patch

diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index 472eb51..71b9d65 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -1120,6 +1120,7 @@  static void gen_compare(DisasCompare *cmp, bool xcc, unsigned int cond,
                 cmp->c2 = tcg_temp_new();
                 tcg_gen_ext32s_tl(cmp->c1, cpu_cc_src);
                 tcg_gen_ext32s_tl(cmp->c2, cpu_cc_src2);
+                break;
             }
 #endif
             cmp->g1 = cmp->g2 = true;