Skip to contentSkip to conversation

target-sparc: Fix optimized %icc comparisons

PATCH In review Richard Henderson 2 participants 2 messages Oct 8, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-sparc: Fix optimized %icc comparisons

---
 target-sparc/translate.c | 1 +
 1 file changed, 1 insertion(+)

This should fix the boot problem that Aurelien saw. It also showed up in some userland speed testing I'm trying to set up (cross gcc).

r~

target-sparc/translate.c +1 -0
index 472eb51..71b9d65 100644
@@ -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;
Signature · 1 line
1.7.11.4
Tested-by on v1 1/1
#1 lore raw
Quoted 9 lines · Richard Henderson
---
 target-sparc/translate.c | 1 +
 1 file changed, 1 insertion(+)

This should fix the boot problem that Aurelien saw. It also showed up in some userland speed testing I'm trying to set up (cross gcc).

I confirm it fixes the issue I reported.

Quoted 16 lines
target-sparc/translate.c +1 -0
index 472eb51..71b9d65 100644
@@ -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;
Signature · 1 line
1.7.11.4
Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net