[PATCH] D28343: [AVR] Fix register numbers for in getGCCAddlRegNames()

Dylan McKay via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 4 21:49:14 PST 2017


dylanmckay created this revision.
dylanmckay added a reviewer: saaadhu.
dylanmckay added a subscriber: cfe-commits.

These do not match up with the register numbers defined in LLVM's
AVRRegisterInfo.td

Adding Senthil as a reviewer as he originally implemented this.


https://reviews.llvm.org/D28343

Files:
  lib/Basic/Targets.cpp


Index: lib/Basic/Targets.cpp
===================================================================
--- lib/Basic/Targets.cpp
+++ lib/Basic/Targets.cpp
@@ -8459,9 +8459,9 @@
   ArrayRef<TargetInfo::AddlRegName> getGCCAddlRegNames() const override {
     static const TargetInfo::AddlRegName AddlRegNames[] = {
       { { "r26", "r27"}, 26 },
-      { { "r28", "r29"}, 27 },
-      { { "r30", "r31"}, 28 },
-      { { "SPL", "SPH"}, 29 },
+      { { "r28", "r29"}, 28 },
+      { { "r30", "r31"}, 30 },
+      { { "SPL", "SPH"}, 32 },
     };
     return llvm::makeArrayRef(AddlRegNames);
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28343.83192.patch
Type: text/x-patch
Size: 590 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170105/b709a93a/attachment-0001.bin>


More information about the cfe-commits mailing list