[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 05/15] tcg-i386: Tidy movi.
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 05/15] tcg-i386: Tidy movi. |
Date: |
Fri, 21 May 2010 08:30:25 -0700 |
Define and use OPC_MOVL_Iv.
Signed-off-by: Richard Henderson <address@hidden>
---
tcg/i386/tcg-target.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tcg/i386/tcg-target.c b/tcg/i386/tcg-target.c
index bc5985f..1d227db 100644
--- a/tcg/i386/tcg-target.c
+++ b/tcg/i386/tcg-target.c
@@ -173,6 +173,7 @@ static inline int tcg_target_const_match(tcg_target_long
val,
#define OPC_MOVB_EvGv (0x88) /* stores, more or less */
#define OPC_MOVL_EvGv (0x89) /* stores, more or less */
#define OPC_MOVL_GvEv (0x8b) /* loads, more or less */
+#define OPC_MOVL_Iv (0xb8)
#define OPC_MOVSBL (0xbe | P_EXT)
#define OPC_MOVSWL (0xbf | P_EXT)
#define OPC_MOVZBL (0xb6 | P_EXT)
@@ -300,7 +301,7 @@ static inline void tcg_out_movi(TCGContext *s, TCGType type,
if (arg == 0) {
tgen_arithr(s, ARITH_XOR, ret, ret);
} else {
- tcg_out8(s, 0xb8 + ret);
+ tcg_out8(s, OPC_MOVL_Iv + ret);
tcg_out32(s, arg);
}
}
--
1.7.0.1
- [Qemu-devel] [PATCH 00/15] tcg-i386 cleanup and improvement, v3, Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 01/15] tcg-i386: Tidy ext8u and ext16u operations., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 02/15] tcg-i386: Tidy ext8s and ext16s operations., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 04/15] tcg-i386: Tidy non-immediate arithmetic operations., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 06/15] tcg-i386: Tidy push/pop., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 03/15] tcg-i386: Tidy immediate arithmetic operations., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 09/15] tcg-i386: Tidy setcc., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 07/15] tcg-i386: Tidy calls., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 08/15] tcg-i386: Tidy ret., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 05/15] tcg-i386: Tidy movi.,
Richard Henderson <=
- [Qemu-devel] [PATCH 12/15] tcg-i386: Tidy xchg., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 10/15] tcg-i386: Tidy unary arithmetic., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 13/15] tcg-i386: Tidy lea., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 11/15] tcg-i386: Tidy multiply., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 14/15] tcg-i386: Use lea for three-operand add., Richard Henderson, 2010/05/21
- [Qemu-devel] [PATCH 15/15] tcg-i386: Nuke trailing whitespace., Richard Henderson, 2010/05/21
- Re: [Qemu-devel] [PATCH 00/15] tcg-i386 cleanup and improvement, v3, Aurelien Jarno, 2010/05/21