[PATCH] D15417: [mips][microMIPS] Implement BEQZC and BNEZC instructions
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 17 08:58:48 PST 2015
dsanders requested changes to this revision.
This revision now requires changes to proceed.
================
Comment at: lib/Target/Mips/Disassembler/MipsDisassembler.cpp:1842-1844
@@ +1841,5 @@
+static DecodeStatus DecodeBranchTarget21MM(MCInst &Inst,
+ unsigned Offset,
+ uint64_t Address,
+ const void *Decoder) {
+ int32_t BranchOffset = SignExtend32<21>(Offset) << 1;
----------------
Indentation
================
Comment at: lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp:333-336
@@ +332,6 @@
+/// relocation, record the relocation and return zero.
+unsigned MipsMCCodeEmitter::
+getBranchTarget21OpValueMM(const MCInst &MI, unsigned OpNo,
+SmallVectorImpl<MCFixup> &Fixups,
+const MCSubtargetInfo &STI) const {
+
----------------
Formatting
================
Comment at: lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp:346
@@ +345,3 @@
+
+ // TODO: Push fixup.
+ return 0;
----------------
Shouldn't this be filled in? The previous patch (D15526) added the necessary fixup.
Could you also add a test case covering this path?
================
Comment at: lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.h:137-138
@@ +136,4 @@
+ unsigned getBranchTarget21OpValueMM(const MCInst &MI, unsigned OpNo,
+ SmallVectorImpl<MCFixup> &Fixups,
+ const MCSubtargetInfo &STI) const;
+
----------------
Indentation
http://reviews.llvm.org/D15417
More information about the llvm-commits
mailing list