tcg-ppc64: Use TCGType throughout compares
authorRichard Henderson <rth@twiddle.net>
Tue, 2 Apr 2013 21:58:27 +0000 (14:58 -0700)
committerRichard Henderson <rth@twiddle.net>
Mon, 15 Apr 2013 18:09:52 +0000 (20:09 +0200)
commit4c314da6d1b438c815533380981880fe3f49b1ac
tree051ef23dbc3f4564c4386648472473b15a859236
parentef809300fcf300a3efef479734e9456dc5b7581c
tcg-ppc64: Use TCGType throughout compares

The optimization/bug being fixed is that tcg_out_cmp was not applying the
right type to loading a constant, in the case it can't be implemented
directly.  Rather than recomputing the TCGType enum from the arch64 bool,
pass around the original TCGType throughout.

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Richard Henderson <rth@twiddle.net>
tcg/ppc64/tcg-target.c