PPC: FormatFPRegister might have VSX inputs as source or destination

Change-Id: I2fb08d891112f8d88896a116622688ce6ea83a10
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2595312
Reviewed-by: Junliang Yan <junyan@redhat.com>
Commit-Queue: Milad Fa <mfarazma@redhat.com>
Cr-Commit-Position: refs/heads/master@{#71837}
This commit is contained in:
Milad Fa 2020-12-16 13:46:42 -05:00 committed by Commit Bot
parent 6dfa47b6b4
commit 87e0ceb685

View File

@ -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();