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();