Commit 87e0ceb6 authored by Milad Fa's avatar Milad Fa Committed by Commit Bot

PPC: FormatFPRegister might have VSX inputs as source or destination

Change-Id: I2fb08d891112f8d88896a116622688ce6ea83a10
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2595312Reviewed-by: 's avatarJunliang Yan <junyan@redhat.com>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#71837}
parent 6dfa47b6
......@@ -171,11 +171,11 @@ int Decoder::FormatRegister(Instruction* instr, const char* format) {
// Handle all FP register based formatting in this function to reduce the
// complexity of FormatOption.
int Decoder::FormatFPRegister(Instruction* instr, const char* format) {
DCHECK_EQ(format[0], 'D');
DCHECK(format[0] == 'D' || format[0] == 'X');
int retval = 2;
int reg = -1;
if (format[1] == 't') {
if (format[1] == 't' || format[1] == 's') {
reg = instr->RTValue();
} else if (format[1] == 'a') {
reg = instr->RAValue();
......
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