summaryrefslogtreecommitdiffstats
path: root/llvm/utils
diff options
context:
space:
mode:
authorJacob Baungard Hansen <jacob.hansen@gaisler.com>2016-11-24 08:53:28 +0000
committerJacob Baungard Hansen <jacob.hansen@gaisler.com>2016-11-24 08:53:28 +0000
commita8cbbdc9b6bd2b845bfe0d3d677a1edf9f67b895 (patch)
tree6129e4dd6f79df5e61d0918d6d8148d4f4c480fa /llvm/utils
parentf23b995f78d69fe00480cb148fc0b1b2680c0cdf (diff)
downloadbcm5719-llvm-a8cbbdc9b6bd2b845bfe0d3d677a1edf9f67b895.tar.gz
bcm5719-llvm-a8cbbdc9b6bd2b845bfe0d3d677a1edf9f67b895.zip
TableGen: Allow signed immediates for instruction aliases
Patch by Daniel Cederman. Reviewers: stoklund, arsenm Subscribers: arsenm, llvm-commits Differential Revision: https://reviews.llvm.org/D27046 llvm-svn: 287856
Diffstat (limited to 'llvm/utils')
-rw-r--r--llvm/utils/TableGen/AsmWriterEmitter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp
index 50615689d66..70cea1fb930 100644
--- a/llvm/utils/TableGen/AsmWriterEmitter.cpp
+++ b/llvm/utils/TableGen/AsmWriterEmitter.cpp
@@ -879,7 +879,7 @@ void AsmWriterEmitter::EmitPrintAliasInstruction(raw_ostream &O) {
IAP.addCond(Op + ".isImm()");
Cond = Op + ".getImm() == " +
- llvm::utostr(CGA.ResultOperands[i].getImm());
+ llvm::itostr(CGA.ResultOperands[i].getImm());
IAP.addCond(Cond);
break;
}
OpenPOWER on IntegriCloud