[PATCH] D27046: TableGen: Allow signed immediates for instruction aliases

Daniel Cederman via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 23 07:08:05 PST 2016


dcederman created this revision.
dcederman added a reviewer: stoklund.
dcederman added a subscriber: llvm-commits.

https://reviews.llvm.org/D27046

Files:
  utils/TableGen/AsmWriterEmitter.cpp


Index: utils/TableGen/AsmWriterEmitter.cpp
===================================================================
--- utils/TableGen/AsmWriterEmitter.cpp
+++ utils/TableGen/AsmWriterEmitter.cpp
@@ -879,7 +879,7 @@
           IAP.addCond(Op + ".isImm()");
 
           Cond = Op + ".getImm() == " +
-                 llvm::utostr(CGA.ResultOperands[i].getImm());
+                 llvm::itostr(CGA.ResultOperands[i].getImm());
           IAP.addCond(Cond);
           break;
         }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27046.79071.patch
Type: text/x-patch
Size: 482 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161123/a2504b38/attachment.bin>


More information about the llvm-commits mailing list