Skip to contentSkip to conversation

tcg-i386: use LEA for 3-operand 64-bit addition

PATCH Applied Richard Henderson 2 participants 2 messages Jan 11, 2013 – Jan 12, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcg-i386: use LEA for 3-operand 64-bit addition

From: Paolo Bonzini <[email protected]>

---
 tcg/i386/tcg-target.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tcg/i386/tcg-target.c +1 -1
index e083874..7aec304 100644
@@ -2099,7 +2099,7 @@ static const TCGTargetOpDef x86_op_defs[] = {
     { INDEX_op_st32_i64, { "ri", "r" } },
     { INDEX_op_st_i64, { "re", "r" } },
 
-    { INDEX_op_add_i64, { "r", "0", "re" } },
+    { INDEX_op_add_i64, { "r", "r", "re" } },
     { INDEX_op_mul_i64, { "r", "0", "re" } },
     { INDEX_op_div2_i64, { "a", "d", "0", "1", "r" } },
     { INDEX_op_divu2_i64, { "a", "d", "0", "1", "r" } },
Signature · 1 line
1.7.11.7
Applied
#1 lore raw

Thanks, applied.

Quoted 25 lines · Richard Henderson

From: Paolo Bonzini <[email protected]>

---
 tcg/i386/tcg-target.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tcg/i386/tcg-target.c +1 -2
index e083874..7aec304 100644
@@ -2099,7 +2099,7 @@ static const TCGTargetOpDef x86_op_defs[] = {
     { INDEX_op_st32_i64, { "ri", "r" } },
     { INDEX_op_st_i64, { "re", "r" } },
 
-    { INDEX_op_add_i64, { "r", "0", "re" } },
+    { INDEX_op_add_i64, { "r", "r", "re" } },
     { INDEX_op_mul_i64, { "r", "0", "re" } },
     { INDEX_op_div2_i64, { "a", "d", "0", "1", "r" } },
     { INDEX_op_divu2_i64, { "a", "d", "0", "1", "r" } },
--

1.7.11.7