Commit bd964935 authored by Ng Zhi An's avatar Ng Zhi An Committed by Commit Bot

[cleanup] Use combine to make uint64_t from two uint32_t

Change-Id: I946c9f0db1dcb91ab9414be2de8285444741ca3e
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2293499
Commit-Queue: Zhi An Ng <zhin@chromium.org>
Reviewed-by: 's avatarBill Budge <bbudge@chromium.org>
Cr-Commit-Position: refs/heads/master@{#68855}
parent be123e40
......@@ -2560,9 +2560,9 @@ CodeGenerator::CodeGenResult CodeGenerator::AssembleArchInstruction(
DCHECK(AreConsecutive(src0, src1));
}
int64_t imm1 =
(i.InputInt32(2) & mask) | ((i.InputInt32(3) & mask) << 32);
make_uint64(i.InputInt32(3) & mask, i.InputInt32(2) & mask);
int64_t imm2 =
(i.InputInt32(4) & mask) | ((i.InputInt32(5) & mask) << 32);
make_uint64(i.InputInt32(5) & mask, i.InputInt32(4) & mask);
UseScratchRegisterScope scope(tasm());
VRegister temp = scope.AcquireV(kFormat16B);
__ Movi(temp, imm2, imm1);
......
......@@ -759,10 +759,8 @@ void AdjustStackPointerForTailCall(TurboAssembler* assembler,
void SetupSimdImmediateInRegister(TurboAssembler* assembler, uint32_t* imms,
XMMRegister reg) {
uint64_t value = make_uint64(imms[1], imms[0]);
assembler->Move(reg, value);
value = (imms[2]) | (uint64_t{imms[3]} << 32);
assembler->movq(kScratchRegister, value);
assembler->Move(reg, make_uint64(imms[1], imms[0]));
assembler->movq(kScratchRegister, make_uint64(imms[3], imms[2]));
assembler->Pinsrq(reg, kScratchRegister, int8_t{1});
}
......
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