[codegen,x64] Fix off-by-one error in AssertZeroExtended

Change-Id: Ie7b9323d7491d1105a8a5b14b341ab023b0a59eb
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2078572
Auto-Submit: Georg Neis <neis@chromium.org>
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66484}
This commit is contained in:
Georg Neis 2020-02-27 15:02:16 +01:00 committed by Commit Bot
parent b5c4c5a4c9
commit e1bfa1e7c5

View File

@ -2078,7 +2078,7 @@ void TurboAssembler::AssertZeroExtended(Register int32_register) {
DCHECK_NE(int32_register, kScratchRegister);
movq(kScratchRegister, int64_t{0x0000000100000000});
cmpq(kScratchRegister, int32_register);
Check(above_equal, AbortReason::k32BitValueInRegisterIsNotZeroExtended);
Check(above, AbortReason::k32BitValueInRegisterIsNotZeroExtended);
}
}