[PATCH] D8713: Sparc: Implement i64 load/store support for 32-bit sparc.

Eric Christopher echristo at gmail.com
Tue Jul 7 11:27:15 PDT 2015


echristo accepted this revision.

This revision is now accepted and ready to land.

Think you need to clang format bits, but otherwise looks ok. Request for a comment inline.

Thanks!

-eric


================
Comment at: lib/Target/Sparc/SparcInstrInfo.cpp:299-304
@@ -296,3 +298,8 @@
       .addReg(SrcReg, getKillRegState(KillSrc));
-  else if (SP::FPRegsRegClass.contains(DestReg, SrcReg))
+  else if (SP::IntPairRegClass.contains(DestReg, SrcReg)) {
+    subRegIdx  = DW_SubRegsIdx;
+    numSubRegs = 2;
+    movOpc     = SP::ORrr;
+    ExtraG0 = true;
+  } else if (SP::FPRegsRegClass.contains(DestReg, SrcReg))
     BuildMI(MBB, I, DL, get(SP::FMOVS), DestReg)
----------------
This could use a comment.


http://reviews.llvm.org/D8713







More information about the llvm-commits mailing list