[PATCH] [mips][microMIPSr6] Implement initial mapping support

Daniel Sanders daniel.sanders at imgtec.com
Wed Apr 1 11:45:50 PDT 2015


I'm not very familiar with the mapping portion of microMIPS at the moment so I don't feel able to review this yet. All I know is that 'MM' does some magic that maps MIPS32r2 instructions to microMIPS instructions. Is there someone who is better able to review this? If not, I'll look into it and learn how this works.


================
Comment at: lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.cpp:183
@@ -182,3 +182,3 @@
 
-  if (STI.getFeatureBits() & Mips::FeatureMicroMips) {
-    int NewOpcode = Mips::Std2MicroMips (Opcode, Mips::Arch_micromips);
+  if (isMicroMips(STI) || isMicroMips32r6(STI)) {
+    int NewOpcode = isMicroMips(STI) ?
----------------
As mentioned in D8386, I would expect isMicroMips(STI) to be true whenever isMicroMips32r6(STI) is.

http://reviews.llvm.org/D8387

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list