Commit e1bfa1e7 authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

[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: 's avatarTobias Tebbi <tebbi@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#66484}
parent b5c4c5a4
...@@ -2078,7 +2078,7 @@ void TurboAssembler::AssertZeroExtended(Register int32_register) { ...@@ -2078,7 +2078,7 @@ void TurboAssembler::AssertZeroExtended(Register int32_register) {
DCHECK_NE(int32_register, kScratchRegister); DCHECK_NE(int32_register, kScratchRegister);
movq(kScratchRegister, int64_t{0x0000000100000000}); movq(kScratchRegister, int64_t{0x0000000100000000});
cmpq(kScratchRegister, int32_register); cmpq(kScratchRegister, int32_register);
Check(above_equal, AbortReason::k32BitValueInRegisterIsNotZeroExtended); Check(above, AbortReason::k32BitValueInRegisterIsNotZeroExtended);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment