Skip to content

Commit

Permalink
TableGen: Allow signed immediates for instruction aliases
Browse files Browse the repository at this point in the history
Patch by Daniel Cederman.

Reviewers: stoklund, arsenm

Subscribers: arsenm, llvm-commits

Differential Revision: https://reviews.llvm.org/D27046

llvm-svn: 287856
  • Loading branch information
jacobbaungard committed Nov 24, 2016
1 parent f23b995 commit a8cbbdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/utils/TableGen/AsmWriterEmitter.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit a8cbbdc

Please sign in to comment.