summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen
diff options
context:
space:
mode:
authorDavid Peixotto <dpeixott@codeaurora.org>2013-02-13 19:21:47 +0000
committerDavid Peixotto <dpeixott@codeaurora.org>2013-02-13 19:21:47 +0000
commit6eecb28d3a335fe22221ae646d764705964b58e6 (patch)
treee157de22fec48034e3f03955f53054c648c1b570 /llvm/utils/TableGen
parentf4068918579fae0efc48c47bb38eee7b25ed12f9 (diff)
downloadbcm5719-llvm-6eecb28d3a335fe22221ae646d764705964b58e6.tar.gz
bcm5719-llvm-6eecb28d3a335fe22221ae646d764705964b58e6.zip
PR14992 - Tablegen incorrectly converts ARM tLDMIA_UPD pseudo to tLDMIA
Fixed bug in tablegen conversion when source pseudo instruction has a different number of arguments than the destination instruction. llvm-svn: 175066
Diffstat (limited to 'llvm/utils/TableGen')
-rw-r--r--llvm/utils/TableGen/PseudoLoweringEmitter.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/PseudoLoweringEmitter.cpp b/llvm/utils/TableGen/PseudoLoweringEmitter.cpp
index 64aaee756b1..1ea6f7932a3 100644
--- a/llvm/utils/TableGen/PseudoLoweringEmitter.cpp
+++ b/llvm/utils/TableGen/PseudoLoweringEmitter.cpp
@@ -252,6 +252,7 @@ void PseudoLoweringEmitter::emitLoweringEmitter(raw_ostream &o) {
MIOpNo += Dest.Operands[OpNo].MINumOperands;
}
if (Dest.Operands.isVariadic) {
+ MIOpNo = Source.Operands.size() + 1;
o << " // variable_ops\n";
o << " for (unsigned i = " << MIOpNo
<< ", e = MI->getNumOperands(); i != e; ++i)\n"
OpenPOWER on IntegriCloud