diff options
| author | 2012-04-10 16:15:59 -0700 | |
|---|---|---|
| committer | 2012-04-10 16:15:59 -0700 | |
| commit | cd4935fcfe1ebc60cc727fe5e537cf201dcb0ede (patch) | |
| tree | d0c9973dfdb9bdb6a1855c22b0800e6a0feb84e5 /src/compiler/codegen/GenCommon.cc | |
| parent | b92bcabcbb28f69fe99e1c2f2e5559ab2c47aa60 (diff) | |
Use a shorter x86 CMP encoding for suspend count tests.
Change-Id: Ic765c0517cccb22030efa42271ede650f64284e4
Diffstat (limited to 'src/compiler/codegen/GenCommon.cc')
| -rw-r--r-- | src/compiler/codegen/GenCommon.cc | 4 |
1 files changed, 2 insertions, 2 deletions
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); |