From: Chris Lattner Date: Sat, 29 Oct 2005 16:39:40 +0000 (+0000) Subject: Make negative immediates in patterns work correctly, silence some warnings X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=9d1a02345c2fa4ff8e79ee02da38e897a6f5d1fd;p=oota-llvm.git Make negative immediates in patterns work correctly, silence some warnings building the itanium backend. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24095 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/DAGISelEmitter.cpp b/utils/TableGen/DAGISelEmitter.cpp index fb52355bee1..2fc324dff6f 100644 --- a/utils/TableGen/DAGISelEmitter.cpp +++ b/utils/TableGen/DAGISelEmitter.cpp @@ -1592,7 +1592,7 @@ void DAGISelEmitter::EmitMatchForPattern(TreePatternNode *N, } else if (IntInit *II = dynamic_cast(Child->getLeafValue())) { OS << " if (!isa(" << RootName << i << ") ||\n" << " cast(" << RootName << i - << ")->getValue() != " << II->getValue() << ")\n" + << ")->getSignExtended() != " << II->getValue() << ")\n" << " goto P" << PatternNo << "Fail;\n"; } else { Child->dump();