S390: fix DCHECK in store f32 and f64

Change-Id: Ie7fbaebda580787a6261f0bc56fc1bde370148e4
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2698928
Reviewed-by: Junliang Yan <junyan@redhat.com>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#72828}
This commit is contained in:
Milad Fa 2021-02-17 10:40:56 -05:00 committed by Commit Bot
parent 87860cc48e
commit 6a358500a7

View File

@ -3782,14 +3782,14 @@ void TurboAssembler::StoreU16LE(Register src, const MemOperand& mem,
void TurboAssembler::StoreF64LE(DoubleRegister src, const MemOperand& opnd,
Register scratch) {
DCHECK(!is_int20(opnd.offset()));
DCHECK(is_uint12(opnd.offset()));
lgdr(scratch, src);
strvg(scratch, opnd);
}
void TurboAssembler::StoreF32LE(DoubleRegister src, const MemOperand& opnd,
Register scratch) {
DCHECK(!is_int20(opnd.offset()));
DCHECK(is_uint12(opnd.offset()));
lgdr(scratch, src);
ShiftRightU64(scratch, scratch, Operand(32));
strv(scratch, opnd);