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

PPC [simd]: Simulate undefined section of mtvsrd result

Change-Id: I8ecf009aa560144f572bd954a1aa8bde8732ffa1
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2904267Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#74645}
parent 663eec3a
......@@ -2464,6 +2464,10 @@ void Simulator::ExecuteGeneric(Instruction* instr) {
DCHECK_EQ(instr->Bit(0), 1);
set_simd_register_by_lane<int64_t>(frt, 0,
static_cast<int64_t>(ra_val));
// Low 64 bits of the result is undefined,
// Which is simulated here by adding random bits.
set_simd_register_by_lane<int64_t>(
frt, 1, static_cast<int64_t>(0x123456789ABCD));
}
break;
}
......
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