Commit 2654671e authored by Milad Fa's avatar Milad Fa Committed by V8 LUCI CQ

PPC: fix and with smi literal inputs

Change-Id: Ic4cb7a6c626426ec40b26adcf70ec2c7efc7b4ee
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3041619Reviewed-by: 's avatarMilad Fa <mfarazma@redhat.com>
Reviewed-by: 's avatarMichael Achenbach <machenbach@chromium.org>
Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#75884}
parent c6446b23
......@@ -2974,7 +2974,7 @@ void MacroAssembler::SubSmiLiteral(Register dst, Register src, Smi smi,
void MacroAssembler::AndSmiLiteral(Register dst, Register src, Smi smi,
Register scratch, RCBit rc) {
#if defined(V8_COMPRESS_POINTERS) || defined(V8_31BIT_SMIS_ON_64BIT_ARCH)
And(dst, src, Operand(smi), rc);
AndU64(dst, src, Operand(smi), scratch, rc);
#else
LoadSmiLiteral(scratch, smi);
and_(dst, src, scratch, rc);
......
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