Commit f3bc52385cacca63565d453ff4a63856f7686bce
1 parent
22d83b14
CRIS: Fix bmi.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Showing
1 changed file
with
2 additions
and
1 deletions
target-cris/translate.c
@@ -957,7 +957,8 @@ static void gen_tst_cc (DisasContext *dc, TCGv cc, int cond) | @@ -957,7 +957,8 @@ static void gen_tst_cc (DisasContext *dc, TCGv cc, int cond) | ||
957 | else if (dc->cc_size == 2) | 957 | else if (dc->cc_size == 2) |
958 | bits = 15; | 958 | bits = 15; |
959 | 959 | ||
960 | - tcg_gen_shri_tl(cc, cc_result, 31); | 960 | + tcg_gen_shri_tl(cc, cc_result, bits); |
961 | + tcg_gen_andi_tl(cc, cc, 1); | ||
961 | } | 962 | } |
962 | else { | 963 | else { |
963 | cris_evaluate_flags(dc); | 964 | cris_evaluate_flags(dc); |