Commit 8bac8487 authored by QiuJi's avatar QiuJi Committed by V8 LUCI CQ

[riscv64] Fix a typo in li_ptr

Change-Id: I12ed18a488584b144bec6b1c1cef7ab01d1b5ce8
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2917597
Commit-Queue: Brice Dobry <brice.dobry@futurewei.com>
Reviewed-by: 's avatarBrice Dobry <brice.dobry@futurewei.com>
Cr-Commit-Position: refs/heads/master@{#74802}
parent 115db49c
......@@ -2593,7 +2593,7 @@ void Assembler::li_ptr(Register rd, int64_t imm) {
// Pointers are 48 bits
// 6 fixed instructions are generated
DCHECK_EQ((imm & 0xfff0000000000000ll), 0);
int64_t a6 = imm & 0x3f; // bits 0:6. 6 bits
int64_t a6 = imm & 0x3f; // bits 0:5. 6 bits
int64_t b11 = (imm >> 6) & 0x7ff; // bits 6:11. 11 bits
int64_t high_31 = (imm >> 17) & 0x7fffffff; // 31 bits
int64_t high_20 = ((high_31 + 0x800) >> 12); // 19 bits
......
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