tcg: Add TYPE parameter to tcg_out_mov.
authorRichard Henderson <rth@twiddle.net>
Thu, 3 Jun 2010 00:26:55 +0000 (17:26 -0700)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 9 Jun 2010 09:18:25 +0000 (11:18 +0200)
commitaefccc80754f33d35786d5ff87077afbb9fbbd03
tree1c74436bda2c635a7ad95d57b36736d5ba1db724
parent197fd8568312fcc498808594d9e067e7df05c845
tcg: Add TYPE parameter to tcg_out_mov.

Mirror tcg_out_movi in having a TYPE parameter.  This allows x86_64
to perform the move at the proper width, which may elide a REX prefix.

Introduce a TCG_TYPE_REG enumerator to represent the "native width"
of the host register, and to distinguish the usage from "pointer data"
as represented by the existing TCG_TYPE_PTR.

Update all targets to match.

Signed-off-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
12 files changed:
tcg/arm/tcg-target.c
tcg/hppa/tcg-target.c
tcg/i386/tcg-target.c
tcg/ia64/tcg-target.c
tcg/mips/tcg-target.c
tcg/ppc/tcg-target.c
tcg/ppc64/tcg-target.c
tcg/s390/tcg-target.c
tcg/sparc/tcg-target.c
tcg/tcg.c
tcg/tcg.h
tcg/x86_64/tcg-target.c