Revision: 16020
Author:   [email protected]
Date:     Fri Aug  2 01:55:26 2013
Log:      Use test(reg, imm) when the operand is a register on ia32

[email protected]

Review URL: https://codereview.chromium.org/21521002

Patch from Weiliang Lin <[email protected]>.
http://code.google.com/p/v8/source/detail?r=16020

Modified:
 /branches/bleeding_edge/src/ia32/assembler-ia32.cc

=======================================
--- /branches/bleeding_edge/src/ia32/assembler-ia32.cc Thu Jul 11 06:07:04 2013 +++ /branches/bleeding_edge/src/ia32/assembler-ia32.cc Fri Aug 2 01:55:26 2013
@@ -1227,6 +1227,10 @@


 void Assembler::test(const Operand& op, const Immediate& imm) {
+  if (op.is_reg_only()) {
+    test(op.reg(), imm);
+    return;
+  }
   EnsureSpace ensure_space(this);
   EMIT(0xF7);
   emit_operand(eax, op);

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to