[PATCH] D50244: [libunwind][mips] Guard accumulator registers

Stefan Maksimovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 16 01:50:36 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL339849: [libunwind][mips] Guard accumulator registers (authored by smaksimovic, committed by ).
Herald added a subscriber: christof.

Changed prior to commit:
  https://reviews.llvm.org/D50244?vs=158983&id=160978#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D50244

Files:
  libunwind/trunk/src/Registers.hpp


Index: libunwind/trunk/src/Registers.hpp
===================================================================
--- libunwind/trunk/src/Registers.hpp
+++ libunwind/trunk/src/Registers.hpp
@@ -2759,10 +2759,12 @@
     return false;
   if (regNum <= UNW_MIPS_R31)
     return true;
+#if __mips_isa_rev != 6
   if (regNum == UNW_MIPS_HI)
     return true;
   if (regNum == UNW_MIPS_LO)
     return true;
+#endif
 #if defined(__mips_hard_float) && __mips_fpr == 32
   if (regNum >= UNW_MIPS_F0 && regNum <= UNW_MIPS_F31)
     return true;
@@ -3073,10 +3075,12 @@
     return false;
   if (regNum <= UNW_MIPS_R31)
     return true;
+#if __mips_isa_rev != 6
   if (regNum == UNW_MIPS_HI)
     return true;
   if (regNum == UNW_MIPS_LO)
     return true;
+#endif
   // FIXME: Hard float, DSP accumulator registers, MSA registers
   return false;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50244.160978.patch
Type: text/x-patch
Size: 839 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180816/bb407b36/attachment.bin>


More information about the llvm-commits mailing list