• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisióndbdaaff43adc49f1debd935b1fd58e2b47ba7676 (tree)
Tiempo2017-07-18 06:13:17
AutorRichard Henderson <rth@twid...>
CommiterRichard Henderson

Log Message

target/s390x: Fix risbg handling

The rotation is to the left, but extract shifts to the right.
The computation of the extract parameters needs adjusting.

For the entry condition, simplify

64 - rot + len <= 64
-rot + len <= 0
len <= rot

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Reported-by: David Hildenbrand <david@redhat.com>
Suggested-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>

Cambiar Resumen

Diferencia incremental

--- a/target/s390x/translate.c
+++ b/target/s390x/translate.c
@@ -3479,8 +3479,8 @@ static ExitStatus op_risbg(DisasContext *s, DisasOps *o)
34793479 }
34803480
34813481 /* In some cases we can implement this with extract. */
3482- if (imask == 0 && pos == 0 && len > 0 && rot + len <= 64) {
3483- tcg_gen_extract_i64(o->out, o->in2, rot, len);
3482+ if (imask == 0 && pos == 0 && len > 0 && len <= rot) {
3483+ tcg_gen_extract_i64(o->out, o->in2, 64 - rot, len);
34843484 return NO_EXIT;
34853485 }
34863486