Make negative immediates in patterns work correctly, silence some warnings

building the itanium backend.

llvm-svn: 24095
This commit is contained in:
Chris Lattner 2005-10-29 16:39:40 +00:00
parent 7abaf906e2
commit d91df9d941
1 changed files with 1 additions and 1 deletions

View File

@ -1592,7 +1592,7 @@ void DAGISelEmitter::EmitMatchForPattern(TreePatternNode *N,
} else if (IntInit *II = dynamic_cast<IntInit*>(Child->getLeafValue())) {
OS << " if (!isa<ConstantSDNode>(" << RootName << i << ") ||\n"
<< " cast<ConstantSDNode>(" << RootName << i
<< ")->getValue() != " << II->getValue() << ")\n"
<< ")->getSignExtended() != " << II->getValue() << ")\n"
<< " goto P" << PatternNo << "Fail;\n";
} else {
Child->dump();