From 87e0ceb6852c35ac14b0a81e4c2ff84f1c56c8ad Mon Sep 17 00:00:00 2001 From: Milad Fa Date: Wed, 16 Dec 2020 13:46:42 -0500 Subject: [PATCH] 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 Commit-Queue: Milad Fa Cr-Commit-Position: refs/heads/master@{#71837} --- src/diagnostics/ppc/disasm-ppc.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/diagnostics/ppc/disasm-ppc.cc b/src/diagnostics/ppc/disasm-ppc.cc index bc2d61f280..8eda87b0c4 100644 --- a/src/diagnostics/ppc/disasm-ppc.cc +++ b/src/diagnostics/ppc/disasm-ppc.cc @@ -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();