]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
tcg: Fix tcg_reg_alloc_mov vs no-op truncation
authorRichard Henderson <rth@twiddle.net>
Tue, 13 May 2014 21:50:18 +0000 (14:50 -0700)
committerRichard Henderson <rth@twiddle.net>
Wed, 14 May 2014 16:56:13 +0000 (09:56 -0700)
commit450445d543a33fdb1d18a18ab7669a33dc1ca7ae
treee4770bef2c4f2933d4a0109fd43842abcaa54c94
parentf30d56e7d63fe2f536511bffa13306bec2e01c37
tcg: Fix tcg_reg_alloc_mov vs no-op truncation

Commit af3cbfbe8018ccc16fb3a0048e928f66f0d05e87 hoisted some "common"
loads of the temporary type, forgetting that the types could differ
during truncating moves.  This affects the correctness of the memory
offset on big-endian hosts.

Tested-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/tcg.c