From cd4935fcfe1ebc60cc727fe5e537cf201dcb0ede Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Tue, 10 Apr 2012 16:15:59 -0700 Subject: Use a shorter x86 CMP encoding for suspend count tests. Change-Id: Ic765c0517cccb22030efa42271ede650f64284e4 --- src/compiler/codegen/GenCommon.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/codegen/GenCommon.cc') diff --git a/src/compiler/codegen/GenCommon.cc b/src/compiler/codegen/GenCommon.cc index d2628bb19c..066c37cacd 100644 --- a/src/compiler/codegen/GenCommon.cc +++ b/src/compiler/codegen/GenCommon.cc @@ -2496,7 +2496,7 @@ void genSuspendTest(CompilationUnit* cUnit, MIR* mir) newLIR2(cUnit, kThumbSubRI8, rSUSPEND, 1); branch = opCondBranch(cUnit, kCondEq, NULL); #elif defined(TARGET_X86) - newLIR2(cUnit, kX86Cmp32TI, Thread::SuspendCountOffset().Int32Value(), 0); + newLIR2(cUnit, kX86Cmp32TI8, Thread::SuspendCountOffset().Int32Value(), 0); branch = opCondBranch(cUnit, kCondNe, NULL); #else opRegImm(cUnit, kOpSub, rSUSPEND, 1); @@ -2526,7 +2526,7 @@ void genSuspendTestAndBranch(CompilationUnit* cUnit, MIR* mir, LIR* target) newLIR2(cUnit, kThumbSubRI8, rSUSPEND, 1); opCondBranch(cUnit, kCondNe, target); #elif defined(TARGET_X86) - newLIR2(cUnit, kX86Cmp32TI, Thread::SuspendCountOffset().Int32Value(), 0); + newLIR2(cUnit, kX86Cmp32TI8, Thread::SuspendCountOffset().Int32Value(), 0); opCondBranch(cUnit, kCondEq, target); #else opRegImm(cUnit, kOpSub, rSUSPEND, 1); -- cgit v1.2.3-59-g8ed1b