[PATCH] D72569: [PowerPC][Future] Add prefixed instruction paddi to future CPU

Yi-Hong Lyu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 01:33:56 PST 2020


Yi-Hong.Lyu requested changes to this revision.
Yi-Hong.Lyu added inline comments.
This revision now requires changes to proceed.


================
Comment at: llvm/lib/Target/PowerPC/Disassembler/PPCDisassembler.cpp:197
+  if (Imm != 0)
+    return MCDisassembler::Fail;
+  Inst.addOperand(MCOperand::createImm(Imm));
----------------
Two things:

1. There is no test that execute this line. Tests doesn't have enough coverage in this patch.
2. For `paddi 1, 2, 8589934591, 1`, it is disassemblable but invalid on hardware. I imagine we should use `SoftFail` instead of `Fail` here. Please see https://llvm.org/doxygen/classllvm_1_1MCDisassembler.html#a8eb822283e8f3200ca4b2a1ba0174e6a 


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72569/new/

https://reviews.llvm.org/D72569





More information about the llvm-commits mailing list